Codota Logo
Stats.<init>
Code IndexAdd Codota 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)

  • Common ways to obtain Stats
private void myMethod () {
Stats s =
  • Codota Iconnew Stats()
  • Smart code suggestions by Codota
}
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

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • getApplicationContext (Context)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • StringTokenizer (java.util)
    The string tokenizer class allows an application to break a string into tokens. The tokenization met
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
  • JCheckBox (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now