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
↓ 1 callers
Method
_M_step
Run a single M-step update for the Baum-Welch/Forward-Backward algorithm. Parameters ---------- O : :py:clas
numpy_ml/hmm/hmm.py:622
↓ 1 callers
Method
_M_step
Maximize the VLB with respect to the model parameters, α and β
numpy_ml/lda/lda.py:144
↓ 1 callers
Method
_M_step
(self, X)
numpy_ml/gmm/gmm.py:210
↓ 1 callers
Method
_NLL
r""" Penalized negative log likelihood of the targets under the current model. .. math:: \text{NLL} = -\frac{1}{
numpy_ml/linear_models/logistic.py:121
↓ 1 callers
Method
_NLL_grad
Gradient of the penalized negative log likelihood wrt beta
numpy_ml/linear_models/logistic.py:143
↓ 1 callers
Method
__contains__
True if EnvModel contains `key`, else False
numpy_ml/rl_models/rl_utils.py:58
↓ 1 callers
Method
__getitem__
(self, key)
numpy_ml/utils/data_structures.py:513
↓ 1 callers
Method
__init__
A dropout regularization wrapper. Notes ----- During training, a dropout layer zeroes each element of the layer inpu
numpy_ml/neural_nets/wrappers/wrappers.py:153
↓ 1 callers
Method
__setitem__
(self, key, value)
numpy_ml/utils/data_structures.py:495
↓ 1 callers
Method
_backward
r""" Compute the backward probability trellis for an HMM parameterized by :math:`(A, B, \pi)`. Notes ----- Th
numpy_ml/hmm/hmm.py:362
↓ 1 callers
Method
_build_adjacency_list
(self)
numpy_ml/utils/graphs.py:169
↓ 1 callers
Method
_build_code
(self, root, current_code)
numpy_ml/preprocessing/nlp.py:554
↓ 1 callers
Method
_build_critic
FC1 -> ReLU -> FC2 -> ReLU -> FC3 -> ReLU -> FC4
numpy_ml/neural_nets/models/wgan_gp.py:132
↓ 1 callers
Method
_build_decoder
MLP decoder FC1 -> ReLU -> FC2 -> Sigmoid
numpy_ml/neural_nets/models/vae.py:191
↓ 1 callers
Method
_build_encoder
CNN encoder Conv1 -> ReLU -> MaxPool1 -> Conv2 -> ReLU -> MaxPool2 -> Flatten -> FC1 -> ReLU -> FC2
numpy_ml/neural_nets/models/vae.py:142
↓ 1 callers
Method
_build_generator
FC1 -> ReLU -> FC2 -> ReLU -> FC3 -> ReLU -> FC4
numpy_ml/neural_nets/models/wgan_gp.py:111
↓ 1 callers
Method
_build_noise_distribution
Construct the noise distribution for use during negative sampling. For a word ``w`` in the corpus, the noise distribution is::
numpy_ml/neural_nets/models/w2v.py:271
↓ 1 callers
Method
_build_tree
Construct Huffman Tree
numpy_ml/preprocessing/nlp.py:521
↓ 1 callers
Method
_bwd
Actual computation of the gradient of the loss wrt. q, k, and v
numpy_ml/neural_nets/layers/layers.py:352
↓ 1 callers
Method
_bwd
Actual computation of gradient of the loss wrt. each input
numpy_ml/neural_nets/layers/layers.py:739
↓ 1 callers
Method
_bwd
Actual computation of gradient of loss wrt. each input
numpy_ml/neural_nets/layers/layers.py:851
↓ 1 callers
Method
_bwd
Computation of gradient of loss wrt. X, scaler, and intercept
numpy_ml/neural_nets/layers/layers.py:1192
↓ 1 callers
Method
_bwd
Computation of gradient of loss wrt X, scaler, and intercept
numpy_ml/neural_nets/layers/layers.py:1424
↓ 1 callers
Method
_bwd
Computation of gradient of the loss wrt X, scaler, intercept
numpy_ml/neural_nets/layers/layers.py:1606
↓ 1 callers
Method
_bwd
Computation of gradient of the loss wrt X, scaler, intercept
numpy_ml/neural_nets/layers/layers.py:1784
↓ 1 callers
Method
_bwd
Actual computation of gradient of the loss wrt. W
numpy_ml/neural_nets/layers/layers.py:1993
↓ 1 callers
Method
_bwd
Actual computation of gradient of the loss wrt. X, W, and b
numpy_ml/neural_nets/layers/layers.py:2165
↓ 1 callers
Method
_bwd
Actual computation of the gradient of the loss wrt. the input X. The Jacobian, J, of the softmax for input x = [x1, ..., xn] is:
numpy_ml/neural_nets/layers/layers.py:2330
↓ 1 callers
Method
_bwd
Actual computation of gradient of the loss wrt. X, W, and b
numpy_ml/neural_nets/layers/layers.py:2530
↓ 1 callers
Method
_bwd
Actual computation of gradient of the loss wrt. X, W, and b
numpy_ml/neural_nets/layers/layers.py:2799
↓ 1 callers
Method
_bwd
Actual computation of gradient of the loss wrt. X, W, and b
numpy_ml/neural_nets/layers/layers.py:3093
↓ 1 callers
Method
_bwd
Actual computation of gradient of the loss wrt. X, W, and b
numpy_ml/neural_nets/layers/layers.py:3521
↓ 1 callers
Method
_bwd2
Compute second derivatives / deriv. of loss wrt. dX, dW, and db
numpy_ml/neural_nets/layers/layers.py:2178
↓ 1 callers
Method
_calc_arm_evs
(self)
numpy_ml/bandits/bandits.py:327
↓ 1 callers
Method
_calc_glorot_gain
Values from: https://pytorch.org/docs/stable/nn.html?#torch.nn.init.calculate_gain
numpy_ml/neural_nets/initializers/initializers.py:293
↓ 1 callers
Method
_calc_idf
Compute the (smoothed-) inverse-document frequency for each token in the corpus. For a word token `w`, the IDF is simply
numpy_ml/preprocessing/nlp.py:934
↓ 1 callers
Method
_calc_priority
Compute the "priority" for state-action pair (s, a). The priority P is defined as: P = sum_{s_} p(s_) * abs(r + temporal
numpy_ml/rl_models/agents.py:1642
↓ 1 callers
Method
_calc_skip_padding
(self, X)
numpy_ml/neural_nets/modules/modules.py:755
↓ 1 callers
Method
_calc_smoothed_counts
(self)
numpy_ml/ngram/ngram.py:571
↓ 1 callers
Method
_counter
(self, text)
numpy_ml/preprocessing/nlp.py:515
↓ 1 callers
Method
_dGradInterp
Compute the gradient penalty's contribution to the critic loss and update the parameter gradients accordingly. Parameters
numpy_ml/neural_nets/models/wgan_gp.py:284
↓ 1 callers
Method
_drop_low_freq_tokens
Replace all tokens that occur less than `min_count` with the `<unk>` token.
numpy_ml/preprocessing/nlp.py:865
↓ 1 callers
Method
_drop_low_freq_tokens
Replace all tokens that occur less than `min_count` with the `<unk>` token.
numpy_ml/preprocessing/nlp.py:1298
↓ 1 callers
Method
_encode_dense
(self, examples)
numpy_ml/preprocessing/general.py:348
↓ 1 callers
Method
_encode_document
Perform tokenization and compute token counts for a single document
numpy_ml/preprocessing/nlp.py:769
↓ 1 callers
Method
_encode_key
(self, key)
numpy_ml/utils/data_structures.py:502
↓ 1 callers
Method
_encode_sparse
(self, examples)
numpy_ml/preprocessing/general.py:368
↓ 1 callers
Method
_episode
Execute agent on an episode. Parameters ---------- max_steps : int The maximum number of steps to run th
numpy_ml/rl_models/agents.py:685
↓ 1 callers
Method
_estimate_topic_prob
Compute an approximation of the conditional probability that token ii is assigned to topic jj given all previous topic assignments an
numpy_ml/lda/lda_smoothed.py:137
↓ 1 callers
Method
_evolve_connections
(self)
numpy_ml/neural_nets/layers/layers.py:2570
↓ 1 callers
Method
_fit
(self, X, W, H, verbose)
numpy_ml/factorization/factors.py:141
↓ 1 callers
Method
_fit
(self, X, W, H, verbose)
numpy_ml/factorization/factors.py:354
↓ 1 callers
Method
_fit_count_models
Perform the averaging transform proposed by Church and Gale (1991): estimate the expected count-of-counts by the *density* of
numpy_ml/ngram/ngram.py:644
↓ 1 callers
Method
_fwd
Actual computation of forward pass
numpy_ml/neural_nets/layers/layers.py:305
↓ 1 callers
Method
_fwd
Actual computation of forward pass
numpy_ml/neural_nets/layers/layers.py:1954
↓ 1 callers
Method
_fwd
Actual computation of forward pass
numpy_ml/neural_nets/layers/layers.py:2122
↓ 1 callers
Method
_fwd
Actual computation of forward pass
numpy_ml/neural_nets/layers/layers.py:2486
↓ 1 callers
Method
_generate_codes
(self)
numpy_ml/preprocessing/nlp.py:548
↓ 1 callers
Method
_get_counts
Collect bigram counts for the tokens in vocab
numpy_ml/preprocessing/nlp.py:264
↓ 1 callers
Method
_gibbs_sampler
Collapsed Gibbs sampler for estimating the posterior distribution over topic assignments.
numpy_ml/lda/lda_smoothed.py:153
↓ 1 callers
Method
_grad
Actual computation of gradient wrt. loss weights + input
numpy_ml/neural_nets/losses/losses.py:858
↓ 1 callers
Method
_greedy
A greedy behavior policy. Notes ----- Only used when off-policy is True. Parameters ----------
numpy_ml/rl_models/agents.py:529
↓ 1 callers
Method
_greedy
A greedy behavior policy. Only used when off-policy is true. Parameters ---------- s : int, float, or tuple
numpy_ml/rl_models/agents.py:1119
↓ 1 callers
Method
_greedy
A greedy behavior policy. Parameters ---------- s : int, float, or tuple The state number for the curren
numpy_ml/rl_models/agents.py:1564
↓ 1 callers
Method
_grow
(self, X, Y, cur_depth=0)
numpy_ml/trees/dt.py:122
↓ 1 callers
Method
_impurity_gain
Compute the impurity gain associated with a given split. IG(split) = loss(parent) - weighted_avg[loss(left_child), loss(right_child)
numpy_ml/trees/dt.py:173
↓ 1 callers
Method
_init_conv2
(self)
numpy_ml/neural_nets/modules/modules.py:463
↓ 1 callers
Method
_init_conv_skip
(self, X)
numpy_ml/neural_nets/modules/modules.py:790
↓ 1 callers
Method
_init_factor_matrices
Randomly initialize the factor matrices
numpy_ml/factorization/factors.py:79
↓ 1 callers
Method
_init_factor_matrices
Initialize the factor matrices using vanilla ALS
numpy_ml/factorization/factors.py:227
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/modules/modules.py:183
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/modules/modules.py:445
↓ 1 callers
Method
_init_params
(self, X=None)
numpy_ml/neural_nets/modules/modules.py:728
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/modules/modules.py:1033
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/modules/modules.py:1290
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/wrappers/wrappers.py:82
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/layers/layers.py:194
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/layers/layers.py:669
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/layers/layers.py:781
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/layers/layers.py:895
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/layers/layers.py:1051
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/layers/layers.py:1299
↓ 1 callers
Method
_init_params
(self, X_shape)
numpy_ml/neural_nets/layers/layers.py:1498
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/layers/layers.py:1687
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/layers/layers.py:1872
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/layers/layers.py:2064
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/layers/layers.py:2244
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/layers/layers.py:2421
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/layers/layers.py:2684
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/layers/layers.py:2975
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/layers/layers.py:3213
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/layers/layers.py:3408
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/layers/layers.py:3626
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/layers/layers.py:3857
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/layers/layers.py:4118
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/layers/layers.py:4296
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/models/wgan_gp.py:104
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/models/vae.py:137
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/models/w2v.py:125
↓ 1 callers
Method
_init_params
(self)
numpy_ml/neural_nets/losses/losses.py:621
← previous
next →
201–300 of 1,202, ranked by callers