Class MvpScore

java.lang.Object
edu.cmu.tetrad.search.score.MvpScore
All Implemented Interfaces:
Score

public class MvpScore extends Object implements Score

Implements a mixed variable polynomial BIC score. The reference is here:

Andrews, B., Ramsey, J., & Cooper, G. F. (2018). Scoring Bayesian networks of mixed variables. International journal of data science and analytics, 6, 3-18.

Author:
Bryan Andrews
  • Constructor Details

    • MvpScore

      public MvpScore(DataSet dataSet, double structurePrior, int fDegree, boolean discretize)
      Constructor.
      Parameters:
      dataSet - The mixed dataset being analyzed.
      structurePrior - The structure prior
      fDegree - The f degree.
  • Method Details

    • localScore

      public double localScore(int i, int... parents)
      The local score of the child given its parents.
      Specified by:
      localScore in interface Score
      Parameters:
      i - The node.
      parents - The parents.
      Returns:
      The score.
    • localScoreDiff

      public double localScoreDiff(int x, int y, int[] z)
      localScore(y | z, x) - localScore(y | z).
      Specified by:
      localScoreDiff in interface Score
      Parameters:
      x - A node.
      y - TAhe node.
      z - A set of nodes.
      Returns:
      The score difference.
    • getSampleSize

      public int getSampleSize()
      Returns the sample size.
      Specified by:
      getSampleSize in interface Score
      Returns:
      This size.
    • isEffectEdge

      public boolean isEffectEdge(double bump)
      A method for FGES returning a judgment of whether an edge with a given bump counts as a effect edge.
      Specified by:
      isEffectEdge in interface Score
      Parameters:
      bump - The bump.
      Returns:
      True, if so.
      See Also:
    • getVariables

      public List<Node> getVariables()
      Description copied from interface: Score
      The variables of the score.
      Specified by:
      getVariables in interface Score
      Returns:
      This list.
    • getMaxDegree

      public int getMaxDegree()
      Description copied from interface: Score
      Returns the max degree, by default 1000.
      Specified by:
      getMaxDegree in interface Score
      Returns:
      The max degree.
    • determines

      public boolean determines(List<Node> z, Node y)
      Description copied from interface: Score
      Returns true iff the score determines the edge between x and y.
      Specified by:
      determines in interface Score
      Parameters:
      z - The set of nodes.
      y - The node.
      Returns:
      True iff the score determines the edge between x and y.