Class PCStructuralLearningOptions
- java.lang.Object
-
- com.bayesserver.learning.structure.PCStructuralLearningOptions
-
- All Implemented Interfaces:
StructuralLearningOptions
public final class PCStructuralLearningOptions extends Object implements StructuralLearningOptions
Options for structural learning with thecom.bayesserver.learning.structure.pc.PCStructuralLearning
class.
-
-
Constructor Summary
Constructors Constructor Description PCStructuralLearningOptions()
Initializes a new instance of thecom.bayesserver.learning.structure.pc.PCStructuralLearningOptions
class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cancellation
getCancellation()
Gets of sets the instance implementingCancellation
, used for cancellation.IndependenceOptions
getIndependence()
Gets options controlling how the independence tests are carried out.LinkConstraintCollection
getLinkConstraints()
Gets any link constraints to use during structural learning.long
getMaximumBatchSize()
Gets the maximum number of tests that are buffered in memory for processing in a single iteration of the data.int
getMaximumConditional()
Gets the maximum number of conditional variables to consider during independence testing.int
getMaximumTemporalOrder()
Gets the maximum order of temporal links that are considered during learning.StructuralLearningProgress
getProgress()
Gets of sets the instance implementingStructuralLearningProgress
, used for progress notifications.Stop
getStopping()
Gets the instance implementingStop
used for early stopping.void
setCancellation(Cancellation value)
Gets of sets the instance implementingCancellation
, used for cancellation.void
setMaximumBatchSize(long value)
Sets the maximum number of tests that are buffered in memory for processing in a single iteration of the data.void
setMaximumConditional(int value)
Sets the maximum number of conditional variables to consider during independence testing.void
setMaximumTemporalOrder(int value)
Sets the maximum order of temporal links that are considered during learning.void
setProgress(StructuralLearningProgress value)
Gets of sets the instance implementingStructuralLearningProgress
, used for progress notifications.void
setStopping(Stop value)
Sets the instance implementingStop
used for early stopping.
-
-
-
Method Detail
-
getLinkConstraints
public LinkConstraintCollection getLinkConstraints()
Gets any link constraints to use during structural learning.- Specified by:
getLinkConstraints
in interfaceStructuralLearningOptions
-
getProgress
public StructuralLearningProgress getProgress()
Gets of sets the instance implementingStructuralLearningProgress
, used for progress notifications.- Specified by:
getProgress
in interfaceStructuralLearningOptions
-
setProgress
public void setProgress(StructuralLearningProgress value)
Gets of sets the instance implementingStructuralLearningProgress
, used for progress notifications.- Specified by:
setProgress
in interfaceStructuralLearningOptions
-
getStopping
public Stop getStopping()
Gets the instance implementingStop
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 interfaceStructuralLearningOptions
- Returns:
- The instance used for stopping.
-
setStopping
public void setStopping(Stop value)
Sets the instance implementingStop
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 interfaceStructuralLearningOptions
- Parameters:
value
- The instance used for stopping.
-
getCancellation
public Cancellation getCancellation()
Gets of sets the instance implementingCancellation
, used for cancellation.- Specified by:
getCancellation
in interfaceStructuralLearningOptions
- See Also:
Cancellation
-
setCancellation
public void setCancellation(Cancellation value)
Gets of sets the instance implementingCancellation
, used for cancellation.- Specified by:
setCancellation
in interfaceStructuralLearningOptions
- See Also:
Cancellation
-
getMaximumBatchSize
public long getMaximumBatchSize()
Gets the maximum number of tests that are buffered in memory for processing in a single iteration of the data. When large numbers of tests are required, instead of exhausting available memory, the tests are performed in batches. This value limits the number of tests that need to be stored in memory.
-
setMaximumBatchSize
public void setMaximumBatchSize(long value)
Sets the maximum number of tests that are buffered in memory for processing in a single iteration of the data. When large numbers of tests are required, instead of exhausting available memory, the tests are performed in batches. This value limits the number of tests that need to be stored in memory.
-
getMaximumTemporalOrder
public int getMaximumTemporalOrder()
Gets the maximum order of temporal links that are considered during learning. When learning Bayesian networks with temporal nodes (time series or sequence nodes) this value tells the algorithm the maximum order or links (sometimes referred to as the lag).
-
setMaximumTemporalOrder
public void setMaximumTemporalOrder(int value)
Sets the maximum order of temporal links that are considered during learning. When learning Bayesian networks with temporal nodes (time series or sequence nodes) this value tells the algorithm the maximum order or links (sometimes referred to as the lag).
-
getIndependence
public IndependenceOptions getIndependence()
Gets options controlling how the independence tests are carried out.
-
getMaximumConditional
public int getMaximumConditional()
Gets the maximum number of conditional variables to consider during independence testing.- Returns:
- The maximum number of conditional variables considered.
Typically a value of 3 is used.
A value of 0 means that only marginal independence tests will be performed.
-
setMaximumConditional
public void setMaximumConditional(int value)
Sets the maximum number of conditional variables to consider during independence testing.- Parameters:
value
- The maximum number of conditional variables considered.Typically a value of 3 is used.
A value of 0 means that only marginal independence tests will be performed.
-
-