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

  • Constructor Details

    • GeneralResamplingTest

      public GeneralResamplingTest(DataSet data, Algorithm algorithm, int numberResampling, double percentResamplingSize, boolean resamplingWithReplacement, int edgeEnsemble, boolean addOriginalDataset)
    • GeneralResamplingTest

      public GeneralResamplingTest(List<DataSet> dataSets, MultiDataSetAlgorithm multiDataSetAlgorithm, int numberResampling, double percentResamplingSize, boolean resamplingWithReplacement, int edgeEnsemble, boolean addOriginalDataset)
  • Method Details

    • getAdjConfusionMatrix

      public static int[][] getAdjConfusionMatrix(Graph truth, Graph estimate)
    • getEdgeTypeConfusionMatrix

      public static int[][] getEdgeTypeConfusionMatrix(Graph truth, Graph estimate)
    • setVerbose

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

      public PrintStream getOut()
      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.
    • setParameters

      public void setParameters(Parameters parameters)
    • setKnowledge

      public void setKnowledge(Knowledge knowledge)
      Sets the background knowledge.
      Parameters:
      knowledge - the knowledge object, specifying forbidden and required edges.
    • setExternalGraph

      public void setExternalGraph(Graph externalGraph)
      Sets the initial graph.
    • search

      public Graph search()
    • setScoreWrapper

      public void setScoreWrapper(ScoreWrapper scoreWrapper)
    • setIndTestWrapper

      public void setIndTestWrapper(IndependenceWrapper independenceWrapper)
    • getGraphs

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