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

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

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

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);
}
origin: Waikato/weka-trunk

/**
 * Input an instance for filtering. Filter requires all training 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 structure has been defined
 */
@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: nz.ac.waikato.cms.weka/weka-stable

/**
 * Input an instance for filtering. Filter requires all training 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 structure has been defined
 */
@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.instanceResampleisFirstBatchDone

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
  • 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.
  • getInvertSelection,
  • getNoReplacement,
  • getRandomSeed,
  • getSampleSizePercent,
  • numPendingOutput,
  • push,
  • resetQueue,
  • runFilter,
  • setOutputFormat

Popular in Java

  • Reactive rest calls using spring rest template
  • scheduleAtFixedRate (ScheduledExecutorService)
  • putExtra (Intent)
  • scheduleAtFixedRate (Timer)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JLabel (javax.swing)
  • Top 17 PhpStorm 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