congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
MathUtils.ssTotal
Code IndexAdd Tabnine to your IDE (free)

How to use
ssTotal
method
in
org.canova.api.util.MathUtils

Best Java code snippets using org.canova.api.util.MathUtils.ssTotal (Showing top 2 results out of 315)

origin: org.nd4j/canova-api

/**
 * Returns the correlation coefficient of two double vectors.
 *
 * @param residuals       residuals
 * @param targetAttribute target attribute vector
 * @return the correlation coefficient or r
 */
public static double correlation(double[] residuals, double targetAttribute[]) {
 double[] predictedValues = new double[residuals.length];
 for (int i = 0; i < predictedValues.length; i++) {
  predictedValues[i] = targetAttribute[i] - residuals[i];
 }
 double ssErr = ssError(predictedValues, targetAttribute);
 double total = ssTotal(residuals, targetAttribute);
 return 1 - (ssErr / total);
}//end correlation
origin: jpatanooga/Canova

/**
 * Returns the correlation coefficient of two double vectors.
 *
 * @param residuals residuals
 * @param targetAttribute target attribute vector
 *
 * @return the correlation coefficient or r
 */
public static  double correlation(double[] residuals,double targetAttribute[]) {
  double[] predictedValues = new double[residuals.length];
  for(int i=0;i<predictedValues.length;i++) {
    predictedValues[i]=targetAttribute[i] - residuals[i];
  }
  double ssErr=ssError(predictedValues,targetAttribute);
  double total=ssTotal(residuals,targetAttribute);
  return 1-(ssErr/total);
}//end correlation
/**
org.canova.api.utilMathUtilsssTotal

Javadoc

Total variance in target attribute

Popular methods of MathUtils

  • clamp
    Clamps the value to a discrete value
  • column
    This returns the given column over an n arrays
  • combination
    This returns the combination of n choose r
  • coordSplit
    This returns the coordinate split in a list of coordinates such that the values for ret[0] are the x
  • correlation
    Returns the correlation coefficient of two double vectors.
  • factorial
    This will return the factorial of the given number n.
  • gr
    Tests if a is greater than b.
  • idf
    Inverse document frequency: the total docs divided by the number of times the word appeared in a doc
  • log2
    Returns the logarithm of a for base 2.
  • maxIndex
    Returns index of maximum element in a given array of doubles. First maximum is returned.
  • normalize
    Normalizes the doubles in the array using the given value.
  • randomNumberBetween
    Generates a random integer between the specified numbers
  • normalize,
  • randomNumberBetween,
  • sm,
  • ssError,
  • ssReg,
  • sum,
  • sumOfMeanDifferences,
  • sumOfMeanDifferencesOnePoint,
  • sumOfProducts

Popular in Java

  • Start an intent from android
  • putExtra (Intent)
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • JLabel (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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