public final class RelevanceTreeQueryOptions extends Object implements QueryOptions
Inference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput)
.Constructor and Description |
---|
RelevanceTreeQueryOptions()
Initializes a new instance of the
RelevanceTreeQueryOptions class. |
Modifier and Type | Method and Description |
---|---|
Cancellation |
getCancellation()
Allows cancellation of a query.
|
boolean |
getConflict()
Gets a value indicating whether the conflict measure should be calculated in a call to
Inference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput) . |
DecisionAlgorithm |
getDecisionAlgorithm()
Gets the algorithm to use when a network contains Decision nodes.
|
InconsistentEvidenceMode |
getInconsistentEvidenceMode()
Determines when an
InconsistentEvidenceException is raied. |
boolean |
getLogLikelihood()
Gets a value indicating whether the log-likelihood of a case should be calculated in a call to
Inference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput) . |
PropagationMethod |
getPropagation()
Gets the propagation method to be used during inference.
|
QueryEvidenceMode |
getQueryEvidenceMode()
Determines whether evidence is retracted for each query.
|
Integer |
getTerminalTime()
Gets the terminal time, which is the time at which any terminal nodes in a Dynamic Bayesian Network connect to temporal nodes.
|
void |
setCancellation(Cancellation value)
Allows cancellation of a query.
|
void |
setConflict(boolean value)
Sets a value indicating whether the conflict measure should be calculated in a call to
Inference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput) . |
void |
setDecisionAlgorithm(DecisionAlgorithm value)
Sets the algorithm to use when a network contains Decision nodes.
|
void |
setInconsistentEvidenceMode(InconsistentEvidenceMode value)
Determines when an
InconsistentEvidenceException is raied. |
void |
setLogLikelihood(boolean value)
Sets a value indicating whether the log-likelihood of a case should be calculated in a call to
Inference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput) . |
void |
setPropagation(PropagationMethod value)
Sets the propagation method to be used during inference.
|
void |
setQueryEvidenceMode(QueryEvidenceMode value)
Determines whether evidence is retracted for each query.
|
void |
setTerminalTime(Integer value)
Sets the terminal time, which is the time at which any terminal nodes in a Dynamic Bayesian Network connect to temporal nodes.
|
public RelevanceTreeQueryOptions()
RelevanceTreeQueryOptions
class.public boolean getLogLikelihood()
Inference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput)
. If calculated the result can be obtained from QueryOutput.getLogLikelihood()
.
This should only be requested if required.
The natural log (base e) is calculated.
getLogLikelihood
in interface QueryOptions
true
if the log-likelihood should be calculated; otherwise, false
. Defaults to false.public void setLogLikelihood(boolean value)
Inference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput)
. If calculated the result can be obtained from QueryOutput.getLogLikelihood()
.
This should only be requested if required.
The natural log (base e) is calculated.
setLogLikelihood
in interface QueryOptions
value
- true
if the log-likelihood should be calculated; otherwise, false
. Defaults to false.public PropagationMethod getPropagation()
PropagationMethod.SUM
.getPropagation
in interface QueryOptions
public void setPropagation(PropagationMethod value)
PropagationMethod.SUM
.setPropagation
in interface QueryOptions
public DecisionAlgorithm getDecisionAlgorithm()
getDecisionAlgorithm
in interface QueryOptions
public void setDecisionAlgorithm(DecisionAlgorithm value)
setDecisionAlgorithm
in interface QueryOptions
public boolean getConflict()
Inference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput)
. If calculated the result can be obtained from QueryOutput.getConflict()
.
Conflict is a measure that detects evidence that is conflicting or rare. The greater the conflict value above zero, the more likely the evidence is in conflict, or rare.
Conflict = log((P(e1)P(e2)...P(ei)) / P(e)), where P(e1), P(e2) etc... are the likelihoods of each variable considered in isolation, and P(e) is the likelihood of the all the evidence together.
getConflict
in interface QueryOptions
public void setConflict(boolean value)
Inference.query(com.bayesserver.inference.QueryOptions, com.bayesserver.inference.QueryOutput)
. If calculated the result can be obtained from QueryOutput.getConflict()
.
Conflict is a measure that detects evidence that is conflicting or rare. The greater the conflict value above zero, the more likely the evidence is in conflict, or rare.
Conflict = log((P(e1)P(e2)...P(ei)) / P(e)), where P(e1), P(e2) etc... are the likelihoods of each variable considered in isolation, and P(e) is the likelihood of the all the evidence together.
setConflict
in interface QueryOptions
public Cancellation getCancellation()
CancellationException
will be raised.
If Cancellation.getCancel()
has been set to true, it should be reset to false, before a subsequent query.
getCancellation
in interface QueryOptions
public void setCancellation(Cancellation value)
CancellationException
will be raised.
If Cancellation.getCancel()
has been set to true, it should be reset to false, before a subsequent query.
setCancellation
in interface QueryOptions
public Integer getTerminalTime()
getTerminalTime
in interface QueryOptions
public void setTerminalTime(Integer value)
setTerminalTime
in interface QueryOptions
public QueryEvidenceMode getQueryEvidenceMode()
QueryEvidenceMode
for more information.getQueryEvidenceMode
in interface QueryOptions
public void setQueryEvidenceMode(QueryEvidenceMode value)
QueryEvidenceMode
for more information.setQueryEvidenceMode
in interface QueryOptions
public InconsistentEvidenceMode getInconsistentEvidenceMode()
InconsistentEvidenceException
is raied.getInconsistentEvidenceMode
in interface QueryOptions
public void setInconsistentEvidenceMode(InconsistentEvidenceMode value)
InconsistentEvidenceException
is raied.setInconsistentEvidenceMode
in interface QueryOptions
Copyright © 2021. All rights reserved.