Skip to content

Commit

Permalink
Added Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
vruusmann committed Aug 30, 2020
1 parent 024172f commit 7573ab7
Showing 1 changed file with 47 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.dmg.pmml.FieldName;
import org.dmg.pmml.MiningSchema;
import org.dmg.pmml.Model;
import org.dmg.pmml.Output;
import org.dmg.pmml.PMML;
import org.dmg.pmml.ResultFeature;

Expand Down Expand Up @@ -209,6 +210,14 @@ public OutputFilter getOutputFilter(){
return configurationBuilder.getOutputFilter();
}

/**
* <p>
* Sets the filter for cleaning the model schema and model evaluation results from redundant output fields.
* </p>
*
* @see OutputFilters#KEEP_ALL
* @see OutputFilters#KEEP_FINAL_RESULTS
*/
public ModelEvaluatorBuilder setOutputFilter(OutputFilter outputFilter){
ConfigurationBuilder configurationBuilder = getConfigurationBuilder();

Expand All @@ -223,6 +232,13 @@ public SymbolTable<FieldName> getDerivedFieldGuard(){
return configurationBuilder.getDerivedFieldGuard();
}

/**
* <p>
* Sets a guard against recursive field declarations.
* </p>
*
* @see FieldNameSet
*/
public ModelEvaluatorBuilder setDerivedFieldGuard(SymbolTable<FieldName> derivedFieldGuard){
ConfigurationBuilder configurationBuilder = getConfigurationBuilder();

Expand All @@ -237,6 +253,13 @@ public SymbolTable<String> getFunctionGuard(){
return configurationBuilder.getFunctionGuard();
}

/**
* <p>
* Sets a guard against recursive function declarations.
* </p>
*
* @see FunctionNameStack
*/
public ModelEvaluatorBuilder setFunctionGuard(SymbolTable<String> functionGuard){
ConfigurationBuilder configurationBuilder = getConfigurationBuilder();

Expand All @@ -249,6 +272,15 @@ public Set<ResultFeature> getExtraResultFeatures(){
return this.extraResultFeatures;
}

/**
* <p>
* Sets <em>extra</em> functional requirements.
* </p>
*
* The final set of functional requirements is obtained by combining
* default functional requirements (as declared by the {@link Output} element of the model)
* with extra functional requirements.
*/
public ModelEvaluatorBuilder setExtraResultFeatures(Set<ResultFeature> extraResultFeatures){
this.extraResultFeatures = extraResultFeatures;

Expand All @@ -259,6 +291,13 @@ public InputMapper getInputMapper(){
return this.inputMapper;
}

/**
* <p>
* Sets a mapper for translating input field names from user namespace to model namespace.
* </p>
*
* @see Evaluator#getInputFields()
*/
public ModelEvaluatorBuilder setInputMapper(InputMapper inputMapper){
this.inputMapper = inputMapper;

Expand All @@ -269,6 +308,14 @@ public ResultMapper getResultMapper(){
return this.resultMapper;
}

/**
* <p>
* Sets a mapper for translating result field names from model namespace to user namespace.
* </p>
*
* @see Evaluator#getTargetFields()
* @see Evaluator#getOutputFields()
*/
public ModelEvaluatorBuilder setResultMapper(ResultMapper resultMapper){
this.resultMapper = resultMapper;

Expand Down

0 comments on commit 7573ab7

Please sign in to comment.