Class HierarchicalStructuralLearningOptions

  • All Implemented Interfaces:
    StructuralLearningOptions

    public final class HierarchicalStructuralLearningOptions
    extends Object
    implements StructuralLearningOptions
    Options for structural learning with the com.bayesserver.learning.structure.hierarchical.HierarchicalStructuralLearning class.
    • Constructor Detail

      • HierarchicalStructuralLearningOptions

        public HierarchicalStructuralLearningOptions()
    • 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.
      • getStopping

        public Stop getStopping()
        Gets the instance implementing Stop used for early stopping. Stopping is different to cancellation, as stopping will still complete the learning process, albeit having not run to completion.
        Specified by:
        getStopping in interface StructuralLearningOptions
        Returns:
        The instance used for stopping.
      • setStopping

        public void setStopping​(Stop value)
        Sets the instance implementing Stop used for early stopping. Stopping is different to cancellation, as stopping will still complete the learning process, albeit having not run to completion.
        Specified by:
        setStopping in interface StructuralLearningOptions
        Parameters:
        value - The instance used for stopping.