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

Module transformers

source code

Simply functors that transform something.
Classes [hide private]
  OverAxis
Helper to apply transformer over specific axis
  DistPValue
Converts values into p-values under vague and non-scientific assumptions
Functions [hide private]
 
Absolute(x)
Returns the elementwise absolute of any argument.
source code
 
OneMinus(x)
Returns elementwise '1 - x' of any argument.
source code
 
Identity(x)
Return whatever it was called with.
source code
 
FirstAxisMean(x)
Mean computed along the first axis.
source code
 
FirstAxisSumNotZero(x)
Sum computed over first axis of whether the values are not equal to zero.
source code
 
SecondAxisMean(x)
Mean across 2nd axis
source code
 
SecondAxisSumOfAbs(x)
Sum of absolute values along the 2nd axis
source code
 
SecondAxisMaxOfAbs(x)
Max of absolute values along the 2nd axis
source code
 
GrandMean(x)
Just what the name suggests.
source code
 
L2Normed(x, norm=1.0, reverse=False)
Norm the values so that regular vector norm becomes norm
source code
 
L1Normed(x, norm=1.0, reverse=False)
Norm the values so that L_1 norm (sum|x|) becomes norm
source code
 
RankOrder(x, reverse=False)
Rank-order by value. Highest gets 0
source code
 
ReverseRankOrder(x)
Convinience functor
source code
Variables [hide private]
  _DEV_DOC = ...

Imports: N, externals, warning, StateVariable, ClassWithCollections, debug


Function Details [hide private]

SecondAxisMean(x)

source code 

Mean across 2nd axis

Use cases:
  • to combine multiple sensitivities to get sense about mean sensitivity across splits

SecondAxisSumOfAbs(x)

source code 

Sum of absolute values along the 2nd axis

Use cases:
  • to combine multiple sensitivities to get sense about what features are most influential

L2Normed(x, norm=1.0, reverse=False)

source code 

Norm the values so that regular vector norm becomes norm

More verbose: Norm that the sum of the squared elements of the returned vector becomes norm.


Variables Details [hide private]

_DEV_DOC

Value:
"""
Follow the convetion that functions start with lower case, and classes
with uppercase letter.
"""