src/main/java/com/feedzai/fos/impl/weka/config/WekaModelConfig.java
public void setModelDescriptor(ModelDescriptor modelDescriptor) {
        this.modelDescriptor = modelDescriptor;

        setModel(new File(modelDescriptor.getModelFilePath()));

        this.modelConfig.setProperty(CLASSIFIER_FORMAT, modelDescriptor.getFormat().toString());
    }
public void setModelDescriptor(ModelDescriptor modelDescriptor) {
        this.modelDescriptor = modelDescriptor;

        setModel(new File(modelDescriptor.getModelFilePath()));

        this.modelConfig.setProperty(CLASSIFIER_FORMAT, modelDescriptor.getFormat().toString());
    }
Sets the {@link com.feedzai.fos.api.ModelDescriptor} of the model.

@param modelDescriptor The {@link com.feedzai.fos.api.ModelDescriptor} of the model.