MCPcopy Create free account

hub / github.com/alexhuth/ridge / functions

Functions24 in github.com/alexhuth/ridge

↓ 4 callersFunctionsvd_dgesvd
Singular Value Decomposition. Factorizes the matrix `a` into two unitary matrices, ``U`` and ``Vh``, and a 1-dimensional array of singul
svd_dgesvd.py:117
↓ 2 callersFunction_realType
(t, default=double)
svd_dgesvd.py:35
↓ 1 callersFunction_assertNonEmpty
(*arrays)
svd_dgesvd.py:104
↓ 1 callersFunction_assertRank2
(*arrays)
svd_dgesvd.py:89
↓ 1 callersFunction_commonType
(*arrays)
svd_dgesvd.py:49
↓ 1 callersFunction_fastCopyAndTranspose
(type, *arrays)
svd_dgesvd.py:77
↓ 1 callersFunction_linalgRealType
Cast the type t to either double or cdouble.
svd_dgesvd.py:41
↓ 1 callersFunction_makearray
(a)
svd_dgesvd.py:17
↓ 1 callersFunctionbootstrap_ridge
Uses ridge regression with a bootstrapped held-out set to get optimal alpha values for each response. [nchunks] random chunks of length [chunklen]
ridge.py:290
↓ 1 callersFunctioncounter
Logs a status and timing update to [logger] every [countevery] draws from [iterable]. If [total] is given, log messages will include the estimated
utils.py:110
↓ 1 callersFunctiongaussianize
Uses a look-up table to force the values in [vec] to be gaussian.
utils.py:50
↓ 1 callersFunctionisComplexType
(t)
svd_dgesvd.py:22
↓ 1 callersFunctionmult_diag
Multiply a full matrix by a diagonal matrix. This function should always be faster than dot. Input: d -- 1D (N,) array (contains the di
utils.py:88
↓ 1 callersFunctionridge
Uses ridge regression to find a linear transformation of [stim] that approximates [resp]. The regularization parameter is [alpha]. Parameters
ridge.py:12
↓ 1 callersFunctionridge_corr
Uses ridge regression to find a linear transformation of [Rstim] that approximates [Rresp], then tests by comparing the transformation of [Pstim]
ridge.py:166
↓ 1 callersFunctionridge_corr_pred
Uses ridge regression to find a linear transformation of [Rstim] that approximates [Rresp], then tests by comparing the transformation of [Pstim]
ridge.py:66
Function_assertFinite
(*arrays)
svd_dgesvd.py:100
Function_assertSquareness
(*arrays)
svd_dgesvd.py:95
Function_complexType
(t, default=cdouble)
svd_dgesvd.py:38
Functioncenter
Centers the rows of [mat] by subtracting off the mean, but doesn't divide by the SD. Can be undone like zscore.
utils.py:25
Functiongaussianize_mat
Gaussianizes each column of [mat].
utils.py:58
Functionmake_delayed
Creates non-interpolated concatenated delayed versions of [stim] with the given [delays] (in samples). If [circpad], instead of being pa
utils.py:65
Functionunzscore
Un-Z-scores the rows of [mat] by multiplying by unzvals[:,0] (the standard deviations) and then adding unzvals[:,1] (the row means).
utils.py:41
Functionzscore
Z-scores the rows of [mat] by subtracting off the mean and dividing by the standard deviation. If [return_unzvals] is True, a matrix will be r
utils.py:7