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 forPMMLClusteringModel
instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PMMLClusteringModel.Builder
algorithmName(String algorithmName)
Returns a builder that buildsPMMLClusteringModel
instances with the provided algorithm name and other parameters set to the previously provided values.PMMLClusteringModel
build()
Verifies the previously set values and builds aPMMLClusteringModel
instance based on these values.PMMLClusteringModel.Builder
clusteringFields(ClusteringField[] clusteringFields)
Returns a builder that buildsPMMLClusteringModel
instances with the provided clustering fields and other parameters set to the previously provided values.PMMLClusteringModel.Builder
isScorable(boolean isScorable)
Returns a builder that buildsPMMLClusteringModel
instances with the scorable flag set to the provided value and other parameters set to the previously provided values.PMMLClusteringModel.Builder
missingValueWeights(MissingValueWeights missingValueWeights)
Returns a builder that buildsPMMLClusteringModel
instances with the provided missing value weights and other parameters set to the previously provided values.PMMLClusteringModel.Builder
modelName(String modelName)
Returns a builder that buildsPMMLClusteringModel
instances with the provided model name and other parameters set to the previously provided values.PMMLClusteringModel.Builder
version(PMMLVersion version)
Returns a builder that buildsPMMLClusteringModel
instances 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 buildsPMMLClusteringModel
instances 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 buildsPMMLClusteringModel
instances 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 buildsPMMLClusteringModel
instances 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 buildsPMMLClusteringModel
instances with the provided clustering fields and other parameters set to the previously provided values.- Parameters:
clusteringFields
- theClusteringField
s of the model- Returns:
PMMLClusteringModel.Builder
-
missingValueWeights
public PMMLClusteringModel.Builder missingValueWeights(MissingValueWeights missingValueWeights)
Returns a builder that buildsPMMLClusteringModel
instances with the provided missing value weights and other parameters set to the previously provided values.- Parameters:
missingValueWeights
- theMissingValueWeights
s of the model- Returns:
PMMLClusteringModel.Builder
-
version
public PMMLClusteringModel.Builder version(PMMLVersion version)
Returns a builder that buildsPMMLClusteringModel
instances with the provided PMML version and other parameters set to the previously provided values.- Parameters:
version
- thePMMLVersion
of the model- Returns:
PMMLClusteringModel.Builder
-
build
public PMMLClusteringModel build()
Verifies the previously set values and builds aPMMLClusteringModel
instance based on these values.- Returns:
PMMLClusteringModel
-
-