Class GeneralResamplingTest

java.lang.Object
edu.pitt.dbmi.algo.resampling.GeneralResamplingTest

public class GeneralResamplingTest extends Object
Created by mahdi on 1/16/17.

Updated: Chirayu Kong Wongchokprasitti, PhD on 9/13/2018

Version:
$Id: $Id
  • Constructor Details

    • GeneralResamplingTest

      public GeneralResamplingTest(DataSet data, Algorithm algorithm, Knowledge knowledge, Parameters parameters)
      Constructor for single data set algorithms.
      Parameters:
      data - the data set.
      algorithm - the algorithm.
      knowledge - the knowledge.
      parameters - the parameters.
    • GeneralResamplingTest

      public GeneralResamplingTest(List<DataSet> dataSets, MultiDataSetAlgorithm multiDataSetAlgorithm, Knowledge knowledge, Parameters parameters)
      Constructor for multiple data set algorithms.
      Parameters:
      dataSets - the data sets.
      multiDataSetAlgorithm - the algorithm.
      knowledge - the knowledge.
      parameters - the parameters.
  • Method Details

    • getAdjConfusionMatrix

      public static int[][] getAdjConfusionMatrix(Graph truth, Graph estimate)
      Constructor.
      Parameters:
      truth - the true graph.
      estimate - the estimated graph.
      Returns:
      an array of
      invalid reference
      int
      objects
    • getEdgeTypeConfusionMatrix

      public static int[][] getEdgeTypeConfusionMatrix(Graph truth, Graph estimate)
      Constructor.
      Parameters:
      truth - the true graph.
      estimate - the estimated graph.
      Returns:
      an array of
      invalid reference
      int
      objects
    • setVerbose

      public void setVerbose(boolean verbose)
      Sets whether verbose output should be produced.
      Parameters:
      verbose - whether verbose output should be produced.
    • getOut

      public PrintStream getOut()

      Getter for the field out.

      Returns:
      the output stream that output (except for log output) should be sent to.
    • setOut

      public void setOut(PrintStream out)
      Sets the output stream that output (except for log output) should be sent to. By default, System.out.
      Parameters:
      out - the output stream that output (except for log output) should be sent to.
    • search

      public Graph search()
      Runs the resampling test.
      Returns:
      the graph.
    • getGraphs

      public List<Graph> getGraphs()
      Returns the individual bootstrap result graphs.
      Returns:
      A list of these Graphs.
    • setScoreWrapper

      public void setScoreWrapper(ScoreWrapper score)
      Sets the score wrapper if not null.
      Parameters:
      score - The wrapper
      See Also: