Class BayesNetworkScore


  • public class BayesNetworkScore
    extends Object
    Class for calculating the score of a Bayesian Network. It contains various scoring techniques which the user can use at his/her own discretion.
    • Constructor Detail

      • BayesNetworkScore

        public BayesNetworkScore​(int[][] GraphMatrix,
                                 int[][] DataMatrix)
        Constructor for the class. Initializes the Graph and Data fields
        Parameters:
        int - [][] GraphMatrix - Adjacency matrix for the Graph
        int - [][] DataMatrix - Matrix for the Data containing 0 and 1.
    • Method Detail

      • main

        public static void main​(String[] args)
      • K2NetworkScore

        public double K2NetworkScore()
        Scores the network according to the K2 scoring technique
        Parameters:
        No - parameters
        Returns:
        The score of the network as a double
      • BDeuNetworkScore

        public double BDeuNetworkScore()
        Scores the network according to the BDeu scoring technique. (Not recommended for use currently)
        Parameters:
        No - parameters
        Returns:
        The score of the network as a double
      • LogLik

        public double LogLik()
        Scores the network using the log-likelihood technique.
        Parameters:
        No - parameters
        Returns:
        The score of the network as a double
      • BIC

        public double BIC()
        Scores the network according to the Bayesian Information Criterion (BIC) technique.
        Parameters:
        No - parameters
        Returns:
        The score of the network as a double
      • AIC

        public double AIC()
        Scores the network according to the Akaike Information Criterion (AIC) technique.
        Parameters:
        No - parameters
        Returns:
        The score of the network as a double