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
nn_interpolate_1D
Estimates of the signal values at `X[t]` using a nearest neighbor interpolation strategy. Parameters ---------- X : :py:class:`n
numpy_ml/preprocessing/dsp.py:84
Function
nn_interpolate_2D
Estimates of the pixel values at the coordinates (x, y) in `X` using a nearest neighbor interpolation strategy. Notes ----- Assu
numpy_ml/preprocessing/dsp.py:53
Method
oracle_payoff
Return the expected reward for an optimal agent. Parameters ---------- context : :py:class:`ndarray <numpy.ndarray>`
numpy_ml/bandits/bandits.py:118
Method
oracle_payoff
Return the expected reward for an optimal agent. Parameters ---------- context : :py:class:`ndarray <numpy.ndarray>`
numpy_ml/bandits/bandits.py:175
Method
oracle_payoff
Return the expected reward for an optimal agent. Parameters ---------- context : :py:class:`ndarray <numpy.ndarray>`
numpy_ml/bandits/bandits.py:246
Method
oracle_payoff
Return the expected reward for an optimal agent. Parameters ---------- context : :py:class:`ndarray <numpy.ndarray>`
numpy_ml/bandits/bandits.py:309
Method
oracle_payoff
Return the expected reward for an optimal agent. Parameters ---------- context : :py:class:`ndarray <numpy.ndarray>`
numpy_ml/bandits/bandits.py:395
Method
oracle_payoff
Return the expected reward for an optimal agent. Parameters ---------- context : :py:class:`ndarray <numpy.ndarray>`
numpy_ml/bandits/bandits.py:503
Method
parameters
A dictionary of the module parameters.
numpy_ml/neural_nets/modules/modules.py:216
Method
parameters
A dictionary of the module parameters.
numpy_ml/neural_nets/modules/modules.py:475
Method
parameters
A dictionary of the module parameters.
numpy_ml/neural_nets/modules/modules.py:803
Method
parameters
A dictionary of the module parameters.
numpy_ml/neural_nets/modules/modules.py:1164
Method
parameters
A dictionary of the module parameters.
numpy_ml/neural_nets/modules/modules.py:1397
Method
parameters
A dictionary of the base layer parameters
numpy_ml/neural_nets/wrappers/wrappers.py:39
Method
parameters
Return a dictionary of the current layer parameters
numpy_ml/neural_nets/layers/layers.py:4209
Method
parameters
Return a dictionary of the current layer parameters
numpy_ml/neural_nets/layers/layers.py:4388
Method
parameters
(self)
numpy_ml/neural_nets/models/wgan_gp.py:170
Method
parameters
(self)
numpy_ml/neural_nets/models/vae.py:211
Method
parameters
Model parameters
numpy_ml/neural_nets/models/w2v.py:147
Method
parameters
A dictionary of the current bandit parameters
numpy_ml/bandits/bandits.py:486
Method
parameters
A dictionary containing the current policy parameters
numpy_ml/bandits/policies.py:31
Method
parameters
A dictionary containing the current policy parameters
numpy_ml/bandits/policies.py:144
Method
parameters
A dictionary containing the current policy parameters
numpy_ml/bandits/policies.py:233
Method
parameters
A dictionary containing the current policy parameters
numpy_ml/bandits/policies.py:335
Method
parameters
A dictionary containing the current policy parameters
numpy_ml/bandits/policies.py:439
Method
parameters
(self)
numpy_ml/preprocessing/general.py:177
Method
parameters
Return a dictionary of the current model parameters
numpy_ml/factorization/factors.py:64
Method
parameters
Return a dictionary of the current model parameters
numpy_ml/factorization/factors.py:213
Method
perplexity
r""" Calculate the model perplexity on a sequence of words. Notes ----- Perplexity, `PP`, is defined as .. m
numpy_ml/ngram/ngram.py:178
Function
plot
()
numpy_ml/plots/trees_plots.py:20
Function
plot
()
numpy_ml/plots/gmm_plots.py:72
Function
plot_bayes
()
numpy_ml/plots/lm_plots.py:112
Function
plot_comparison
Use the BanditTrainer to compare several policies on the same bandit problem
numpy_ml/plots/bandit_plots.py:151
Function
plot_count_models
(GT, N)
numpy_ml/plots/ngram_plots.py:15
Function
plot_epsilon_greedy_multinomial_payoff
Evaluate an epsilon-greedy policy on a random multinomial bandit problem
numpy_ml/plots/bandit_plots.py:46
Function
plot_gp
()
numpy_ml/plots/nonparametric_plots.py:166
Function
plot_gp_dist
()
numpy_ml/plots/nonparametric_plots.py:196
Function
plot_gt_freqs
Draws a scatterplot of the empirical frequencies of the counted species versus their Simple Good Turing smoothed values, in rank order. Depen
numpy_ml/plots/ngram_plots.py:80
Function
plot_knn
()
numpy_ml/plots/nonparametric_plots.py:104
Function
plot_lin_ucb
Plot the linUCB policy on a contextual linear bandit problem
numpy_ml/plots/bandit_plots.py:99
Function
plot_logistic
()
numpy_ml/plots/lm_plots.py:69
Function
plot_regression
()
numpy_ml/plots/lm_plots.py:219
Function
plot_regression
()
numpy_ml/plots/nonparametric_plots.py:35
Function
plot_thompson_sampling_beta_binomial_payoff
Evaluate the ThompsonSamplingBetaBinomial policy on a random Bernoulli multi-armed bandit.
numpy_ml/plots/bandit_plots.py:82
Function
plot_ucb1_gaussian_shortest_path
Plot the UCB1 policy on a graph shortest path problem each edge weight drawn from an independent univariate Gaussian
numpy_ml/plots/bandit_plots.py:114
Function
plot_ucb1_multinomial_payoff
Evaluate the UCB1 policy on a multinomial bandit environment
numpy_ml/plots/bandit_plots.py:65
Function
plot_unsmoothed
()
numpy_ml/plots/lda_plots.py:62
Method
predict
(self, X)
numpy_ml/trees/losses.py:12
Method
predict
(self, X)
numpy_ml/trees/losses.py:22
Method
predict_class_probs
Use the trained decision tree to return the class probabilities for the examples in `X`. Parameters ----------
numpy_ml/trees/dt.py:104
Function
random_binary_tensor
Create a random binary tensor of shape `shape`. `sparsity` is a value between 0 and 1 controlling the ratio of 0s to 1s in the output tensor.
numpy_ml/utils/testing.py:91
Function
random_binary_tensor
(shape, sparsity=0.5)
numpy_ml/plots/lm_plots.py:33
Method
reconstruct
Reconstruct an input `X` by running the trained Gibbs sampler for `n_steps`-worth of CD-`k`. Parameters ----------
numpy_ml/neural_nets/layers/layers.py:587
Method
reset
Reset the policy parameters and counters to their initial states.
numpy_ml/bandits/policies.py:63
Method
reset_running_stats
Reset the running mean and variance estimates to 0 and 1.
numpy_ml/neural_nets/layers/layers.py:1089
Method
reset_running_stats
Reset the running mean and variance estimates to 0 and 1.
numpy_ml/neural_nets/layers/layers.py:1336
Method
reset_step
Reset the step counter to zero
numpy_ml/neural_nets/optimizers/optimizers.py:29
Method
reverse
Reverse the direction of all edges in the graph
numpy_ml/utils/graphs.py:196
Method
run_episode
Run the agent on a single episode. Parameters ---------- max_steps : int The maximum number of steps to
numpy_ml/rl_models/agents.py:238
Method
run_episode
Run the agent on a single episode. Parameters ---------- max_steps : int The maximum number of steps to
numpy_ml/rl_models/agents.py:661
Method
run_episode
Run the agent on a single episode without updating the priority queue or performing backups. Parameters ----------
numpy_ml/rl_models/agents.py:945
Method
run_episode
Run the agent on a single episode without performing `Q`-function backups. Parameters ---------- max_steps :
numpy_ml/rl_models/agents.py:1752
Method
set_params
Set the base layer parameters from a dictionary of values. Parameters ---------- summary_dict : dict A d
numpy_ml/neural_nets/wrappers/wrappers.py:123
Method
set_params
Set the layer parameters from a dictionary of values. Parameters ---------- summary_dict : dict A dictio
numpy_ml/neural_nets/layers/layers.py:88
Method
set_params
Set the layer parameters from a dictionary of values. Parameters ---------- summary_dict : dict A dictio
numpy_ml/neural_nets/layers/layers.py:4403
Method
set_params
Set the scheduler hyperparameters from a dictionary.
numpy_ml/neural_nets/schedulers/schedulers.py:31
Method
set_params
Set the parameters of the optimizer object from a dictionary
numpy_ml/neural_nets/optimizers/optimizers.py:37
Method
shape
The number of unique word tokens in the vocabulary
numpy_ml/preprocessing/nlp.py:1093
Method
summary
(self)
numpy_ml/neural_nets/modules/modules.py:111
Method
summary
Return a dict of the layer parameters, hyperparameters, and ID.
numpy_ml/neural_nets/wrappers/wrappers.py:142
Method
summary
Return a dict of the layer parameters, hyperparameters, and ID.
numpy_ml/neural_nets/layers/layers.py:130
Method
summary
Return the dictionary of model parameters, hyperparameters, and ID
numpy_ml/utils/kernels.py:26
Function
test_AddLayer
(N=15)
numpy_ml/tests/test_nn.py:955
Function
test_BatchNorm1D
(N=15)
numpy_ml/tests/test_nn.py:748
Function
test_BatchNorm2D
(N=15)
numpy_ml/tests/test_nn.py:1011
Function
test_BidirectionalLSTM
(N=15)
numpy_ml/tests/test_nn.py:1990
Function
test_Conv1D
(N=15)
numpy_ml/tests/test_nn.py:1267
Function
test_Conv2D
(N=15)
numpy_ml/tests/test_nn.py:1130
Function
test_DPAttention
(N=15)
numpy_ml/tests/test_nn.py:1216
Function
test_DecisionTree
(N=1)
numpy_ml/tests/test_trees.py:70
Function
test_Deconv2D
(N=15)
numpy_ml/tests/test_nn.py:1348
Function
test_Embedding
(N=15)
numpy_ml/tests/test_nn.py:699
Function
test_FullyConnected
(N=15)
numpy_ml/tests/test_nn.py:640
Function
test_GaussianNB
(N=10)
numpy_ml/tests/test_naive_bayes.py:12
Function
test_HMM
()
numpy_ml/plots/hmm_plots.py:130
Function
test_LSTMCell
(N=15)
numpy_ml/tests/test_nn.py:1482
Function
test_LayerNorm1D
(N=15)
numpy_ml/tests/test_nn.py:800
Function
test_LayerNorm2D
(N=15)
numpy_ml/tests/test_nn.py:846
Function
test_MultiHeadedAttentionModule
(N=15)
numpy_ml/tests/test_nn.py:1606
Function
test_MultiplyLayer
(N=15)
numpy_ml/tests/test_nn.py:899
Function
test_NCELoss
(N=1)
numpy_ml/tests/test_nn.py:241
Function
test_Pool2D
(N=15)
numpy_ml/tests/test_nn.py:1430
Function
test_RNNCell
(N=15)
numpy_ml/tests/test_nn.py:1067
Function
test_RandomForest
(N=1)
numpy_ml/tests/test_trees.py:154
Function
test_SkipConnectionConvModule
(N=15)
numpy_ml/tests/test_nn.py:1822
Function
test_SkipConnectionIdentityModule
(N=15)
numpy_ml/tests/test_nn.py:1692
Function
test_VAE_loss
(N=15)
numpy_ml/tests/test_nn.py:147
Function
test_WGAN_GP
(N=1)
numpy_ml/tests/test_nn.py:2326
Function
test_WGAN_GP_loss
(N=5)
numpy_ml/tests/test_nn.py:189
Function
test_WaveNetModule
(N=10)
numpy_ml/tests/test_nn.py:2072
← previous
next →
1,001–1,100 of 1,202, ranked by callers