Codota Logo
Resample.flushInput
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain Resample
private void myMethod () {
Resample r =
  • Codota Iconnew Resample()
  • Smart code suggestions by Codota
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Signify that this batch of input to the filter is finished. If the filter
 * requires all instances prior to filtering, output() may now be called to
 * retrieve the filtered instances.
 * 
 * @return true if there are instances pending output
 * @throws IllegalStateException if no input structure has been defined
 */
@Override
public boolean batchFinished() {
 if (getInputFormat() == null) {
  throw new IllegalStateException("No input instance format defined");
 }
 if (!isFirstBatchDone()) {
  // Do the subsample, and clear the input instances.
  createSubsample();
 }
 flushInput();
 m_NewBatch = true;
 m_FirstBatchDone = true;
 return (numPendingOutput() != 0);
}
origin: Waikato/weka-trunk

/**
 * Signify that this batch of input to the filter is finished. If the filter
 * requires all instances prior to filtering, output() may now be called to
 * retrieve the filtered instances.
 * 
 * @return true if there are instances pending output
 * @throws IllegalStateException if no input structure has been defined
 */
@Override
public boolean batchFinished() {
 if (getInputFormat() == null) {
  throw new IllegalStateException("No input instance format defined");
 }
 if (!isFirstBatchDone()) {
  // Do the subsample, and clear the input instances.
  createSubsample();
 }
 flushInput();
 m_NewBatch = true;
 m_FirstBatchDone = true;
 return (numPendingOutput() != 0);
}
weka.filters.unsupervised.instanceResampleflushInput

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).
  • setNoReplacement
    Sets whether instances are drawn with or with out 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
  • 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
  • notifyDataSetChanged (ArrayAdapter)
  • getSystemService (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JFrame (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
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