|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.sequenceScores.statisticalModels.differentiable.directedGraphicalModels.structureLearning.measures.Measure
de.jstacs.sequenceScores.statisticalModels.differentiable.directedGraphicalModels.structureLearning.measures.btMeasures.BTExplainingAwayResidual
public class BTExplainingAwayResidual
Structure learning Measure that computes a maximum spanning tree
based on the explaining away residual and uses the resulting tree structure
as structure of a Bayesian tree (special case of a Bayesian network) in a
BayesianNetworkDiffSM
.
| Nested Class Summary | |
|---|---|
static class |
BTExplainingAwayResidual.BTExplainingAwayResidualParameterSet
Class for the parameters of a BTExplainingAwayResidual structure
Measure. |
| Nested classes/interfaces inherited from class de.jstacs.sequenceScores.statisticalModels.differentiable.directedGraphicalModels.structureLearning.measures.Measure |
|---|
Measure.MeasureParameterSet |
| Field Summary |
|---|
| Fields inherited from class de.jstacs.sequenceScores.statisticalModels.differentiable.directedGraphicalModels.structureLearning.measures.Measure |
|---|
parameters |
| Constructor Summary | |
|---|---|
BTExplainingAwayResidual(BTExplainingAwayResidual.BTExplainingAwayResidualParameterSet parameters)
Creates a new BTExplainingAwayResidual from the corresponding
InstanceParameterSet parameters. |
|
BTExplainingAwayResidual(double[] ess)
Creates a new explaining away residual Bayesian tree Measure. |
|
BTExplainingAwayResidual(StringBuffer buf)
The standard constructor for the interface Storable. |
|
| Method Summary | |
|---|---|
String |
getInstanceName()
Returns the name of the Measure and possibly some additional
information about the current instance. |
int[][] |
getParents(DataSet fg,
DataSet bg,
double[] weightsFg,
double[] weightsBg,
int length)
Returns the optimal parents for the given data and weights. |
String |
getXMLTag()
Returns the XML-tag for storing this measure |
| Methods inherited from class de.jstacs.sequenceScores.statisticalModels.differentiable.directedGraphicalModels.structureLearning.measures.Measure |
|---|
clone, fillTensor, fillTensor, getCMI, getCMI, getCurrentParameterSet, getEAR, getEAR, getMI, getMI, getStatistics, getStatisticsOrderTwo, isShiftable, sum, toParents, toXML, union |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BTExplainingAwayResidual(double[] ess)
throws Exception
Measure.
ess - the equivalent sample sizes (ess) for the classes
Exception - if the parameters could bot be created for the
public BTExplainingAwayResidual(BTExplainingAwayResidual.BTExplainingAwayResidualParameterSet parameters)
throws CloneNotSupportedException
BTExplainingAwayResidual from the corresponding
InstanceParameterSet parameters.
parameters - the corresponding parameters
CloneNotSupportedException - if the parameters could not be cloned
public BTExplainingAwayResidual(StringBuffer buf)
throws NonParsableException
Storable.
Recreates a BTExplainingAwayResidual from is XML representation
as returned by Measure.toXML().
buf - the XML representation as StringBuffer
NonParsableException - if the XML code could not be parsed| Method Detail |
|---|
public String getInstanceName()
MeasureMeasure and possibly some additional
information about the current instance.
getInstanceName in class MeasureMeasure
public int[][] getParents(DataSet fg,
DataSet bg,
double[] weightsFg,
double[] weightsBg,
int length)
throws Exception
Measurep at each position i is build
as follows:
p[i][p.length - 1] contains the index i
itselfp[i][p.length - 2] contains the "most
important" parentp[i][0] contains the "least important" parent
getParents in class Measurefg - the data of the current (foreground) classbg - the data of the negative (background) classweightsFg - the weights for the sequences of fgweightsBg - the weights for the sequences of bglength - the length of the model, must be equal to the length of the
sequences
p with the optimal parents
Exception - if the lengths do not match or other problems concerning the
data occurpublic String getXMLTag()
Measure
getXMLTag in class Measure
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||