Java 类weka.core.MultiInstanceCapabilitiesHandler 实例源码

项目:autoweka    文件:CheckClusterer.java   
/**
 * Checks whether the scheme handles multi-instance data.
 * 
 * @return true if the clusterer handles multi-instance data
 */
protected boolean[] multiInstanceHandler() {
  boolean[] result = new boolean[2];

  print("multi-instance clusterer...");
  if (m_Clusterer instanceof MultiInstanceCapabilitiesHandler) {
    println("yes");
    result[0] = true;
  }
  else {
    println("no");
    result[0] = false;
  }

  return result;
}
项目:autoweka    文件:CheckAssociator.java   
/**
 * Checks whether the scheme handles multi-instance data.
 * 
 * @return true if the associator handles multi-instance data
 */
protected boolean[] multiInstanceHandler() {
  boolean[] result = new boolean[2];

  print("multi-instance associator...");
  if (m_Associator instanceof MultiInstanceCapabilitiesHandler) {
    println("yes");
    result[0] = true;
  }
  else {
    println("no");
    result[0] = false;
  }

  return result;
}
项目:autoweka    文件:CheckAttributeSelection.java   
/**
 * Checks whether the scheme handles multi-instance data.
 * 
 * @return true if the scheme handles multi-instance data
 */
protected boolean[] multiInstanceHandler() {
  boolean[] result = new boolean[2];

  print("multi-instance scheme...");
  if (getTestObject() instanceof MultiInstanceCapabilitiesHandler) {
    println("yes");
    result[0] = true;
  }
  else {
    println("no");
    result[0] = false;
  }

  return result;
}
项目:autoweka    文件:CheckClassifier.java   
/**
 * Checks whether the scheme handles multi-instance data.
 *
 * @return true if the classifier handles multi-instance data
 */
protected boolean[] multiInstanceHandler() {
  boolean[] result = new boolean[2];

  print("multi-instance classifier...");
  if (m_Classifier instanceof MultiInstanceCapabilitiesHandler) {
    println("yes");
    result[0] = true;
  }
  else {
    println("no");
    result[0] = false;
  }

  return result;
}
项目:autoweka    文件:CheckKernel.java   
/**
 * Checks whether the scheme handles multi-instance data.
 * 
 * @return true if the kernel handles multi-instance data
 */
protected boolean[] multiInstanceHandler() {
  boolean[] result = new boolean[2];

  print("multi-instance kernel...");
  if (m_Kernel instanceof MultiInstanceCapabilitiesHandler) {
    println("yes");
    result[0] = true;
  }
  else {
    println("no");
    result[0] = false;
  }

  return result;
}
项目:autoweka    文件:PropertySheetPanel.java   
/**
 * updates the content of the capabilities help dialog.
 */
protected void updateText() {
  StringBuffer helpText = new StringBuffer();

  if (m_Target instanceof CapabilitiesHandler)
    helpText.append(
 addCapabilities(
     "CAPABILITIES", 
     ((CapabilitiesHandler) m_Target).getCapabilities()));

  if (m_Target instanceof MultiInstanceCapabilitiesHandler)
    helpText.append(
 addCapabilities(
     "MI CAPABILITIES", 
     ((MultiInstanceCapabilitiesHandler) m_Target).getMultiInstanceCapabilities()));

  m_CapabilitiesText.setText(helpText.toString());
  m_CapabilitiesText.setCaretPosition(0);
}
项目:umple    文件:PropertySheetPanel.java   
/**
 * updates the content of the capabilities help dialog.
 */
protected void updateText() {
  StringBuffer helpText = new StringBuffer();

  if (m_Target instanceof CapabilitiesHandler) {
    helpText.append(addCapabilities("CAPABILITIES",
      ((CapabilitiesHandler) m_Target).getCapabilities()));
  }

  if (m_Target instanceof MultiInstanceCapabilitiesHandler) {
    helpText.append(addCapabilities("MI CAPABILITIES",
      ((MultiInstanceCapabilitiesHandler) m_Target)
        .getMultiInstanceCapabilities()));
  }

  m_CapabilitiesText.setText(helpText.toString());
  m_CapabilitiesText.setCaretPosition(0);
}
项目:jbossBA    文件:CheckClusterer.java   
/**
 * Checks whether the scheme handles multi-instance data.
 * 
 * @return true if the clusterer handles multi-instance data
 */
protected boolean[] multiInstanceHandler() {
  boolean[] result = new boolean[2];

  print("multi-instance clusterer...");
  if (m_Clusterer instanceof MultiInstanceCapabilitiesHandler) {
    println("yes");
    result[0] = true;
  }
  else {
    println("no");
    result[0] = false;
  }

  return result;
}
项目:jbossBA    文件:CheckAssociator.java   
/**
 * Checks whether the scheme handles multi-instance data.
 * 
 * @return true if the associator handles multi-instance data
 */
protected boolean[] multiInstanceHandler() {
  boolean[] result = new boolean[2];

  print("multi-instance associator...");
  if (m_Associator instanceof MultiInstanceCapabilitiesHandler) {
    println("yes");
    result[0] = true;
  }
  else {
    println("no");
    result[0] = false;
  }

  return result;
}
项目:jbossBA    文件:CheckAttributeSelection.java   
/**
 * Checks whether the scheme handles multi-instance data.
 * 
 * @return true if the scheme handles multi-instance data
 */
protected boolean[] multiInstanceHandler() {
  boolean[] result = new boolean[2];

  print("multi-instance scheme...");
  if (getTestObject() instanceof MultiInstanceCapabilitiesHandler) {
    println("yes");
    result[0] = true;
  }
  else {
    println("no");
    result[0] = false;
  }

  return result;
}
项目:jbossBA    文件:CheckClassifier.java   
/**
 * Checks whether the scheme handles multi-instance data.
 * 
 * @return true if the classifier handles multi-instance data
 */
protected boolean[] multiInstanceHandler() {
  boolean[] result = new boolean[2];

  print("multi-instance classifier...");
  if (m_Classifier instanceof MultiInstanceCapabilitiesHandler) {
    println("yes");
    result[0] = true;
  }
  else {
    println("no");
    result[0] = false;
  }

  return result;
}
项目:jbossBA    文件:CheckKernel.java   
/**
 * Checks whether the scheme handles multi-instance data.
 * 
 * @return true if the kernel handles multi-instance data
 */
protected boolean[] multiInstanceHandler() {
  boolean[] result = new boolean[2];

  print("multi-instance kernel...");
  if (m_Kernel instanceof MultiInstanceCapabilitiesHandler) {
    println("yes");
    result[0] = true;
  }
  else {
    println("no");
    result[0] = false;
  }

  return result;
}
项目:jbossBA    文件:PropertySheetPanel.java   
/**
 * updates the content of the capabilities help dialog.
 */
protected void updateText() {
  StringBuffer helpText = new StringBuffer();

  if (m_Target instanceof CapabilitiesHandler) {
    helpText.append(addCapabilities("CAPABILITIES",
      ((CapabilitiesHandler) m_Target).getCapabilities()));
  }

  if (m_Target instanceof MultiInstanceCapabilitiesHandler) {
    helpText.append(addCapabilities("MI CAPABILITIES",
      ((MultiInstanceCapabilitiesHandler) m_Target)
        .getMultiInstanceCapabilities()));
  }

  m_CapabilitiesText.setText(helpText.toString());
  m_CapabilitiesText.setCaretPosition(0);
}
项目:repo.kmeanspp.silhouette_score    文件:CheckClusterer.java   
/**
 * Checks whether the scheme handles multi-instance data.
 * 
 * @return true if the clusterer handles multi-instance data
 */
protected boolean[] multiInstanceHandler() {
  boolean[] result = new boolean[2];

  print("multi-instance clusterer...");
  if (m_Clusterer instanceof MultiInstanceCapabilitiesHandler) {
    println("yes");
    result[0] = true;
  } else {
    println("no");
    result[0] = false;
  }

  return result;
}
项目:repo.kmeanspp.silhouette_score    文件:CheckAssociator.java   
/**
 * Checks whether the scheme handles multi-instance data.
 * 
 * @return true if the associator handles multi-instance data
 */
protected boolean[] multiInstanceHandler() {
  boolean[] result = new boolean[2];

  print("multi-instance associator...");
  if (m_Associator instanceof MultiInstanceCapabilitiesHandler) {
    println("yes");
    result[0] = true;
  } else {
    println("no");
    result[0] = false;
  }

  return result;
}
项目:repo.kmeanspp.silhouette_score    文件:CheckAttributeSelection.java   
/**
 * Checks whether the scheme handles multi-instance data.
 * 
 * @return true if the scheme handles multi-instance data
 */
protected boolean[] multiInstanceHandler() {
  boolean[] result = new boolean[2];

  print("multi-instance scheme...");
  if (getTestObject() instanceof MultiInstanceCapabilitiesHandler) {
    println("yes");
    result[0] = true;
  } else {
    println("no");
    result[0] = false;
  }

  return result;
}
项目:repo.kmeanspp.silhouette_score    文件:CheckClassifier.java   
/**
 * Checks whether the scheme handles multi-instance data.
 * 
 * @return true if the classifier handles multi-instance data
 */
protected boolean[] multiInstanceHandler() {
  boolean[] result = new boolean[2];

  print("multi-instance classifier...");
  if (m_Classifier instanceof MultiInstanceCapabilitiesHandler) {
    println("yes");
    result[0] = true;
  } else {
    println("no");
    result[0] = false;
  }

  return result;
}
项目:repo.kmeanspp.silhouette_score    文件:CheckKernel.java   
/**
 * Checks whether the scheme handles multi-instance data.
 * 
 * @return true if the kernel handles multi-instance data
 */
protected boolean[] multiInstanceHandler() {
  boolean[] result = new boolean[2];

  print("multi-instance kernel...");
  if (m_Kernel instanceof MultiInstanceCapabilitiesHandler) {
    println("yes");
    result[0] = true;
  } else {
    println("no");
    result[0] = false;
  }

  return result;
}
项目:umple    文件:CheckClusterer.java   
/**
 * Checks whether the scheme handles multi-instance data.
 * 
 * @return true if the clusterer handles multi-instance data
 */
protected boolean[] multiInstanceHandler() {
  boolean[] result = new boolean[2];

  print("multi-instance clusterer...");
  if (m_Clusterer instanceof MultiInstanceCapabilitiesHandler) {
    println("yes");
    result[0] = true;
  } else {
    println("no");
    result[0] = false;
  }

  return result;
}
项目:umple    文件:CheckAssociator.java   
/**
 * Checks whether the scheme handles multi-instance data.
 * 
 * @return true if the associator handles multi-instance data
 */
protected boolean[] multiInstanceHandler() {
  boolean[] result = new boolean[2];

  print("multi-instance associator...");
  if (m_Associator instanceof MultiInstanceCapabilitiesHandler) {
    println("yes");
    result[0] = true;
  } else {
    println("no");
    result[0] = false;
  }

  return result;
}
项目:umple    文件:CheckAttributeSelection.java   
/**
 * Checks whether the scheme handles multi-instance data.
 * 
 * @return true if the scheme handles multi-instance data
 */
protected boolean[] multiInstanceHandler() {
  boolean[] result = new boolean[2];

  print("multi-instance scheme...");
  if (getTestObject() instanceof MultiInstanceCapabilitiesHandler) {
    println("yes");
    result[0] = true;
  } else {
    println("no");
    result[0] = false;
  }

  return result;
}
项目:umple    文件:CheckClassifier.java   
/**
 * Checks whether the scheme handles multi-instance data.
 * 
 * @return true if the classifier handles multi-instance data
 */
protected boolean[] multiInstanceHandler() {
  boolean[] result = new boolean[2];

  print("multi-instance classifier...");
  if (m_Classifier instanceof MultiInstanceCapabilitiesHandler) {
    println("yes");
    result[0] = true;
  } else {
    println("no");
    result[0] = false;
  }

  return result;
}
项目:umple    文件:CheckKernel.java   
/**
 * Checks whether the scheme handles multi-instance data.
 * 
 * @return true if the kernel handles multi-instance data
 */
protected boolean[] multiInstanceHandler() {
  boolean[] result = new boolean[2];

  print("multi-instance kernel...");
  if (m_Kernel instanceof MultiInstanceCapabilitiesHandler) {
    println("yes");
    result[0] = true;
  } else {
    println("no");
    result[0] = false;
  }

  return result;
}
项目:jbossBA    文件:MISMO.java   
/**
 * Returns the capabilities of this multi-instance classifier for the
 * relational data.
 *
 * @return            the capabilities of this object
 * @see               Capabilities
 */
public Capabilities getMultiInstanceCapabilities() {
  Capabilities result = ((MultiInstanceCapabilitiesHandler) getKernel()).getMultiInstanceCapabilities();
  result.setOwner(this);

  // attribute
  result.enableAllAttributeDependencies();
  // with NominalToBinary we can also handle nominal attributes, but only
  // if the kernel can handle numeric attributes
  if (result.handles(Capability.NUMERIC_ATTRIBUTES))
    result.enable(Capability.NOMINAL_ATTRIBUTES);
  result.enable(Capability.MISSING_VALUES);

  return result;
}
项目:jbossBA    文件:MISMO.java   
/**
 * Sets the kernel to use.
 *
 * @param value the kernel
 */
public void setKernel(Kernel value) {
  if (!(value instanceof MultiInstanceCapabilitiesHandler))
    throw new IllegalArgumentException(
 "Kernel must be able to handle multi-instance data!\n"
 + "(This one does not implement " + MultiInstanceCapabilitiesHandler.class.getName() + ")");

  m_kernel = value;
}