|  | ## Write Model

#### Synopsis

Writes a model to a given file.

#### Description

Writes the input model in the file specified by the corresponding parameter. Since models are often written into files and loaded and applied in other processes or applications, this operator offers three different writing modes for models:

- XML: in this mode, the models are written as plain text XML files. The file size is usually the biggest in this mode (might be several hundred mega bytes so you should be cautious) but this model type has the advantage that the user can inspect and change the files.
- XML Zipped (default): In this mode, the models are written as zipped XML files. Users can simply unzip the files and read or change the contents. The file sizes are smallest for most models. For these reasons, this mode is the default writing mode for models although the loading times are the longest due to the XML parsing and unzipping.
- Binary: In this mode, the models are written in an proprietary binary format. The resulting model files cannot be inspected by the user and the file sizes are usually slightly bigger then for the zipped XML files. The loading time, however, is smallers than the time needed for the other modes.

This operator is also able to keep old files if the overwriting flag is set to false. However, this could also be achieved by using some of the parameter macros provided by RapidMiner like %{t} or %{a} (please refer to the tutorial section about macros).

#### Input

- input: expects: Model

#### Output

- through:

#### Parameters

- model file: Filename for the model file.
- overwrite existing file: Overwrite an existing file. If set to false then an index is appended to the filename.
- output type: Indicates the type of the output

#### ExampleProcess