Tabnine Logo
Stats.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
weka.experiment.Stats
constructor

Best Java code snippets using weka.experiment.Stats.<init> (Showing top 18 results out of 315)

origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Creates a new PairedStats object with the supplied significance level.
 *
 * @param sig the significance level for comparisons
 */
public PairedStats(double sig) {
  
 xStats = new Stats();
 yStats = new Stats();
 differencesStats = new Stats();
 sigLevel = sig;
}
origin: Waikato/weka-trunk

/**
 * Creates a new PairedStats object with the supplied significance level.
 *
 * @param sig the significance level for comparisons
 */
public PairedStats(double sig) {
  
 xStats = new Stats();
 yStats = new Stats();
 differencesStats = new Stats();
 sigLevel = sig;
}
origin: nz.ac.waikato.cms.weka/weka-stable

private Stats getStats() {
 return new Stats();
}

origin: Waikato/weka-trunk

private Stats getStats() {
 return new Stats();
}

origin: nz.ac.waikato.cms.weka/weka-stable

Stats ps = new Stats();
java.io.LineNumberReader r = new java.io.LineNumberReader(
 new java.io.InputStreamReader(System.in));
origin: Waikato/weka-trunk

Stats ps = new Stats();
java.io.LineNumberReader r = new java.io.LineNumberReader(
 new java.io.InputStreamReader(System.in));
origin: nz.ac.waikato.cms.weka/weka-stable

Stats[] stats = new Stats[resultTypes.length];
for (int i = 0; i < stats.length; i++) {
 stats[i] = new Stats();
origin: Waikato/weka-trunk

Stats[] stats = new Stats[resultTypes.length];
for (int i = 0; i < stats.length; i++) {
 stats[i] = new Stats();
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Unweighted macro-averaged F-measure. If some classes not present in the
 * test set, they're just skipped (since recall is undefined there anyway) .
 *
 * @return unweighted macro-averaged F-measure.
 * */
public double unweightedMacroFmeasure() {
 weka.experiment.Stats rr = new weka.experiment.Stats();
 for (int c = 0; c < m_NumClasses; c++) {
  // skip if no testing positive cases of this class
  if (numTruePositives(c) + numFalseNegatives(c) > 0) {
   rr.add(fMeasure(c));
  }
 }
 rr.calculateDerived();
 return rr.mean;
}
origin: Waikato/weka-trunk

/**
 * Unweighted macro-averaged F-measure. If some classes not present in the
 * test set, they're just skipped (since recall is undefined there anyway) .
 *
 * @return unweighted macro-averaged F-measure.
 * */
public double unweightedMacroFmeasure() {
 weka.experiment.Stats rr = new weka.experiment.Stats();
 for (int c = 0; c < m_NumClasses; c++) {
  // skip if no testing positive cases of this class
  if (numTruePositives(c) + numFalseNegatives(c) > 0) {
   rr.add(fMeasure(c));
  }
 }
 rr.calculateDerived();
 return rr.mean;
}
origin: nz.ac.waikato.cms.weka/weka-stable

result.numericStats = new weka.experiment.Stats();
origin: Waikato/weka-trunk

result.numericStats = new weka.experiment.Stats();
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Sets the format of the input instances.
 * 
 * @param instanceInfo an Instances object containing the input instance
 *          structure (any instances contained in the object are ignored -
 *          only the structure is required).
 * @return true if the outputFormat may be collected immediately
 * @throws Exception if the input format can't be set successfully
 */
@Override
public boolean setInputFormat(Instances instanceInfo) throws Exception {
 m_SelectCols.setUpper(instanceInfo.numAttributes() - 1);
 super.setInputFormat(instanceInfo);
 setOutputFormat(instanceInfo);
 m_attStats = new Stats[instanceInfo.numAttributes()];
 
 for (int i = 0; i < instanceInfo.numAttributes(); i++) {
  if (m_SelectCols.isInRange(i)
    && instanceInfo.attribute(i).isNumeric()
    && (instanceInfo.classIndex() != i) || getIgnoreClass()) {
   
   m_attStats[i] = new Stats();
  }
 }
 
 if (instanceInfo != null)
  compile();
 return true;
}

origin: Waikato/weka-trunk

/**
 * Sets the format of the input instances.
 * 
 * @param instanceInfo an Instances object containing the input instance
 *          structure (any instances contained in the object are ignored -
 *          only the structure is required).
 * @return true if the outputFormat may be collected immediately
 * @throws Exception if the input format can't be set successfully
 */
@Override
public boolean setInputFormat(Instances instanceInfo) throws Exception {
 m_SelectCols.setUpper(instanceInfo.numAttributes() - 1);
 super.setInputFormat(instanceInfo);
 setOutputFormat(instanceInfo);
 m_attStats = new Stats[instanceInfo.numAttributes()];
 
 for (int i = 0; i < instanceInfo.numAttributes(); i++) {
  if (m_SelectCols.isInRange(i)
    && instanceInfo.attribute(i).isNumeric()
    && (instanceInfo.classIndex() != i) || getIgnoreClass()) {
   
   m_attStats[i] = new Stats();
  }
 }
 
 if (instanceInfo != null)
  compile();
 return true;
}

origin: com.googlecode.obvious/obviousx-weka

result.numericStats = new weka.experiment.Stats();
origin: nz.ac.waikato.cms.moa/moa

      new int[m_clusterInstances.attribute(i).numValues()];
} else {
  m_attStats[i].numericStats = new Stats();
origin: nz.ac.waikato.cms.weka/weka-stable

  i).numValues()];
} else {
 m_attStats[i].numericStats = new Stats();
origin: Waikato/weka-trunk

  i).numValues()];
} else {
 m_attStats[i].numericStats = new Stats();
weka.experimentStats<init>

Popular methods of Stats

  • add
    Adds a weighted value to the observed values
  • calculateDerived
    Tells the object to calculate any statistics that don't have their values automatically updated duri
  • subtract
    Subtracts a weighted value from the observed values
  • goInvalid
  • isInvalid
  • negativeCount
  • reset

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getSystemService (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • ImageIO (javax.imageio)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now