Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ddbourgin/numpy-ml
/ functions
Functions
1,202 in github.com/ddbourgin/numpy-ml
⨍
Functions
1,202
◇
Types & classes
166
Function
gini
Gini impurity (local entropy) of a label sequence
numpy_ml/trees/dt.py:231
Function
glorot_normal
Initialize network weights `W` using the Glorot normal initialization strategy. Notes ----- The Glorot normal initializaiton initial
numpy_ml/neural_nets/utils/utils.py:962
Function
glorot_uniform
Initialize network weights `W` using the Glorot uniform initialization strategy. Notes ----- The Glorot uniform initialization s
numpy_ml/neural_nets/utils/utils.py:926
Method
grad
Compute the gradient of the activation function wrt the input
numpy_ml/neural_nets/activations/activations.py:25
Method
grad
r""" Evaluate the first derivative of the Affine activation on the elements of input `x`. .. math:: \frac{\parti
numpy_ml/neural_nets/activations/activations.py:372
Method
grad
r""" Evaluate the first derivative of the exponential activation on the elements of input `x`. .. math:: \frac{\
numpy_ml/neural_nets/activations/activations.py:509
Method
grad
r""" Evaluate the first derivative of the hard sigmoid activation on the elements of input `x`. .. math:: \frac{
numpy_ml/neural_nets/activations/activations.py:644
Method
grad
(self, y_true, y_pred, **kwargs)
numpy_ml/neural_nets/losses/losses.py:22
Method
grad2
r""" Evaluate the second derivative of the logistic sigmoid on the elements of `x`. .. math:: \frac{\partial^2 \sigma}{\
numpy_ml/neural_nets/activations/activations.py:60
Method
grad2
r""" Evaulate the second derivative of the ReLU function on the elements of input `x`. .. math:: \frac{\partial^
numpy_ml/neural_nets/activations/activations.py:128
Method
grad2
r""" Evaluate the second derivative of the leaky ReLU function on the elements of input `x`. .. math:: \frac{\pa
numpy_ml/neural_nets/activations/activations.py:198
Method
grad2
r""" Evaluate the second derivative of the GELU function on the elements of input `x`. .. math:: \frac{\partial^
numpy_ml/neural_nets/activations/activations.py:279
Method
grad2
r""" Evaluate the second derivative of the tanh function on the elements of input `x`. .. math:: \frac{\partial^
numpy_ml/neural_nets/activations/activations.py:328
Method
grad2
r""" Evaluate the second derivative of the Affine activation on the elements of input `x`. .. math:: \frac{\part
numpy_ml/neural_nets/activations/activations.py:383
Method
grad2
r""" Evaluate the second derivative of the exponential activation on the elements of input `x`. .. math:: \frac{
numpy_ml/neural_nets/activations/activations.py:520
Method
grad2
r""" Evaluate the second derivative of the SELU activation on the elements of input `x`. .. math:: \frac{\partia
numpy_ml/neural_nets/activations/activations.py:601
Method
grad2
r""" Evaluate the second derivative of the hard sigmoid activation on the elements of input `x`. .. math:: \frac
numpy_ml/neural_nets/activations/activations.py:657
Method
grad2
r""" Evaluate the second derivative of the softplus activation on the elements of input `x`. .. math:: \frac{\pa
numpy_ml/neural_nets/activations/activations.py:710
Function
grad_check_RNN
Manual gradient calc for vanilla RNN parameters
numpy_ml/tests/test_nn.py:1559
Method
gradients
A dictionary of the module parameter gradients.
numpy_ml/neural_nets/modules/modules.py:275
Method
gradients
A dictionary of the accumulated module parameter gradients.
numpy_ml/neural_nets/modules/modules.py:534
Method
gradients
A dictionary of the accumulated module parameter gradients.
numpy_ml/neural_nets/modules/modules.py:889
Method
gradients
A dictionary of the accumulated module parameter gradients.
numpy_ml/neural_nets/modules/modules.py:1154
Method
gradients
A dictionary of the accumulated module parameter gradients.
numpy_ml/neural_nets/modules/modules.py:1384
Method
gradients
A dictionary of the current layer parameter gradients.
numpy_ml/neural_nets/wrappers/wrappers.py:68
Method
gradients
Return a dictionary of the gradients computed during the backward pass
numpy_ml/neural_nets/layers/layers.py:4380
Method
gradients
(self)
numpy_ml/neural_nets/models/wgan_gp.py:192
Method
gradients
(self)
numpy_ml/neural_nets/models/vae.py:275
Method
gradients
Model parameter gradients
numpy_ml/neural_nets/models/w2v.py:196
Method
greedy_policy
Execute a greedy policy using the current agent parameters. Parameters ---------- max_steps : int The ma
numpy_ml/rl_models/agents.py:360
Method
greedy_policy
Execute a greedy policy using the current agent parameters. Parameters ---------- max_steps : int The ma
numpy_ml/rl_models/agents.py:745
Method
greedy_policy
Execute a deterministic greedy policy using the current agent parameters. Parameters ---------- max_steps :
numpy_ml/rl_models/agents.py:1254
Method
greedy_policy
Execute a deterministic greedy policy using the current agent parameters. Parameters ---------- max_steps :
numpy_ml/rl_models/agents.py:1868
Function
hamming
The Hamming window. Notes ----- The Hamming window is an instance of the more general class of cosine-sum windows where `K=1` an
numpy_ml/utils/windows.py:43
Function
hann
The Hann window. Notes ----- The Hann window is an instance of the more general class of cosine-sum windows where `K=1` and :mat
numpy_ml/utils/windows.py:76
Function
he_normal
Initialize network weights `W` using the He normal initialization strategy. Notes ----- The He normal initialization strategy initia
numpy_ml/neural_nets/utils/utils.py:895
Function
he_uniform
Initializes network weights `W` with using the He uniform initialization strategy. Notes ----- The He uniform initializations tr
numpy_ml/neural_nets/utils/utils.py:864
Method
hyperparameters
A dictionary of the module hyperparameters
numpy_ml/neural_nets/modules/modules.py:229
Method
hyperparameters
A dictionary of the module hyperparameters.
numpy_ml/neural_nets/modules/modules.py:488
Method
hyperparameters
A dictionary of the module hyperparameters.
numpy_ml/neural_nets/modules/modules.py:820
Method
hyperparameters
A dictionary of the module hyperparameters.
numpy_ml/neural_nets/modules/modules.py:1174
Method
hyperparameters
A dictionary of the module hyperparameters.
numpy_ml/neural_nets/modules/modules.py:1410
Method
hyperparameters
A dictionary of the base layer's hyperparameters
numpy_ml/neural_nets/wrappers/wrappers.py:44
Method
hyperparameters
Return a dictionary containing the layer hyperparameters.
numpy_ml/neural_nets/layers/layers.py:206
Method
hyperparameters
Return a dictionary containing the layer hyperparameters.
numpy_ml/neural_nets/layers/layers.py:438
Method
hyperparameters
Return a dictionary containing the layer hyperparameters.
numpy_ml/neural_nets/layers/layers.py:675
Method
hyperparameters
Return a dictionary containing the layer hyperparameters.
numpy_ml/neural_nets/layers/layers.py:787
Method
hyperparameters
Return a dictionary containing the layer hyperparameters.
numpy_ml/neural_nets/layers/layers.py:901
Method
hyperparameters
Return a dictionary containing the layer hyperparameters.
numpy_ml/neural_nets/layers/layers.py:1074
Method
hyperparameters
Return a dictionary containing the layer hyperparameters.
numpy_ml/neural_nets/layers/layers.py:1321
Method
hyperparameters
Return a dictionary containing the layer hyperparameters.
numpy_ml/neural_nets/layers/layers.py:1514
Method
hyperparameters
Return a dictionary containing the layer hyperparameters.
numpy_ml/neural_nets/layers/layers.py:1700
Method
hyperparameters
Return a dictionary containing the layer hyperparameters.
numpy_ml/neural_nets/layers/layers.py:1882
Method
hyperparameters
Return a dictionary containing the layer hyperparameters.
numpy_ml/neural_nets/layers/layers.py:2076
Method
hyperparameters
Return a dictionary containing the layer hyperparameters.
numpy_ml/neural_nets/layers/layers.py:2251
Method
hyperparameters
Return a dictionary containing the layer hyperparameters.
numpy_ml/neural_nets/layers/layers.py:2438
Method
hyperparameters
Return a dictionary containing the layer hyperparameters.
numpy_ml/neural_nets/layers/layers.py:2696
Method
hyperparameters
A dictionary containing the layer hyperparameters.
numpy_ml/neural_nets/layers/layers.py:2988
Method
hyperparameters
Return a dictionary containing the layer hyperparameters.
numpy_ml/neural_nets/layers/layers.py:3218
Method
hyperparameters
Return a dictionary containing the layer hyperparameters.
numpy_ml/neural_nets/layers/layers.py:3421
Method
hyperparameters
Return a dictionary containing the layer hyperparameters.
numpy_ml/neural_nets/layers/layers.py:3655
Method
hyperparameters
Return a dictionary containing the layer hyperparameters.
numpy_ml/neural_nets/layers/layers.py:3922
Method
hyperparameters
Return a dictionary containing the layer hyperparameters.
numpy_ml/neural_nets/layers/layers.py:4129
Method
hyperparameters
Return a dictionary containing the layer hyperparameters.
numpy_ml/neural_nets/layers/layers.py:4307
Method
hyperparameters
(self)
numpy_ml/neural_nets/models/wgan_gp.py:154
Method
hyperparameters
(self)
numpy_ml/neural_nets/models/vae.py:220
Method
hyperparameters
Model hyperparameters
numpy_ml/neural_nets/models/w2v.py:158
Method
hyperparameters
(self)
numpy_ml/neural_nets/losses/losses.py:648
Method
hyperparameters
A dictionary of the bandit hyperparameters
numpy_ml/bandits/bandits.py:25
Method
hyperparameters
A dictionary of the bandit hyperparameters
numpy_ml/bandits/bandits.py:110
Method
hyperparameters
A dictionary of the bandit hyperparameters
numpy_ml/bandits/bandits.py:168
Method
hyperparameters
A dictionary of the bandit hyperparameters
numpy_ml/bandits/bandits.py:229
Method
hyperparameters
A dictionary of the bandit hyperparameters
numpy_ml/bandits/bandits.py:300
Method
hyperparameters
A dictionary of the bandit hyperparameters
numpy_ml/bandits/bandits.py:372
Method
hyperparameters
A dictionary of the bandit hyperparameters
numpy_ml/bandits/bandits.py:476
Method
hyperparameters
A dictionary containing the policy hyperparameters
numpy_ml/bandits/policies.py:26
Method
hyperparameters
A dictionary containing the policy hyperparameters
numpy_ml/bandits/policies.py:149
Method
hyperparameters
A dictionary containing the policy hyperparameters
numpy_ml/bandits/policies.py:238
Method
hyperparameters
A dictionary containing the policy hyperparameters
numpy_ml/bandits/policies.py:344
Method
hyperparameters
A dictionary containing the policy hyperparameters
numpy_ml/bandits/policies.py:444
Method
hyperparameters
(self)
numpy_ml/preprocessing/general.py:172
Method
hyperparameters
Return a dictionary of the model hyperparameters
numpy_ml/factorization/factors.py:69
Method
hyperparameters
Return a dictionary of the model hyperparameters
numpy_ml/factorization/factors.py:218
Method
indices
(self)
numpy_ml/utils/graphs.py:76
Method
indices_to_words
Convert the indices in `indices` to their word values. If an index is not in the vocabulary, return the ``<unk>`` token. Par
numpy_ml/preprocessing/nlp.py:1148
Method
inverse_transform
Convert a one-hot encoding back into the corresponding labels Parameters ---------- Y : :py:class:`ndarray <numpy.nd
numpy_ml/preprocessing/general.py:119
Method
inverse_transform
Convert a collection of standardized features back into the original feature space. For a standardized sample `z`, the unsta
numpy_ml/preprocessing/general.py:244
Method
inverse_transform
Transform an encoded sequence of bit-strings back into words. Parameters ---------- codes : list of `N` binary strin
numpy_ml/preprocessing/nlp.py:484
Function
is_one_hot
Return True if array `x` is a binary array with a single 1
numpy_ml/utils/testing.py:43
Method
learning_rate
Return the current learning rate. Returns ------- lr : float The learning rate
numpy_ml/neural_nets/schedulers/schedulers.py:60
Method
learning_rate
Return the current learning rate as a function of `step`. Parameters ---------- step : int The current s
numpy_ml/neural_nets/schedulers/schedulers.py:124
Method
learning_rate
(self, step, **kwargs)
numpy_ml/neural_nets/schedulers/schedulers.py:192
Method
learning_rate
Compute the updated learning rate for the current step and loss. Parameters ---------- step : int The cu
numpy_ml/neural_nets/schedulers/schedulers.py:325
Method
line_search
(self, y, y_pred, h_pred)
numpy_ml/trees/losses.py:43
Function
linkcode_resolve
(domain, info)
docs/conf.py:63
Method
loss
(self, y_true, y_pred)
numpy_ml/neural_nets/losses/losses.py:18
Function
minibatch
Compute the minibatch indices for a training dataset. Parameters ---------- X : :py:class:`ndarray <numpy.ndarray>` of shape `(N, \*
numpy_ml/preprocessing/general.py:16
Function
mse
Mean squared error for decision tree (ie., mean) predictions
numpy_ml/trees/dt.py:215
Method
n_tokens
The number of unique word tokens in the vocabulary
numpy_ml/preprocessing/nlp.py:1083
Method
n_words
The total number of words in the corpus
numpy_ml/preprocessing/nlp.py:1088
← previous
next →
901–1,000 of 1,202, ranked by callers