Tabnine Logo
RemovePercentage.bufferInput
Code IndexAdd Tabnine to your IDE (free)

How to use
bufferInput
method
in
weka.filters.unsupervised.instance.RemovePercentage

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

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

/**
 * Input an instance for filtering. Ordinarily the instance is processed and
 * made available for output immediately. Some filters require all instances
 * be read before producing output.
 * 
 * @param instance the input instance
 * @return true if the filtered instance may now be collected with output().
 * @throws IllegalStateException if no input format has been set.
 */
@Override
public boolean input(Instance instance) {
 if (getInputFormat() == null) {
  throw new IllegalStateException("No input instance format defined");
 }
 if (m_NewBatch) {
  resetQueue();
  m_NewBatch = false;
 }
 if (isFirstBatchDone()) {
  push(instance);
  return true;
 } else {
  bufferInput(instance);
  return false;
 }
}
origin: Waikato/weka-trunk

/**
 * Input an instance for filtering. Ordinarily the instance is processed and
 * made available for output immediately. Some filters require all instances
 * be read before producing output.
 * 
 * @param instance the input instance
 * @return true if the filtered instance may now be collected with output().
 * @throws IllegalStateException if no input format has been set.
 */
@Override
public boolean input(Instance instance) {
 if (getInputFormat() == null) {
  throw new IllegalStateException("No input instance format defined");
 }
 if (m_NewBatch) {
  resetQueue();
  m_NewBatch = false;
 }
 if (isFirstBatchDone()) {
  push(instance);
  return true;
 } else {
  bufferInput(instance);
  return false;
 }
}
weka.filters.unsupervised.instanceRemovePercentagebufferInput

Popular methods of RemovePercentage

  • <init>
  • setPercentage
    Sets the percentage of intances to select.
  • setInvertSelection
    Sets if selection is to be inverted.
  • setInputFormat
    Sets the format of the input instances.
  • flushInput
  • getInputFormat
  • getInvertSelection
    Gets if selection is to be inverted.
  • getPercentage
    Gets the percentage of instances to select.
  • isFirstBatchDone
  • numPendingOutput
  • push
  • resetQueue
  • push,
  • resetQueue,
  • runFilter,
  • setOutputFormat

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • getSystemService (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • Path (java.nio.file)
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • JTextField (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Runner (org.openjdk.jmh.runner)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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