com.marmoush.jann.utils
Class PerformanceUtils

java.lang.Object
  extended by com.marmoush.jann.utils.PerformanceUtils

public class PerformanceUtils
extends Object

The Class PerformanceUtils.


Constructor Summary
PerformanceUtils()
           
 
Method Summary
static double linRgrCost(DoubleMatrix batchTrainingEx, DoubleMatrix batchTargets, DoubleMatrix weight)
           
static double linRgrCost(DoubleMatrix batchTrainingEx, DoubleMatrix batchTargets, DoubleMatrix weight, DoubleMatrix bias)
           
static double mae(DoubleMatrix error)
          Mae.
static double mse(DoubleMatrix error)
          Mse.
static double sse(DoubleMatrix error)
          Sse.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerformanceUtils

public PerformanceUtils()
Method Detail

linRgrCost

public static double linRgrCost(DoubleMatrix batchTrainingEx,
                                DoubleMatrix batchTargets,
                                DoubleMatrix weight)

linRgrCost

public static double linRgrCost(DoubleMatrix batchTrainingEx,
                                DoubleMatrix batchTargets,
                                DoubleMatrix weight,
                                DoubleMatrix bias)

mae

public static double mae(DoubleMatrix error)
Mae.

Parameters:
error - the error
Returns:
MatrixFunctions.abs(error).sum() / error.length;

mse

public static double mse(DoubleMatrix error)
Mse.

Parameters:
error - the error
Returns:
MatrixFunctions.pow(error, 2).sum() / error.length;

sse

public static double sse(DoubleMatrix error)
Sse.

Parameters:
error - the errorQp
Returns:
MatrixFunctions.pow(error, 2).sum();


Copyright © 2011-2012 Marmoush.com. All Rights Reserved.