Class GeneralResamplingSearch

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

public class GeneralResamplingSearch extends Object
Sep 7, 2018 1:38:50 PM
Author:
Chirayu Kong Wongchokprasitti, PhD (chw20@pitt.edu)
  • Constructor Details

    • GeneralResamplingSearch

      public GeneralResamplingSearch(DataSet data, int numberResampling)
      Constructor.
      Parameters:
      data - the data set.
      numberResampling - the number of resampling.
    • GeneralResamplingSearch

      public GeneralResamplingSearch(List<DataSet> dataSets, int numberResampling)
      Constructor.
      Parameters:
      dataSets - the data sets.
      numberResampling - the number of resampling.
  • Method Details

    • setAlgorithm

      public void setAlgorithm(Algorithm algorithm)
      Constructor.
      Parameters:
      algorithm - the algorithm.
    • setMultiDataSetAlgorithm

      public void setMultiDataSetAlgorithm(MultiDataSetAlgorithm multiDataSetAlgorithm)
      Constructor.
      Parameters:
      multiDataSetAlgorithm - the multi data set algorithm.
    • setPercentResampleSize

      public void setPercentResampleSize(double percentResampleSize)
      Sets the number of resampling.
      Parameters:
      percentResampleSize - the resampling size.
    • setResamplingWithReplacement

      public void setResamplingWithReplacement(boolean resamplingWithReplacement)
      Sets the resampling with replacement.
      Parameters:
      resamplingWithReplacement - the resampling with replacement.
    • setRunParallel

      public void setRunParallel(boolean runParallel)
      Sets whether to run in parallel.
      Parameters:
      runParallel - whether to run in parallel.
    • setAddOriginalDataset

      public void setAddOriginalDataset(boolean addOriginalDataset)
      Sets whether to add the original dataset.
      Parameters:
      addOriginalDataset - whether to add the original dataset.
    • setVerbose

      public void setVerbose(boolean verbose)
      Sets whether to be verbose.
      Parameters:
      verbose - whether to be verbose.
    • setData

      public void setData(DataSet data)
      Sets the data set.
      Parameters:
      data - the data set.
    • 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 external graph.
      Parameters:
      externalGraph - the external graph.
    • 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.
      Parameters:
      out - the output stream.
    • setParameters

      public void setParameters(Parameters parameters)
      Sets the parameters.
      Parameters:
      parameters - the parameters.
    • search

      public List<Graph> search()
      Performs the search.
      Returns:
      the list of graphs.
    • getNumNograph

      public int getNumNograph()
      Returns the number of no graph.
      Returns:
      the number of no graph.
    • setScoreWrapper

      public void setScoreWrapper(ScoreWrapper scoreWrapper)
      Returns the score wrapper.