Class ClusteringStructuralLearningOptions
- java.lang.Object
-
- com.bayesserver.learning.structure.ClusteringStructuralLearningOptions
-
- All Implemented Interfaces:
StructuralLearningOptions
public final class ClusteringStructuralLearningOptions extends Object implements StructuralLearningOptions
Options for structural learning with thecom.bayesserver.learning.structure.clustering.ClusteringStructuralLearningclass.
-
-
Constructor Summary
Constructors Constructor Description ClusteringStructuralLearningOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CancellationgetCancellation()Gets of sets the instance implementingCancellation, used for cancellation.StringgetClusterVariableName()Gets the name of the cluster/latent node/variable created when more than 1 hidden state is detected.InferenceFactorygetInferenceFactory()Gets the inference factory used during scoring.LinkConstraintCollectiongetLinkConstraints()Gets any link constraints to use during structural learning.IntegergetMaximumClusterCount()Gets the maximum number of clusters generated.IntegergetMaximumIterations()Gets the maximum number of iterations used by parameter learning to score each configuration.IntegergetPartitions()Gets the number of cross validation partitions to use when scoring each cluster count.StructuralLearningProgressgetProgress()Gets of sets the instance implementingStructuralLearningProgress, used for progress notifications.IntegergetRunsPerConfiguration()Gets the number of times training is re-run for each network structure tested.StopgetStopping()Gets the instance implementingStopused for early stopping.booleangetTestSingleCluster()Gets a value which determines whether a test is performed for a single cluster (i.e.voidsetCancellation(Cancellation value)Gets of sets the instance implementingCancellation, used for cancellation.voidsetClusterVariableName(String value)Sets the name of the cluster/latent node/variable created when more than 1 hidden state is detected.voidsetInferenceFactory(InferenceFactory value)Sets the inference factory used during scoring.voidsetMaximumClusterCount(Integer value)Sets the maximum number of clusters generated.voidsetMaximumIterations(Integer value)Sets the maximum number of iterations used by parameter learning to score each configuration.voidsetPartitions(Integer value)Sets the number of cross validation partitions to use when scoring each cluster count.voidsetProgress(StructuralLearningProgress value)Gets of sets the instance implementingStructuralLearningProgress, used for progress notifications.voidsetRunsPerConfiguration(Integer value)Sets the number of times training is re-run for each network structure tested.voidsetStopping(Stop value)Sets the instance implementingStopused for early stopping.voidsetTestSingleCluster(boolean value)Sets a value which determines whether a test is performed for a single cluster (i.e.
-
-
-
Method Detail
-
getInferenceFactory
public InferenceFactory getInferenceFactory()
Gets the inference factory used during scoring.
-
setInferenceFactory
public void setInferenceFactory(InferenceFactory value)
Sets the inference factory used during scoring.
-
getRunsPerConfiguration
public Integer getRunsPerConfiguration()
Gets the number of times training is re-run for each network structure tested. The higher the number, the longer the tests will take, but the more accurate the tests will be.
-
setRunsPerConfiguration
public void setRunsPerConfiguration(Integer value)
Sets the number of times training is re-run for each network structure tested. The higher the number, the longer the tests will take, but the more accurate the tests will be.
-
getClusterVariableName
public String getClusterVariableName()
Gets the name of the cluster/latent node/variable created when more than 1 hidden state is detected.
-
setClusterVariableName
public void setClusterVariableName(String value)
Sets the name of the cluster/latent node/variable created when more than 1 hidden state is detected.
-
getPartitions
public Integer getPartitions()
Gets the number of cross validation partitions to use when scoring each cluster count. The higher the number, the longer the tests will take.
-
setPartitions
public void setPartitions(Integer value)
Sets the number of cross validation partitions to use when scoring each cluster count. The higher the number, the longer the tests will take.
-
getMaximumIterations
public Integer getMaximumIterations()
Gets the maximum number of iterations used by parameter learning to score each configuration. The higher the number, the longer the tests will take.
-
setMaximumIterations
public void setMaximumIterations(Integer value)
Sets the maximum number of iterations used by parameter learning to score each configuration. The higher the number, the longer the tests will take.
-
getProgress
public StructuralLearningProgress getProgress()
Gets of sets the instance implementingStructuralLearningProgress, used for progress notifications.- Specified by:
getProgressin interfaceStructuralLearningOptions
-
setProgress
public void setProgress(StructuralLearningProgress value)
Gets of sets the instance implementingStructuralLearningProgress, used for progress notifications.- Specified by:
setProgressin interfaceStructuralLearningOptions
-
getStopping
public Stop getStopping()
Gets the instance implementingStopused for early stopping. Stopping is different to cancellation, as stopping will still complete the learning process, albeit having not run to completion.- Specified by:
getStoppingin interfaceStructuralLearningOptions- Returns:
- The instance used for stopping.
-
setStopping
public void setStopping(Stop value)
Sets the instance implementingStopused for early stopping. Stopping is different to cancellation, as stopping will still complete the learning process, albeit having not run to completion.- Specified by:
setStoppingin interfaceStructuralLearningOptions- Parameters:
value- The instance used for stopping.
-
getCancellation
public Cancellation getCancellation()
Gets of sets the instance implementingCancellation, used for cancellation.- Specified by:
getCancellationin interfaceStructuralLearningOptions- See Also:
Cancellation
-
setCancellation
public void setCancellation(Cancellation value)
Gets of sets the instance implementingCancellation, used for cancellation.- Specified by:
setCancellationin interfaceStructuralLearningOptions- See Also:
Cancellation
-
getLinkConstraints
public LinkConstraintCollection getLinkConstraints()
Gets any link constraints to use during structural learning.- Specified by:
getLinkConstraintsin interfaceStructuralLearningOptions
-
getMaximumClusterCount
public Integer getMaximumClusterCount()
Gets the maximum number of clusters generated.
-
setMaximumClusterCount
public void setMaximumClusterCount(Integer value)
Sets the maximum number of clusters generated.
-
getTestSingleCluster
public boolean getTestSingleCluster()
Gets a value which determines whether a test is performed for a single cluster (i.e. no significant clusters found).
-
setTestSingleCluster
public void setTestSingleCluster(boolean value)
Sets a value which determines whether a test is performed for a single cluster (i.e. no significant clusters found).
-
-