MCPcopy Create free account

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

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

Method__init__
r""" Nonnegative matrix factorization (NMF) performed using fast hierarchical alternating least squares (HALS) [*]_. Notes
numpy_ml/factorization/factors.py:161
Method__init__
r""" A simple binary logistic regression model fit via gradient descent on the penalized negative log likelihood. Notes
numpy_ml/linear_models/logistic.py:6
Method__init__
r""" A weighted linear least-squares regression model. Notes ----- In weighted linear least-squares regression [1]_,
numpy_ml/linear_models/linear_regression.py:7
Method__init__
r""" A ridge regression model with maximum likelihood fit via the normal equations. Notes ----- Ridge regress
numpy_ml/linear_models/ridge.py:7
Method__init__
r""" Bayesian linear regression model with unknown variance. Assumes a conjugate normal-inverse-gamma joint prior on the model paramet
numpy_ml/linear_models/bayesian_regression.py:9
Method__init__
r""" Bayesian linear regression model with known error variance and conjugate Gaussian prior on model parameters. Notes
numpy_ml/linear_models/bayesian_regression.py:168
Method__init__
r""" A generalized linear model with maximum likelihood fit via iteratively reweighted least squares (IRLS). Notes --
numpy_ml/linear_models/glm.py:49
Method__init__
r""" A naive Bayes classifier for real-valued data. Notes ----- The naive Bayes model assumes the features of each tr
numpy_ml/linear_models/naive_bayes.py:6
Method__init__
A smoothed LDA model trained using collapsed Gibbs sampling. Generates posterior mean estimates for model parameters `phi` and `theta
numpy_ml/lda/lda_smoothed.py:5
Method__init__
Vanilla (non-smoothed) LDA model trained using variational EM. Generates maximum-likelihood estimates for model paramters `al
numpy_ml/lda/lda.py:6
Method__init__
(self, left, right, rule)
numpy_ml/trees/dt.py:5
Method__init__
`value` is an array of class probabilities if classifier is True, else the mean of the region
numpy_ml/trees/dt.py:13
Method__init__
A decision tree model for regression and classification problems. Parameters ---------- classifier : bool
numpy_ml/trees/dt.py:22
Method__init__
An ensemble (forest) of decision trees where each split is calculated using a random subset of the features in the input. Pa
numpy_ml/trees/rf.py:12
Method__init__
A gradient boosted ensemble of decision trees. Notes ----- Gradient boosted machines (GBMs) fit an ensemble of `m` w
numpy_ml/trees/gbdt.py:19
Method__init__
(self, lambda_=10)
numpy_ml/tests/nn_torch_models.py:83
Method__init__
(self)
numpy_ml/tests/nn_torch_models.py:125
Method__init__
(self, n_in, params, mode, momentum=0.9, epsilon=1e-5)
numpy_ml/tests/nn_torch_models.py:139
Method__init__
(self, feat_dims, params, mode, epsilon=1e-5)
numpy_ml/tests/nn_torch_models.py:217
Method__init__
(self, act_fn, **kwargs)
numpy_ml/tests/nn_torch_models.py:302
Method__init__
(self, act_fn, **kwargs)
numpy_ml/tests/nn_torch_models.py:348
Method__init__
(self, act_fn, pad1, pad2, params, hparams, momentum=0.9, epsilon=1e-5)
numpy_ml/tests/nn_torch_models.py:394
Method__init__
( self, in_channels, out_channels, kernel_size, stride=1, dila
numpy_ml/tests/nn_torch_models.py:548
Method__init__
(self, params, hparams, conv_1x1_pad)
numpy_ml/tests/nn_torch_models.py:579
Method__init__
( self, act_fn, pad1, pad2, pad_skip, params, hparams, momentum=0.9, epsilon=1e-5 )
numpy_ml/tests/nn_torch_models.py:716
Method__init__
(self, n_in, n_out, params, **kwargs)
numpy_ml/tests/nn_torch_models.py:921
Method__init__
(self, in_channels, hparams, **kwargs)
numpy_ml/tests/nn_torch_models.py:1104
Method__init__
(self, in_channels, out_channels, act_fn, params, hparams, **kwargs)
numpy_ml/tests/nn_torch_models.py:1150
Method__init__
(self, in_channels, out_channels, act_fn, params, hparams, **kwargs)
numpy_ml/tests/nn_torch_models.py:1214
Method__init__
(self, in_channels, out_channels, act_fn, params, hparams, **kwargs)
numpy_ml/tests/nn_torch_models.py:1278
Method__init__
(self, n_in, n_out, params, **kwargs)
numpy_ml/tests/nn_torch_models.py:1342
Method__init__
(self, n_in, n_hid, params, **kwargs)
numpy_ml/tests/nn_torch_models.py:1463
Method__init__
(self, n_in, n_hid, act_fn, params, **kwargs)
numpy_ml/tests/nn_torch_models.py:1530
Method__init__
(self, vocab_size, n_out, params, **kwargs)
numpy_ml/tests/nn_torch_models.py:1574
Method__init__
(self)
numpy_ml/tests/nn_torch_models.py:1605
Method__init__
Take in model size and number of heads.
numpy_ml/tests/nn_torch_models.py:1658
Method__init__
( self, N, K=1, unk=True, filter_stopwords=True, filter_punctuation=True )
numpy_ml/tests/test_ngram.py:13
Method__init__
( self, N, K=1, unk=True, filter_stopwords=True, filter_punctuation=True )
numpy_ml/tests/test_ngram.py:108
Method__init__
A simple word-level N-gram language model. Notes ----- This is not optimized code and will be slow for large corpora
numpy_ml/ngram/ngram.py:13
Method__init__
An N-Gram model with smoothed probabilities calculated via additive / Lidstone smoothing. Notes ----- The re
numpy_ml/ngram/ngram.py:365
Method__init__
An N-Gram model with smoothed probabilities calculated with the simple Good-Turing estimator from Gale (2001). Parameters
numpy_ml/ngram/ngram.py:460
Method__init__
A Gaussian mixture model trained via the expectation maximization algorithm. Parameters ---------- C : int
numpy_ml/gmm/gmm.py:8
Method__iter__
(self)
numpy_ml/utils/data_structures.py:93
Method__iter__
Return an iterator over the tokens in the vocabulary
numpy_ml/preprocessing/nlp.py:1064
Method__le__
(self, other)
numpy_ml/utils/data_structures.py:51
Method__le__
Less than or equal to
numpy_ml/preprocessing/nlp.py:424
Method__len__
(self)
numpy_ml/utils/data_structures.py:90
Method__len__
Return the number of tokens in the vocabulary
numpy_ml/preprocessing/nlp.py:1060
Method__lt__
(self, other)
numpy_ml/utils/data_structures.py:44
Method__lt__
Less than
numpy_ml/preprocessing/nlp.py:418
Method__missing__
(self, key)
numpy_ml/utils/data_structures.py:521
Method__repr__
A string representation for the bandit
numpy_ml/bandits/bandits.py:18
Method__repr__
Return a string representation of the policy
numpy_ml/bandits/policies.py:19
Method__repr__
(self)
numpy_ml/utils/data_structures.py:22
Method__repr__
(self)
numpy_ml/utils/data_structures.py:86
Method__repr__
(self)
numpy_ml/utils/data_structures.py:187
Method__repr__
(self)
numpy_ml/utils/graphs.py:33
Method__repr__
A string representation of the token
numpy_ml/preprocessing/nlp.py:578
Method__setitem__
Set self[key] to value
numpy_ml/rl_models/rl_utils.py:48
Method__str__
Return a string representation of the activation function
numpy_ml/neural_nets/activations/activations.py:35
Method__str__
Return a string representation of the activation function
numpy_ml/neural_nets/activations/activations.py:100
Method__str__
Return a string representation of the activation function
numpy_ml/neural_nets/activations/activations.py:165
Method__str__
Return a string representation of the activation function
numpy_ml/neural_nets/activations/activations.py:235
Method__str__
Return a string representation of the activation function
numpy_ml/neural_nets/activations/activations.py:309
Method__str__
Return a string representation of the activation function
numpy_ml/neural_nets/activations/activations.py:358
Method__str__
Return a string representation of the activation function
numpy_ml/neural_nets/activations/activations.py:407
Method__str__
Return a string representation of the activation function
numpy_ml/neural_nets/activations/activations.py:445
Method__str__
Return a string representation of the activation function
numpy_ml/neural_nets/activations/activations.py:496
Method__str__
Return a string representation of the activation function
numpy_ml/neural_nets/activations/activations.py:564
Method__str__
Return a string representation of the activation function
numpy_ml/neural_nets/activations/activations.py:627
Method__str__
Return a string representation of the activation function
numpy_ml/neural_nets/activations/activations.py:684
Method__str__
(self)
numpy_ml/neural_nets/schedulers/schedulers.py:57
Method__str__
(self)
numpy_ml/neural_nets/schedulers/schedulers.py:119
Method__str__
(self)
numpy_ml/neural_nets/schedulers/schedulers.py:187
Method__str__
(self)
numpy_ml/neural_nets/schedulers/schedulers.py:241
Method__str__
(self)
numpy_ml/neural_nets/optimizers/optimizers.py:103
Method__str__
(self)
numpy_ml/neural_nets/optimizers/optimizers.py:208
Method__str__
(self)
numpy_ml/neural_nets/optimizers/optimizers.py:314
Method__str__
(self)
numpy_ml/neural_nets/optimizers/optimizers.py:419
Method__str__
(self)
numpy_ml/neural_nets/losses/losses.py:45
Method__str__
(self)
numpy_ml/neural_nets/losses/losses.py:129
Method__str__
(self)
numpy_ml/neural_nets/losses/losses.py:257
Method__str__
(self)
numpy_ml/neural_nets/losses/losses.py:412
Method__str__
(self)
numpy_ml/neural_nets/losses/losses.py:666
Method__str__
Prepares a string for printing whenever this object is printed
numpy_ml/rl_models/tiles/tiles3.py:44
Method__str__
(self)
numpy_ml/utils/kernels.py:21
Method_backward_naive
A slower (ie., non-vectorized) but more straightforward implementation of the gradient computations for a 2D conv layer. Par
numpy_ml/neural_nets/layers/layers.py:2833
Method_backward_naive
A slower (ie., non-vectorized) but more straightforward implementation of the gradient computations for a 2D conv layer. Par
numpy_ml/neural_nets/layers/layers.py:3118
Method_build_adjacency_list
Encode directed graph as an adjancency list
numpy_ml/utils/graphs.py:189
Method_build_adjacency_list
Encode undirected, unweighted graph as an adjancency list
numpy_ml/utils/graphs.py:285
Method_bwd2
Compute second derivatives / deriv. of loss wrt. dX, dW, and db
numpy_ml/neural_nets/layers/layers.py:2544
Method_epsilon_soft_policy
r""" Epsilon-soft exploration policy. Notes ----- Soft policies are necessary for first-visit Monte Carlo methods, as
numpy_ml/rl_models/agents.py:458
Method_epsilon_soft_policy
r""" Epsilon-soft exploration policy. In epsilon-soft policies, :math:`\pi(a|s) > 0` for all s ∈ S and all a ∈ A(s) at the st
numpy_ml/rl_models/agents.py:1054
Method_epsilon_soft_policy
Epsilon-soft exploration policy. In epsilon-soft policies, pi(a|s) > 0 for all s ∈ S and all a ∈ A(s) at the start of traini
numpy_ml/rl_models/agents.py:1499
Method_init_params
(self, **kwargs)
numpy_ml/neural_nets/modules/modules.py:29
Method_init_params
(self, **kwargs)
numpy_ml/neural_nets/layers/layers.py:42
Method_init_wrapper_params
(self)
numpy_ml/neural_nets/wrappers/wrappers.py:20
Method_initialize_params
Initialize any policy-specific parameters that depend on information from the bandit environment.
numpy_ml/bandits/policies.py:157
Method_initialize_params
Initialize any policy-specific parameters that depend on information from the bandit environment.
numpy_ml/bandits/policies.py:246
Method_initialize_params
(self, bandit)
numpy_ml/bandits/policies.py:352
← previousnext →701–800 of 1,202, ranked by callers