title: Removing instances in Weka
body: <p>I am using the Weka Java API where I have a piece of code. In the code, I am trying to do something as follows:</p>
  
  <pre><code>for (each instance i in the training/test set)
          if (condition == TRUE)
              remove instance (i) from training/test set;
  </code></pre>
  
  <p>[Edit] For example, I have 1000 instances and I am trying to see for each instance, if a particular condition is met. If the condition is true, then I will remove the instance from the training/test set.</p>
  
  <p>I believe that Weka does not have an option for direct removal of instances in this way. Any suggestions, pros?</p>