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

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • onCreateOptionsMenu (Activity)
  • setRequestProperty (URLConnection)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Kernel (java.awt.image)
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Collectors (java.util.stream)
  • 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