Package weka.core

Examples of weka.core.Capabilities.test()


   * @param instances the instances
   */
  public void setInstances(Instances instances){

      Capabilities cap = getCapabilities();
      if (!cap.test(instances))
  throw new IllegalArgumentException(cap.getFailReason());
   
      if(m_retrieval == INCREMENTAL){
          if(setStructure(instances) == CANCEL)
              cancel();
View Full Code Here


   * @return the appropriate write mode
   */ 
  public int setStructure(Instances headerInfo){
 
      Capabilities cap = getCapabilities();
      if (!cap.test(headerInfo))
  throw new IllegalArgumentException(cap.getFailReason());
 
      if(m_writeMode == WAIT && headerInfo != null){
        m_instances = headerInfo;
        m_writeMode = STRUCTURE_READY;
View Full Code Here

   * @param instances the instances
   */
  public void setInstances(Instances instances){

      Capabilities cap = getCapabilities();
      if (!cap.test(instances))
  throw new IllegalArgumentException(cap.getFailReason());
   
      if(m_retrieval == INCREMENTAL){
          if(setStructure(instances) == CANCEL)
              cancel();
View Full Code Here

   * @return the appropriate write mode
   */ 
  public int setStructure(Instances headerInfo){
 
      Capabilities cap = getCapabilities();
      if (!cap.test(headerInfo))
  throw new IllegalArgumentException(cap.getFailReason());
 
      if(m_writeMode == WAIT && headerInfo != null){
        m_instances = headerInfo;
        m_writeMode = STRUCTURE_READY;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.