Codota Logo
weka.experiment
Code IndexAdd Codota to your IDE (free)

How to use weka.experiment

Best Java code snippets using weka.experiment (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Set the ResultProducer.
 * 
 * @param newResultProducer new ResultProducer to use.
 */
public void setResultProducer(ResultProducer newResultProducer) {
 m_ResultProducer = newResultProducer;
 m_ResultProducer.setResultListener(this);
 findKeyIndex();
}
origin: Waikato/weka-trunk

/**
 * When this method is called, it indicates that no more results will be sent
 * that need to be grouped together in any way.
 * 
 * @param rp the ResultProducer that generated the results
 * @throws Exception if an error occurs
 */
@Override
public void postProcess(ResultProducer rp) throws Exception {
 super.postProcess(rp);
 m_ResultListener.postProcess(this);
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * returns the ranking in a string representation.
 * 
 * @return        the ranking
 */
public String toStringRanking() {
 return new ResultMatrixPlainText(this).toStringRanking();
}

origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Creates a new PairedStats object with the supplied significance level.
 *
 * @param sig the significance level for comparisons
 */
public PairedStats(double sig) {
  
 xStats = new Stats();
 yStats = new Stats();
 differencesStats = new Stats();
 sigLevel = sig;
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Can be used after add/subtract/calculateDerived()
 */
private void checkStatsInitialized(Stats stats) {
 assertTrue("Incorrect initialization for count!", 0.0 == stats.count);
 assertTrue("Incorrect initialization for sum!", 0.0 == stats.sum);
 assertTrue("Incorrect initialization for sumSq!", 0.0 == stats.sumSq);
 assertNaN("Incorrect initialization for stdDev!", stats.stdDev);
 assertNaN("Incorrect initialization for mean!", stats.mean);
 assertNaN("Incorrect initialization for min!", stats.min);
 assertNaN("Incorrect initialization for max!", stats.max);
}

origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Makes a database query using the query set through the -Q option to convert
 * a table into a set of instances
 * 
 * @return the instances contained in the result of the query
 * @throws Exception if an error occurs
 */
public Instances retrieveInstances() throws Exception {
 return retrieveInstances(m_Query);
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * When this method is called, it indicates that no more results will be sent
 * that need to be grouped together in any way.
 * 
 * @param rp the ResultProducer that generated the results
 * @throws Exception if an error occurs
 */
@Override
public void postProcess(ResultProducer rp) throws Exception {
 m_ResultListener.postProcess(this);
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Checks whether cursors are scrollable in general, false otherwise (also if
 * not connected).
 * 
 * @return true if scrollable and connected
 * @see #getSupportedCursorScrollType()
 */
public boolean isCursorScrollable() {
 return (getSupportedCursorScrollType() != -1);
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * sets the name of the row (if the index is valid).
 * 
 * @param index the index of the row
 * @param name the name of the row
 */
public void setRowName(int index, String name) {
 if ((index >= 0) && (index < getRowCount())) {
  m_RowNames[index] = name;
 }
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * removes the stored data but retains the dimensions of the matrix.
 */
public void clear() {
 super.clear();
 LEFT_PARENTHESES = "[";
 RIGHT_PARENTHESES = "]";
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * pads the given string on the right until it reaches the given length, if
 * longer cuts it down. if length is 0 then nothing is done.
 * 
 * @param s the string to pad
 * @param length the max. length of the string
 * @return the padded string
 */
protected String padString(String s, int length) {
 return padString(s, length, false);
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * When this method is called, it indicates that no more requests to generate
 * results for the current experiment will be sent. The ResultProducer should
 * call preProcess(this) on the ResultListener it is to send results to.
 * 
 * @throws Exception if an error occurs
 */
@Override
public void postProcess() throws Exception {
 m_ResultProducer.postProcess();
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Set the upper run number for the experiment.
 * 
 * @param newRunUpper the upper run number for the experiment.
 */
@Override
public void setRunUpper(int newRunUpper) {
 super.setRunUpper(newRunUpper);
 m_baseExperiment.setRunUpper(newRunUpper);
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Set the result producer used for the current experiment.
 * 
 * @param newResultProducer result producer to use for the current experiment.
 */
@Override
public void setResultProducer(ResultProducer newResultProducer) {
 super.setResultProducer(newResultProducer);
 m_baseExperiment.setResultProducer(newResultProducer);
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Set the datasets to use in the experiment
 * 
 * @param ds the list of datasets to use
 */
@Override
public void setDatasets(DefaultListModel ds) {
 super.setDatasets(ds);
 m_baseExperiment.setDatasets(ds);
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Reads the properties from the specified file and sets up the database
 * drivers.
 * 
 * @param propsFile the props file to load, ignored if null or pointing to a
 *          directory
 * @throws Exception if an error occurs
 */
public DatabaseUtils(File propsFile) throws Exception {
 this(loadProperties(propsFile));
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Set the SplitEvaluator.
 * 
 * @param newSplitEvaluator new SplitEvaluator to use.
 */
public void setSplitEvaluator(SplitEvaluator newSplitEvaluator) {
 m_SplitEvaluator = newSplitEvaluator;
 m_SplitEvaluator.setAdditionalMeasures(m_AdditionalMeasures);
}
origin: Waikato/weka-trunk

/**
 * Set the ResultProducer.
 * 
 * @param newResultProducer new ResultProducer to use.
 */
public void setResultProducer(ResultProducer newResultProducer) {
 m_ResultProducer = newResultProducer;
 m_ResultProducer.setResultListener(this);
 findKeyIndex();
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * When this method is called, it indicates that no more results will be sent
 * that need to be grouped together in any way.
 * 
 * @param rp the ResultProducer that generated the results
 * @throws Exception if an error occurs
 */
@Override
public void postProcess(ResultProducer rp) throws Exception {
 super.postProcess(rp);
 m_ResultListener.postProcess(this);
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * When this method is called, it indicates that no more results will be sent
 * that need to be grouped together in any way.
 * 
 * @param rp the ResultProducer that generated the results
 * @throws Exception if an error occurs
 */
@Override
public void postProcess(ResultProducer rp) throws Exception {
 m_ResultListener.postProcess(this);
}
weka.experiment

Most used classes

  • Stats
    A class to store simple statistics. Upon initialization the variables take the following values: #
  • Compute
    Interface to something that can accept remote connections and execute a task.
  • InstanceQuery
    Convert the results of a database query into instances. The jdbc driver and database to be used defa
  • PairedStatsCorrected
    A class for storing stats on a paired comparison. This version is based on the corrected resampled t
  • AveragingResultProducer
    Takes the results from a ResultProducer and submits the average to the result listener. Normally us
  • ClassifierSplitEvaluator,
  • CostSensitiveClassifierSplitEvaluator,
  • CrossValidationResultProducer,
  • CrossValidationSplitResultProducer,
  • DatabaseResultListener,
  • DatabaseResultProducer,
  • DatabaseUtils,
  • DensityBasedClustererSplitEvaluator,
  • Experiment,
  • ExplicitTestsetResultProducer,
  • InstanceQueryAdapter,
  • InstancesResultListener,
  • LearningRateResultProducer,
  • OutputZipper
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now