Module datarush.analytics
Class PMMLClusteringModel.Builder
- java.lang.Object
-
- com.pervasive.datarush.analytics.cluster.PMMLClusteringModel.Builder
-
- Enclosing class:
- PMMLClusteringModel
public static class PMMLClusteringModel.Builder extends Object
Builder forPMMLClusteringModelinstances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PMMLClusteringModel.BuilderalgorithmName(String algorithmName)Returns a builder that buildsPMMLClusteringModelinstances with the provided algorithm name and other parameters set to the previously provided values.PMMLClusteringModelbuild()Verifies the previously set values and builds aPMMLClusteringModelinstance based on these values.PMMLClusteringModel.BuilderclusteringFields(ClusteringField[] clusteringFields)Returns a builder that buildsPMMLClusteringModelinstances with the provided clustering fields and other parameters set to the previously provided values.PMMLClusteringModel.BuilderisScorable(boolean isScorable)Returns a builder that buildsPMMLClusteringModelinstances with the scorable flag set to the provided value and other parameters set to the previously provided values.PMMLClusteringModel.BuildermissingValueWeights(MissingValueWeights missingValueWeights)Returns a builder that buildsPMMLClusteringModelinstances with the provided missing value weights and other parameters set to the previously provided values.PMMLClusteringModel.BuildermodelName(String modelName)Returns a builder that buildsPMMLClusteringModelinstances with the provided model name and other parameters set to the previously provided values.PMMLClusteringModel.Builderversion(PMMLVersion version)Returns a builder that buildsPMMLClusteringModelinstances with the provided PMML version and other parameters set to the previously provided values.
-
-
-
Method Detail
-
modelName
public PMMLClusteringModel.Builder modelName(String modelName)
Returns a builder that buildsPMMLClusteringModelinstances with the provided model name and other parameters set to the previously provided values.- Parameters:
modelName- the name of the model- Returns:
PMMLClusteringModel.Builder
-
algorithmName
public PMMLClusteringModel.Builder algorithmName(String algorithmName)
Returns a builder that buildsPMMLClusteringModelinstances with the provided algorithm name and other parameters set to the previously provided values.- Parameters:
algorithmName- the name of the algorithm used to compute the model- Returns:
PMMLClusteringModel.Builder
-
isScorable
public PMMLClusteringModel.Builder isScorable(boolean isScorable)
Returns a builder that buildsPMMLClusteringModelinstances with the scorable flag set to the provided value and other parameters set to the previously provided values.- Parameters:
isScorable- true if the model can be used for scoring, false otherwise- Returns:
PMMLClusteringModel.Builder
-
clusteringFields
public PMMLClusteringModel.Builder clusteringFields(ClusteringField[] clusteringFields)
Returns a builder that buildsPMMLClusteringModelinstances with the provided clustering fields and other parameters set to the previously provided values.- Parameters:
clusteringFields- theClusteringFields of the model- Returns:
PMMLClusteringModel.Builder
-
missingValueWeights
public PMMLClusteringModel.Builder missingValueWeights(MissingValueWeights missingValueWeights)
Returns a builder that buildsPMMLClusteringModelinstances with the provided missing value weights and other parameters set to the previously provided values.- Parameters:
missingValueWeights- theMissingValueWeightss of the model- Returns:
PMMLClusteringModel.Builder
-
version
public PMMLClusteringModel.Builder version(PMMLVersion version)
Returns a builder that buildsPMMLClusteringModelinstances with the provided PMML version and other parameters set to the previously provided values.- Parameters:
version- thePMMLVersionof the model- Returns:
PMMLClusteringModel.Builder
-
build
public PMMLClusteringModel build()
Verifies the previously set values and builds aPMMLClusteringModelinstance based on these values.- Returns:
PMMLClusteringModel
-
-