Class HierarchicalStructuralLearningOptions
- java.lang.Object
-
- com.bayesserver.learning.structure.HierarchicalStructuralLearningOptions
-
- All Implemented Interfaces:
StructuralLearningOptions
public final class HierarchicalStructuralLearningOptions extends Object implements StructuralLearningOptions
Options for structural learning with thecom.bayesserver.learning.structure.hierarchical.HierarchicalStructuralLearningclass.
-
-
Constructor Summary
Constructors Constructor Description HierarchicalStructuralLearningOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetAddNodeGroups()Gets a value which determines whether network node groups are added for each group in a level.CancellationgetCancellation()Gets of sets the instance implementingCancellation, used for cancellation.InferenceFactorygetInferenceFactory()Gets the inference factory used during scoring.LinkConstraintCollectiongetLinkConstraints()Gets any link constraints to use during structural learning.IntegergetMaximumClustersPerGroup()Gets the maximum number of clusters generated for each group.IntegergetMaximumGroupsPerLevel()Gets the maximum number of groups created per level.IntegergetMaximumIterations()Gets the maximum number of iterations used by parameter learning to score each configuration.IntegergetMaximumLevels()Gets the maximum number of levels generated by the algorithm.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.voidsetAddNodeGroups(boolean value)Sets a value which determines whether network node groups are added for each group in a level.voidsetCancellation(Cancellation value)Gets of sets the instance implementingCancellation, used for cancellation.voidsetInferenceFactory(InferenceFactory value)Sets the inference factory used during scoring.voidsetMaximumClustersPerGroup(Integer value)Sets the maximum number of clusters generated for each group.voidsetMaximumGroupsPerLevel(Integer value)Sets the maximum number of groups created per level.voidsetMaximumIterations(Integer value)Sets the maximum number of iterations used by parameter learning to score each configuration.voidsetMaximumLevels(Integer value)Sets the maximum number of levels generated by the algorithm.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.
-
-
-
Method Detail
-
getMaximumLevels
public Integer getMaximumLevels()
Gets the maximum number of levels generated by the algorithm. A level refers to the set of latent variables introduced by the algorithm at each stage of learning, to group variables together.
-
setMaximumLevels
public void setMaximumLevels(Integer value)
Sets the maximum number of levels generated by the algorithm. A level refers to the set of latent variables introduced by the algorithm at each stage of learning, to group variables together.
-
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.
-
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.
-
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.
-
getAddNodeGroups
public boolean getAddNodeGroups()
Gets a value which determines whether network node groups are added for each group in a level.
-
setAddNodeGroups
public void setAddNodeGroups(boolean value)
Sets a value which determines whether network node groups are added for each group in a level.
-
getMaximumGroupsPerLevel
public Integer getMaximumGroupsPerLevel()
Gets the maximum number of groups created per level.
-
setMaximumGroupsPerLevel
public void setMaximumGroupsPerLevel(Integer value)
Sets the maximum number of groups created per level.
-
getMaximumClustersPerGroup
public Integer getMaximumClustersPerGroup()
Gets the maximum number of clusters generated for each group.
-
setMaximumClustersPerGroup
public void setMaximumClustersPerGroup(Integer value)
Sets the maximum number of clusters generated for each group.
-
getInferenceFactory
public InferenceFactory getInferenceFactory()
Gets the inference factory used during scoring.
-
setInferenceFactory
public void setInferenceFactory(InferenceFactory value)
Sets the inference factory used during scoring.
-
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
-
-