Java Code Examples for weka.core.SerializationHelper#needsUID()

The following examples show how to use weka.core.SerializationHelper#needsUID() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CheckAttributeSelection.java    From tsml with GNU General Public License v3.0 6 votes vote down vote up
/**
 * tests for a serialVersionUID. Fails in case the schemes don't declare
 * a UID (both must!).
 *
 * @return index 0 is true if the scheme declares a UID
 */
protected boolean[] declaresSerialVersionUID() {
  boolean[] result = new boolean[2];
  boolean eval;
  boolean search;
  
  print("serialVersionUID...");
  
  eval   = !SerializationHelper.needsUID(m_Evaluator.getClass());
  search = !SerializationHelper.needsUID(m_Search.getClass());
  
  result[0] = eval && search;
  
  if (result[0])
    println("yes");
  else
    println("no");
  
  return result;
}
 
Example 2
Source File: CheckClusterer.java    From tsml with GNU General Public License v3.0 5 votes vote down vote up
/**
 * tests for a serialVersionUID. Fails in case the scheme doesn't declare
 * a UID.
 *
 * @return index 0 is true if the scheme declares a UID
 */
protected boolean[] declaresSerialVersionUID() {
  boolean[] result = new boolean[2];
  
  print("serialVersionUID...");
  
  result[0] = !SerializationHelper.needsUID(m_Clusterer.getClass());
  
  if (result[0])
    println("yes");
  else
    println("no");
  
  return result;
}
 
Example 3
Source File: CheckAssociator.java    From tsml with GNU General Public License v3.0 5 votes vote down vote up
/**
 * tests for a serialVersionUID. Fails in case the scheme doesn't declare
 * a UID.
 *
 * @return index 0 is true if the scheme declares a UID
 */
protected boolean[] declaresSerialVersionUID() {
  boolean[] result = new boolean[2];
  
  print("serialVersionUID...");
  
  result[0] = !SerializationHelper.needsUID(m_Associator.getClass());
  
  if (result[0])
    println("yes");
  else
    println("no");
  
  return result;
}
 
Example 4
Source File: CheckClassifier.java    From tsml with GNU General Public License v3.0 5 votes vote down vote up
/**
 * tests for a serialVersionUID. Fails in case the scheme doesn't declare
 * a UID.
 *
 * @return index 0 is true if the scheme declares a UID
 */
protected boolean[] declaresSerialVersionUID() {
  boolean[] result = new boolean[2];

  print("serialVersionUID...");

  result[0] = !SerializationHelper.needsUID(m_Classifier.getClass());

  if (result[0])
    println("yes");
  else
    println("no");

  return result;
}
 
Example 5
Source File: CheckKernel.java    From tsml with GNU General Public License v3.0 5 votes vote down vote up
/**
 * tests for a serialVersionUID. Fails in case the scheme doesn't declare
 * a UID.
 *
 * @return index 0 is true if the scheme declares a UID
 */
protected boolean[] declaresSerialVersionUID() {
  boolean[] result = new boolean[2];
  
  print("serialVersionUID...");
  
  result[0] = !SerializationHelper.needsUID(m_Kernel.getClass());
  
  if (result[0])
    println("yes");
  else
    println("no");
  
  return result;
}