public final class OnlineLearning extends Object
Constructor and Description |
---|
OnlineLearning(Network network,
InferenceFactory factory)
Initializes a new instance of the
OnlineLearning class. |
Modifier and Type | Method and Description |
---|---|
void |
adapt(Evidence evidence,
OnlineLearningOptions options)
Adapt the parameters of a Bayesian network using Bayesian statistics.
|
Evidence |
getEvidence()
Gets the evidence used internally.
|
public OnlineLearning(Network network, InferenceFactory factory)
OnlineLearning
class.
Learning uses inference as a subroutine, and creates one or more inference engines via the [factory] parameter.network
- The network whose parameters are being adapted.factory
- The inference factory used to create inference engines in cases when learning requires inference.public Evidence getEvidence()
public void adapt(Evidence evidence, OnlineLearningOptions options) throws InconsistentEvidenceException
For nodes to be adapted, they must have Experience tables assigned (and optionally fading tables).
In the case a discrete node, the experience table combined with the probability are used to create a Dirichlet distribution. This distribution acts as a prior during the Bayesian inference process.
evidence
- The evidence to learn.options
- Options that affect how parameters are adapted.InconsistentEvidenceException
Copyright © 2021. All rights reserved.