Class TANStructuralLearningOptions
- java.lang.Object
-
- com.bayesserver.learning.structure.TANStructuralLearningOptions
-
- All Implemented Interfaces:
StructuralLearningOptions
public final class TANStructuralLearningOptions extends Object implements StructuralLearningOptions
Options for structural learning with thecom.bayesserver.learning.structure.tan.TANStructuralLearningclass.
-
-
Constructor Summary
Constructors Constructor Description TANStructuralLearningOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CancellationgetCancellation()Gets of sets the instance implementingCancellation, used for cancellation.LinkConstraintCollectiongetLinkConstraints()Gets any link constraints to use during structural learning.longgetMaximumBatchSize()Gets the maximum number of tests that are buffered in memory for processing in a single iteration of the data.StructuralLearningProgressgetProgress()Gets of sets the instance implementingStructuralLearningProgress, used for progress notifications.NodegetRoot()Gets the root of the TAN tree.StopgetStopping()Gets the instance implementingStopused for early stopping.NodegetTarget()Gets the target of the TAN tree.voidsetCancellation(Cancellation value)Gets of sets the instance implementingCancellation, used for cancellation.voidsetMaximumBatchSize(long value)Sets the maximum number of tests that are buffered in memory for processing in a single iteration of the data.voidsetProgress(StructuralLearningProgress value)Gets of sets the instance implementingStructuralLearningProgress, used for progress notifications.voidsetRoot(Node value)Sets the root of the TAN tree.voidsetStopping(Stop value)Sets the instance implementingStopused for early stopping.voidsetTarget(Node value)Sets the target of the TAN tree.
-
-
-
Method Detail
-
getLinkConstraints
public LinkConstraintCollection getLinkConstraints()
Gets any link constraints to use during structural learning.- Specified by:
getLinkConstraintsin interfaceStructuralLearningOptions
-
getTarget
public Node getTarget()
Gets the target of the TAN tree.
-
setTarget
public void setTarget(Node value)
Sets the target of the TAN tree.
-
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
-
getRoot
public Node getRoot()
Gets the root of the TAN tree. During construction links are directed away from this root. If no root is specified, a root is chosen arbitrarily.
-
setRoot
public void setRoot(Node value)
Sets the root of the TAN tree. During construction links are directed away from this root. If no root is specified, a root is chosen arbitrarily.
-
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.
-
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
-
-