congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Resample.setNoReplacement
Code IndexAdd Tabnine to your IDE (free)

How to use
setNoReplacement
method
in
weka.filters.unsupervised.instance.Resample

Best Java code snippets using weka.filters.unsupervised.instance.Resample.setNoReplacement (Showing top 6 results out of 315)

origin: Waikato/weka-trunk

setNoReplacement(Utils.getFlag("no-replacement", options));
origin: nz.ac.waikato.cms.weka/weka-stable

setNoReplacement(Utils.getFlag("no-replacement", options));
origin: nz.ac.waikato.cms.weka/weka-stable

public void testSampleSizePercentNoReplacement() {
 ((Resample) m_Filter).setSampleSizePercent(20);
 ((Resample) m_Filter).setNoReplacement(true);
 Instances result = useFilter();
 assertEquals(m_Instances.numAttributes(), result.numAttributes());
 assertEquals("Expecting output to be 20% of input",
        (int) (m_Instances.numInstances() * 20.0 / 100),  result.numInstances());
}
origin: Waikato/weka-trunk

public void testSampleSizePercentNoReplacement() {
 ((Resample) m_Filter).setSampleSizePercent(20);
 ((Resample) m_Filter).setNoReplacement(true);
 Instances result = useFilter();
 assertEquals(m_Instances.numAttributes(), result.numAttributes());
 assertEquals("Expecting output to be 20% of input",
        (int) (m_Instances.numInstances() * 20.0 / 100),  result.numInstances());
}
origin: nz.ac.waikato.cms.weka/weka-stable

public void testSampleSizePercentNoReplacementInverted() {
 ((Resample) m_Filter).setSampleSizePercent(20);
 ((Resample) m_Filter).setNoReplacement(true);
 ((Resample) m_Filter).setInvertSelection(true);
 Instances result = useFilter();
 assertEquals(m_Instances.numAttributes(), result.numAttributes());
 assertEquals("Expecting output to be 80% of input (20% inverted)",
        m_Instances.numInstances() 
        - (int) (m_Instances.numInstances() * 20.0 / 100),  result.numInstances());
}
origin: Waikato/weka-trunk

public void testSampleSizePercentNoReplacementInverted() {
 ((Resample) m_Filter).setSampleSizePercent(20);
 ((Resample) m_Filter).setNoReplacement(true);
 ((Resample) m_Filter).setInvertSelection(true);
 Instances result = useFilter();
 assertEquals(m_Instances.numAttributes(), result.numAttributes());
 assertEquals("Expecting output to be 80% of input (20% inverted)",
        m_Instances.numInstances() 
        - (int) (m_Instances.numInstances() * 20.0 / 100),  result.numInstances());
}
weka.filters.unsupervised.instanceResamplesetNoReplacement

Javadoc

Sets whether instances are drawn with or with out replacement.

Popular methods of Resample

  • <init>
  • setSampleSizePercent
    Sets the size of the subsample, as a percentage of the original set.
  • setInputFormat
    Sets the format of the input instances.
  • setInvertSelection
    Sets whether the selection is inverted (only if instances are drawn WIHTOUT replacement).
  • setRandomSeed
    Sets the random number seed.
  • bufferInput
  • createSubsample
    Creates a subsample of the current set of input instances. The output instances are pushed onto the
  • flushInput
  • getInputFormat
  • getInvertSelection
    Gets whether selection is inverted (only if instances are drawn WIHTOUT replacement).
  • getNoReplacement
    Gets whether instances are drawn with or without replacement.
  • getRandomSeed
    Gets the random number seed.
  • getNoReplacement,
  • getRandomSeed,
  • getSampleSizePercent,
  • isFirstBatchDone,
  • numPendingOutput,
  • push,
  • resetQueue,
  • runFilter,
  • setOutputFormat

Popular in Java

  • Updating database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • getResourceAsStream (ClassLoader)
  • startActivity (Activity)
  • Menu (java.awt)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Notification (javax.management)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now