MCPcopy Create free account

hub / github.com/ddbourgin/numpy-ml / functions

Functions1,202 in github.com/ddbourgin/numpy-ml

↓ 1 callersMethodextract_grads
(self, X)
numpy_ml/tests/nn_torch_models.py:849
↓ 1 callersMethodextract_grads
(self, X)
numpy_ml/tests/nn_torch_models.py:1018
↓ 1 callersMethodextract_grads
(self, X)
numpy_ml/tests/nn_torch_models.py:1131
↓ 1 callersMethodextract_grads
(self, X)
numpy_ml/tests/nn_torch_models.py:1190
↓ 1 callersMethodextract_grads
(self, X)
numpy_ml/tests/nn_torch_models.py:1254
↓ 1 callersMethodextract_grads
(self, X)
numpy_ml/tests/nn_torch_models.py:1318
↓ 1 callersMethodextract_grads
(self, X)
numpy_ml/tests/nn_torch_models.py:1411
↓ 1 callersMethodextract_grads
(self, X)
numpy_ml/tests/nn_torch_models.py:1508
↓ 1 callersMethodextract_grads
(self, X)
numpy_ml/tests/nn_torch_models.py:1555
↓ 1 callersMethodextract_grads
(self, X)
numpy_ml/tests/nn_torch_models.py:1590
↓ 1 callersMethodextract_grads
(self, Q, K, V, mask=None)
numpy_ml/tests/nn_torch_models.py:1636
↓ 1 callersMethodextract_grads
(self, Q, K, V, mask=None)
numpy_ml/tests/nn_torch_models.py:1761
↓ 1 callersMethodfit
Fit WGAN_GP on a training dataset. Parameters ---------- X_real : :py:class:`ndarray <numpy.ndarray>` of shape `(n_e
numpy_ml/neural_nets/models/wgan_gp.py:449
↓ 1 callersMethodfit
Fit the VAE to a training dataset. Parameters ---------- X_train : :py:class:`ndarray <numpy.ndarray>` of shape `(n_
numpy_ml/neural_nets/models/vae.py:402
↓ 1 callersMethodfit
Build a ball tree recursively using the O(M log N) `k`-d construction algorithm. Notes ----- Recursively div
numpy_ml/utils/data_structures.py:234
↓ 1 callersMethodfit
Given an observation sequence `O` and the set of possible latent states, learn the MLE HMM parameters `A` and `B`. Notes
numpy_ml/hmm/hmm.py:451
↓ 1 callersMethodfit
Create mappings between columns and category labels. Parameters ---------- categories : list of length `C`
numpy_ml/preprocessing/general.py:72
↓ 1 callersMethodfit
Store the feature-wise mean and standard deviation across the samples in `X` for future scaling. Parameters --------
numpy_ml/preprocessing/general.py:187
↓ 1 callersMethodfit
Build a Huffman tree for the tokens in `text` and compute each token's binary encoding. Notes ----- In a Huf
numpy_ml/preprocessing/nlp.py:432
↓ 1 callersMethodfit
Compute term-frequencies and inverse document frequencies on a collection of documents. Parameters ----------
numpy_ml/preprocessing/nlp.py:691
↓ 1 callersMethodfit
Factor a data matrix into two low rank factors via ALS. Parameters ---------- X : numpy array of shape `(N, M)`
numpy_ml/factorization/factors.py:100
↓ 1 callersMethodfit
Fit the regression coefficients via gradient descent on the negative log likelihood. Parameters ---------- X
numpy_ml/linear_models/logistic.py:90
↓ 1 callersMethodfit
Fit the regression coefficients via maximum likelihood. Parameters ---------- X : :py:class:`ndarray <numpy.ndarray>
numpy_ml/linear_models/ridge.py:61
↓ 1 callersMethodfit
Find the maximum likelihood GLM coefficients via IRLS. Parameters ---------- X : :py:class:`ndarray <numpy.ndarray>`
numpy_ml/linear_models/glm.py:129
↓ 1 callersMethodfit
Fit the model parameters via maximum likelihood. Notes ----- The model parameters are stored in the :py:attr:`parame
numpy_ml/linear_models/naive_bayes.py:79
↓ 1 callersMethodfit_params
Estimate `phi`, the word-topic distribution, and `theta`, the topic-document distribution. Parameters ----------
numpy_ml/lda/lda_smoothed.py:101
↓ 1 callersFunctionfixed_aspect_ratio
Set a fixed aspect ratio on matplotlib plots regardless of axis units
numpy_ml/plots/gmm_plots.py:21
↓ 1 callersMethodflush_gradients
(self)
numpy_ml/neural_nets/modules/modules.py:64
↓ 1 callersMethodflush_gradients
Erase all the wrapper and base layer's derived variables and gradients.
numpy_ml/neural_nets/wrappers/wrappers.py:100
↓ 1 callersMethodflush_gradients
Erase all the layer's derived variables and gradients.
numpy_ml/neural_nets/layers/layers.py:66
↓ 1 callersMethodflush_gradients
Erase all the layer's derived variables and gradients.
numpy_ml/neural_nets/layers/layers.py:4423
↓ 1 callersMethodflush_gradients
Reset parameter gradients after update
numpy_ml/neural_nets/models/vae.py:395
↓ 1 callersMethodflush_gradients
Reset parameter gradients after update
numpy_ml/neural_nets/models/w2v.py:248
↓ 1 callersMethodflush_gradients
Erase all the layer's derived variables and gradients.
numpy_ml/neural_nets/losses/losses.py:685
↓ 1 callersMethodfn
Apply the activation function to an input
numpy_ml/neural_nets/activations/activations.py:20
↓ 1 callersMethodfn
r""" Evaluate the leaky ReLU function on the elements of input `z`. .. math:: \text{LeakyReLU}(z_i) &=
numpy_ml/neural_nets/activations/activations.py:169
↓ 1 callersMethodfn
Compute the tanh function on the elements of input `z`.
numpy_ml/neural_nets/activations/activations.py:313
↓ 1 callersMethodfn
r""" Evaluate the SELU activation on the elements of input `z`. .. math:: \text{SELU}(z_i) = \text{scale} \times \text
numpy_ml/neural_nets/activations/activations.py:568
↓ 1 callersMethodforward
Compute the module output on a single minibatch. Parameters ---------- X_main : :py:class:`ndarray <numpy.ndarray>`
numpy_ml/neural_nets/modules/modules.py:287
↓ 1 callersMethodforward
Compute the module output given input volume `X`. Parameters ---------- X : :py:class:`ndarray <numpy.ndarray>` of s
numpy_ml/neural_nets/modules/modules.py:546
↓ 1 callersMethodforward
Compute the layer output given input volume `X`. Parameters ---------- X : :py:class:`ndarray <numpy.ndarray>` of sh
numpy_ml/neural_nets/modules/modules.py:905
↓ 1 callersMethodforward
Run a forward pass across all timesteps in the input. Parameters ---------- X : :py:class:`ndarray <numpy.ndarray>`
numpy_ml/neural_nets/modules/modules.py:1049
↓ 1 callersMethodforward
(self, Q, K, V)
numpy_ml/neural_nets/modules/modules.py:1313
↓ 1 callersMethodforward
r""" Compute the attention-weighted output of a collection of keys, values, and queries. Notes ----- In the m
numpy_ml/neural_nets/layers/layers.py:232
↓ 1 callersMethodforward
r""" Compute the layer output on a single minibatch. Parameters ---------- X : list of length `n_inputs`
numpy_ml/neural_nets/layers/layers.py:686
↓ 1 callersMethodforward
r""" Compute the layer output on a single minibatch. Parameters ---------- X : list of length `n_inputs`
numpy_ml/neural_nets/layers/layers.py:798
↓ 1 callersMethodforward
Compute the layer output on a single minibatch. Notes ----- Equations [train]:: Y = scaler * norm(X) +
numpy_ml/neural_nets/layers/layers.py:1095
↓ 1 callersMethodforward
Compute the layer output on a single minibatch. Parameters ---------- X : :py:class:`ndarray <numpy.ndarray>` of sha
numpy_ml/neural_nets/layers/layers.py:1342
↓ 1 callersMethodforward
Compute the layer output on a single minibatch. Notes ----- Equations [train & test]:: Y = scaler * nor
numpy_ml/neural_nets/layers/layers.py:1528
↓ 1 callersMethodforward
Compute the layer output on a single minibatch. Parameters ---------- X : :py:class:`ndarray <numpy.ndarray>` of sha
numpy_ml/neural_nets/layers/layers.py:1714
↓ 1 callersMethodforward
Compute the layer output on a single minibatch. Notes ----- Equations: Y = W[x] Parameters
numpy_ml/neural_nets/layers/layers.py:1912
↓ 1 callersMethodforward
Compute the layer output on a single minibatch. Parameters ---------- X : :py:class:`ndarray <numpy.ndarray>` of sha
numpy_ml/neural_nets/layers/layers.py:2090
↓ 1 callersMethodforward
Compute the layer output given input volume `X`. Parameters ---------- X : :py:class:`ndarray <numpy.ndarray>` of sh
numpy_ml/neural_nets/layers/layers.py:3006
↓ 1 callersMethodforward
Compute the layer output given input volume `X`. Parameters ---------- X : :py:class:`ndarray <numpy.ndarray>` of sh
numpy_ml/neural_nets/layers/layers.py:3235
↓ 1 callersMethodforward
Compute the layer output given input volume `X`. Parameters ---------- X : :py:class:`ndarray <numpy.ndarray>` of sh
numpy_ml/neural_nets/layers/layers.py:3438
↓ 1 callersMethodforward
Compute the network output for a single timestep. Parameters ---------- Xt : :py:class:`ndarray <numpy.ndarray>` of
numpy_ml/neural_nets/layers/layers.py:3669
↓ 1 callersMethodforward
Compute the layer output for a single timestep. Parameters ---------- Xt : :py:class:`ndarray <numpy.ndarray>` of sh
numpy_ml/neural_nets/layers/layers.py:3937
↓ 1 callersMethodforward
VAE forward pass
numpy_ml/neural_nets/models/vae.py:308
↓ 1 callersMethodforward
Evaluate the network on a single minibatch. Parameters ---------- X : :py:class:`ndarray <numpy.ndarray>` of shape `
numpy_ml/neural_nets/models/w2v.py:206
↓ 1 callersMethodforward
(self, Y_real, Y_fake, gradInterp)
numpy_ml/tests/nn_torch_models.py:87
↓ 1 callersMethodforward
(self, X)
numpy_ml/tests/nn_torch_models.py:157
↓ 1 callersMethodforward
(self, X)
numpy_ml/tests/nn_torch_models.py:236
↓ 1 callersMethodforward
(self, Xs)
numpy_ml/tests/nn_torch_models.py:306
↓ 1 callersMethodforward
(self, Xs)
numpy_ml/tests/nn_torch_models.py:352
↓ 1 callersMethodforward
(self, X)
numpy_ml/tests/nn_torch_models.py:460
↓ 1 callersMethodforward
(self, X_main, X_skip)
numpy_ml/tests/nn_torch_models.py:618
↓ 1 callersMethodforward
(self, X)
numpy_ml/tests/nn_torch_models.py:813
↓ 1 callersMethodforward
(self, X)
numpy_ml/tests/nn_torch_models.py:1000
↓ 1 callersMethodforward
(self, X)
numpy_ml/tests/nn_torch_models.py:1120
↓ 1 callersMethodforward
(self, X)
numpy_ml/tests/nn_torch_models.py:1175
↓ 1 callersMethodforward
(self, X)
numpy_ml/tests/nn_torch_models.py:1239
↓ 1 callersMethodforward
(self, X)
numpy_ml/tests/nn_torch_models.py:1303
↓ 1 callersMethodforward
(self, X)
numpy_ml/tests/nn_torch_models.py:1371
↓ 1 callersMethodforward
(self, X)
numpy_ml/tests/nn_torch_models.py:1544
↓ 1 callersMethodforward
(self, X)
numpy_ml/tests/nn_torch_models.py:1582
↓ 1 callersMethodforward
(self, Q, K, V, mask=None)
numpy_ml/tests/nn_torch_models.py:1608
↓ 1 callersMethodforward
(self, Q, K, V, mask=None)
numpy_ml/tests/nn_torch_models.py:1699
↓ 1 callersMethodfreeze
Freeze the base layer's parameters at their current values so they can no longer be updated.
numpy_ml/neural_nets/wrappers/wrappers.py:89
↓ 1 callersFunctiongaussian_cdf
Compute the probability that a random draw from a 1D Gaussian with mean `mean` and variance `var` is less than or equal to `x`.
numpy_ml/neural_nets/schedulers/schedulers.py:9
↓ 1 callersMethodgenerate
Sample a sequence from the HMM. Parameters ---------- n_steps : int The length of the generated sequence
numpy_ml/hmm/hmm.py:81
↓ 1 callersFunctiongenerate_corpus
()
numpy_ml/plots/lda_plots.py:16
↓ 1 callersFunctiongenerate_training_data
(params, n_steps=500, n_examples=15)
numpy_ml/plots/hmm_plots.py:16
↓ 1 callersMethodget_context
Sample the context vectors for each arm from a multivariate standard normal distribution. Returns ------- co
numpy_ml/bandits/bandits.py:490
↓ 1 callersMethodgetindex
(self, obj, readonly=False)
numpy_ml/rl_models/tiles/tiles3.py:63
↓ 1 callersMethodgrad
r""" Evaluate the first derivative of the leaky ReLU function on the elements of input `x`. .. math:: \frac{\par
numpy_ml/neural_nets/activations/activations.py:183
↓ 1 callersMethodgrad
r""" Evaluate the first derivative of the SELU activation on the elements of input `x`. .. math:: \frac{\partial
numpy_ml/neural_nets/activations/activations.py:586
↓ 1 callersMethodgrad
Gradient of the squared error loss with respect to the pre-nonlinearity input, `z`. Notes ----- The current
numpy_ml/neural_nets/losses/losses.py:68
↓ 1 callersMethodgrad
Compute the gradient of the cross entropy loss with regard to the softmax input, `z`. Notes ----- The gradie
numpy_ml/neural_nets/losses/losses.py:170
↓ 1 callersMethodgrad
(self, y, y_pred)
numpy_ml/trees/losses.py:40
↓ 1 callersMethodgrad
(self, y, y_pred)
numpy_ml/trees/losses.py:60
↓ 1 callersFunctionhamming
Compute the Hamming distance between two integer-valued vectors. Notes ----- The Hamming distance between two vectors **x** and **y*
numpy_ml/utils/distance_metrics.py:109
↓ 1 callersMethodinit_from_dict
Initialize scheduler from the param dictionary
numpy_ml/neural_nets/initializers/initializers.py:156
↓ 1 callersMethodinit_from_dict
Initialize optimizer from the `param` dictonary
numpy_ml/neural_nets/initializers/initializers.py:219
↓ 1 callersMethodinit_from_dict
(self)
numpy_ml/utils/kernels.py:281
↓ 1 callersMethodinit_from_str
Initialize activation function from the `param` string
numpy_ml/neural_nets/initializers/initializers.py:66
↓ 1 callersMethodinit_from_str
Initialize scheduler from the param string
numpy_ml/neural_nets/initializers/initializers.py:138
↓ 1 callersMethodinit_from_str
Initialize optimizer from the `param` string
numpy_ml/neural_nets/initializers/initializers.py:202
↓ 1 callersMethodinit_from_str
(self)
numpy_ml/utils/kernels.py:266
↓ 1 callersFunctioninit_wrappers
Initialize the layer wrappers in `wrapper_list` and return a wrapped `layer` object. Parameters ---------- layer : :doc:`Layer <
numpy_ml/neural_nets/wrappers/wrappers.py:235
↓ 1 callersMethodinitialize_parameters
Provide reasonable initializations for model and variational parameters.
numpy_ml/lda/lda.py:189
← previousnext →401–500 of 1,202, ranked by callers