Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alexhuth/ridge
/ functions
Functions
24 in github.com/alexhuth/ridge
⨍
Functions
24
◇
Types & classes
0
↓ 4 callers
Function
svd_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 callers
Function
_realType
(t, default=double)
svd_dgesvd.py:35
↓ 1 callers
Function
_assertNonEmpty
(*arrays)
svd_dgesvd.py:104
↓ 1 callers
Function
_assertRank2
(*arrays)
svd_dgesvd.py:89
↓ 1 callers
Function
_commonType
(*arrays)
svd_dgesvd.py:49
↓ 1 callers
Function
_fastCopyAndTranspose
(type, *arrays)
svd_dgesvd.py:77
↓ 1 callers
Function
_linalgRealType
Cast the type t to either double or cdouble.
svd_dgesvd.py:41
↓ 1 callers
Function
_makearray
(a)
svd_dgesvd.py:17
↓ 1 callers
Function
bootstrap_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 callers
Function
counter
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 callers
Function
gaussianize
Uses a look-up table to force the values in [vec] to be gaussian.
utils.py:50
↓ 1 callers
Function
isComplexType
(t)
svd_dgesvd.py:22
↓ 1 callers
Function
mult_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 callers
Function
ridge
Uses ridge regression to find a linear transformation of [stim] that approximates [resp]. The regularization parameter is [alpha]. Parameters
ridge.py:12
↓ 1 callers
Function
ridge_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 callers
Function
ridge_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
Function
center
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
Function
gaussianize_mat
Gaussianizes each column of [mat].
utils.py:58
Function
make_delayed
Creates non-interpolated concatenated delayed versions of [stim] with the given [delays] (in samples). If [circpad], instead of being pa
utils.py:65
Function
unzscore
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
Function
zscore
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