Package mvpa :: Package misc :: Module errorfx
[hide private]
[frames] | no frames]

Module errorfx

source code

Error functions helpers.

PyMVPA can use arbitrary function which takes 2 arguments: predictions and targets and spits out a scalar value. Functions below are for the convinience, and they confirm the agreement that 'smaller' is 'better'

Classes [hide private]
  _ErrorFx
Common error function interface, computing the difference between some target and some predicted values.
  RMSErrorFx
Computes the root mean squared error of some target and some predicted values.
  MeanMismatchErrorFx
Computes the percentage of mismatches between some target and some predicted values.
  AUCErrorFx
Computes the area under the ROC for the given the target and predicted to make the prediction.
  CorrErrorFx
Computes the correlation between the target and the predicted values. Return 1-CC
  CorrErrorPFx
Computes p-value of correlation between the target and the predicted values.
  RelativeRMSErrorFx
Ratio between RMSE and root mean power of target output.
  Variance1SVFx
Ratio of variance described by the first singular value component.
Functions [hide private]
 
meanPowerFx(data)
Returns mean power
source code
 
rootMeanPowerFx(data)
Returns root mean power
source code

Imports: N, trapz, externals, pearsonr


Function Details [hide private]

meanPowerFx(data)

source code 

Returns mean power

Similar to var but without demeaning

rootMeanPowerFx(data)

source code 

Returns root mean power

to be comparable against RMSE