MCPcopy Create free account

hub / github.com/rushter/MLAlgorithms / functions

Functions368 in github.com/rushter/MLAlgorithms

↓ 21 callersMethodpredict
(self, X=None)
mla/fm.py:88
↓ 19 callersMethodkeys
(self)
mla/neuralnet/parameters.py:83
↓ 18 callersMethodpredict
(self, X)
mla/ensemble/tree.py:202
↓ 14 callersMethodfit
(self, X, y=None)
mla/pca.py:35
↓ 11 callersMethod_setup_input
Ensure inputs to an estimator are in the expected format. Ensures X and y are stored as numpy ndarrays by converting from an array-li
mla/base/base.py:9
↓ 10 callersFunctionmetric
(name)
mla/metrics/tests/test_metrics.py:24
↓ 9 callersMethodfit
(self, X, y=None)
mla/svm/svm.py:40
↓ 9 callersFunctionmean_squared_error
(actual, predicted)
mla/metrics/metrics.py:50
↓ 8 callersFunctionaccuracy
(actual, predicted)
mla/metrics/metrics.py:30
↓ 8 callersFunctionclasifier
(optimizer)
mla/neuralnet/tests/test_optimizers.py:11
↓ 8 callersMethodstep
Increase specific weight by amount of the step parameter.
mla/neuralnet/parameters.py:64
↓ 8 callersMethodupdate_grad
Update gradient values.
mla/neuralnet/parameters.py:71
↓ 7 callersFunctionsigmoid
(z)
mla/neuralnet/activations.py:9
↓ 6 callersMethodclip
(self, alpha, H, L)
mla/svm/svm.py:118
↓ 6 callersMethodfit
(self, X, y=None)
mla/neuralnet/nnet.py:80
↓ 6 callersFunctionone_hot
(y)
mla/utils/main.py:5
↓ 5 callersFunctionget_filename
(name)
mla/datasets/base.py:7
↓ 5 callersMethodtransform
(self, X)
mla/pca.py:57
↓ 4 callersFunction_glorot_fan
(shape)
mla/neuralnet/initializations.py:34
↓ 4 callersFunctionbatch_iterator
Splits X into equal sized chunks.
mla/utils/main.py:10
↓ 4 callersFunctioncheck_data
(a, b)
mla/metrics/base.py:5
↓ 4 callersFunctionconvoltuion_shape
Calculate output shape for convolution layer.
mla/neuralnet/layers/convnet.py:210
↓ 3 callersMethod_add_intercept
(X)
mla/linear_models.py:79
↓ 3 callersMethodclip
(self, p)
mla/neuralnet/constraints.py:25
↓ 3 callersFunctioneuclidean_distance
(a, b)
mla/metrics/distance.py:7
↓ 3 callersMethodgain
Calculate gain for split search.
mla/ensemble/gbm.py:44
↓ 3 callersFunctionget_activation
Return activation function by name
mla/neuralnet/activations.py:59
↓ 3 callersFunctionget_initializer
Returns initialization function by the name.
mla/neuralnet/initializations.py:70
↓ 3 callersMethodgrad
First order gradient.
mla/ensemble/gbm.py:26
↓ 3 callersMethodinit_grad
Init gradient arrays corresponding to each weight array.
mla/neuralnet/parameters.py:58
↓ 3 callersMethodplot
(self, ax=None, holdon=False)
mla/kmeans.py:137
↓ 3 callersMethodsetup_weights
(self, W_shape, b_shape=None)
mla/neuralnet/parameters.py:49
↓ 2 callersMethod__init__
Base class for RandomForest. Parameters ---------- n_estimators : int The number of decision tree. max_fe
mla/ensemble/random_forest.py:10
↓ 2 callersMethod_add_penalty
Apply regularization to the loss.
mla/linear_models.py:52
↓ 2 callersMethod_backward_pass
(self, delta)
mla/neuralnet/layers/normalization.py:97
↓ 2 callersMethod_cost
(self, X, y, theta)
mla/linear_models.py:60
↓ 2 callersMethod_error
Error for single example.
mla/svm/svm.py:125
↓ 2 callersMethod_forward_pass
(self, X)
mla/neuralnet/layers/normalization.py:27
↓ 2 callersMethod_get_likelihood
(self, data)
mla/gaussian_mixture.py:126
↓ 2 callersMethod_get_weighted_likelihood
(self, likelihood)
mla/gaussian_mixture.py:135
↓ 2 callersMethod_predict
(self, X=None)
mla/fm.py:67
↓ 2 callersMethod_predict
(self, X=None)
mla/neuralnet/nnet.py:110
↓ 2 callersMethod_predict_row
(self, X)
mla/svm/svm.py:114
↓ 2 callersMethod_sample
(self, X)
mla/rbm.py:97
↓ 2 callersMethod_setup_layers
Initialize model's layers.
mla/neuralnet/nnet.py:58
↓ 2 callersMethodbackward_pass
(self, delta)
mla/neuralnet/layers/basic.py:19
↓ 2 callersFunctioncolumn_to_image
Rearrange columns into image blocks. Parameters ---------- columns images_shape : tuple(n_images, n_channels, height, width) filt
mla/neuralnet/layers/convnet.py:175
↓ 2 callersFunctionf_entropy
(p)
mla/ensemble/base.py:6
↓ 2 callersMethodfit
(self, X, y=None)
mla/fm.py:40
↓ 2 callersMethodfit
Perform Expectation–Maximization (EM) until converged.
mla/gaussian_mixture.py:52
↓ 2 callersMethodfit
(self, X, y=None)
mla/naive_bayes.py:15
↓ 2 callersMethodfit
(self, X, y=None)
mla/ensemble/gbm.py:95
↓ 2 callersMethodfit
(self, X, y=None)
mla/ensemble/gbm.py:148
↓ 2 callersMethodforward_pass
(self, x)
mla/neuralnet/layers/basic.py:16
↓ 2 callersMethodfprop
Forward propagation.
mla/neuralnet/nnet.py:104
↓ 2 callersFunctionget_metric
Return metric function by name
mla/metrics/metrics.py:85
↓ 2 callersMethodhess
Second order gradient.
mla/ensemble/gbm.py:30
↓ 2 callersFunctionimage_to_column
Rearrange image blocks into columns. Parameters ---------- filter_shape : tuple(height, width) images : np.array, shape (n_images, n
mla/neuralnet/layers/convnet.py:143
↓ 2 callersFunctionl2_distance
(X)
mla/metrics/distance.py:15
↓ 2 callersFunctionload
(dataset="training", digits=np.arange(10))
mla/datasets/base.py:12
↓ 2 callersFunctionnormal
(shape, scale=0.5)
mla/neuralnet/initializations.py:10
↓ 2 callersMethodpredict_row
Predict single row.
mla/ensemble/tree.py:193
↓ 2 callersMethodreset
(self)
mla/neuralnet/nnet.py:180
↓ 2 callersMethodsetup
(self, network)
mla/neuralnet/optimizers.py:95
↓ 2 callersMethodsigmoid
(x)
mla/linear_models.py:133
↓ 2 callersFunctionsplit_dataset
(X, target, column, value, return_X=True)
mla/ensemble/base.py:53
↓ 2 callersMethodtrain
Build a decision tree from training set. Parameters ---------- X : array-like Feature dataset. target :
mla/ensemble/tree.py:126
↓ 2 callersFunctionuniform
(shape, scale=0.5)
mla/neuralnet/initializations.py:14
↓ 2 callersMethodupdate
Performs an update of parameters.
mla/neuralnet/optimizers.py:35
↓ 2 callersMethodupdate
(self, network)
mla/neuralnet/optimizers.py:80
↓ 1 callersFunctionKMeans_and_GMM
(K)
examples/gaussian_mixture.py:21
↓ 1 callersMethod_E_step
Expectation(E-step) for Gaussian Mixture.
mla/gaussian_mixture.py:89
↓ 1 callersMethod_M_step
Maximization (M-step) for Gaussian Mixture.
mla/gaussian_mixture.py:98
↓ 1 callersMethod_assign
(self, centroids)
mla/kmeans.py:92
↓ 1 callersMethod_binary_search
Performs binary search to find suitable precision.
mla/tsne.py:101
↓ 1 callersMethod_calculate_leaf_value
Find optimal value for leaf.
mla/ensemble/tree.py:176
↓ 1 callersMethod_choose_next_center
(self)
mla/kmeans.py:123
↓ 1 callersMethod_closest
Find the closest centroid for a point.
mla/kmeans.py:102
↓ 1 callersMethod_decompose
(self, X)
mla/pca.py:39
↓ 1 callersMethod_dist_from_centers
Calculate distance from centers.
mla/kmeans.py:117
↓ 1 callersMethod_factor_step
(self, loss)
mla/fm.py:61
↓ 1 callersMethod_find_best_split
Find best feature and value for a split. Greedy algorithm.
mla/ensemble/tree.py:45
↓ 1 callersMethod_find_bounds
Find L and H such that L <= alpha <= H. Also, alpha must satisfy the constraint 0 <= αlpha <= C.
mla/svm/svm.py:129
↓ 1 callersMethod_find_bprop_entry
Find entry layer for back propagation.
mla/neuralnet/nnet.py:73
↓ 1 callersMethod_find_splits
Find all possible split values.
mla/ensemble/tree.py:32
↓ 1 callersMethod_get_centroid
Get values by indices and take the mean.
mla/kmeans.py:113
↓ 1 callersMethod_get_pairwise_affinities
Computes pairwise affinities.
mla/tsne.py:85
↓ 1 callersMethod_get_predictions
(self)
mla/kmeans.py:84
↓ 1 callersMethod_gradient_descent
(self)
mla/linear_models.py:91
↓ 1 callersMethod_init_weights
(self)
mla/rbm.py:45
↓ 1 callersMethod_initialize
Set the initial weights, means and covs (with full covariance matrix). weights: the prior of the clusters (what percentage of data does a clu
mla/gaussian_mixture.py:62
↓ 1 callersMethod_initialize_centroids
Set the initial centroids.
mla/kmeans.py:52
↓ 1 callersMethod_is_converged
Check if the distance between old and new centroids is zero.
mla/kmeans.py:130
↓ 1 callersMethod_is_converged
Check if the difference of the latest two likelihood is less than the tolerance.
mla/gaussian_mixture.py:109
↓ 1 callersMethod_pdf
Calculate Gaussian PDF for each feature.
mla/naive_bayes.py:53
↓ 1 callersMethod_predict
(self, X=None)
mla/base/base.py:62
↓ 1 callersMethod_predict
(self, X=None)
mla/ensemble/gbm.py:130
↓ 1 callersMethod_predict_x
Predict the label of a single instance x.
mla/knn.py:36
↓ 1 callersMethod_q_distribution
Computes Student t-distribution.
mla/tsne.py:131
↓ 1 callersMethod_train
(self)
mla/linear_models.py:83
next →1–100 of 368, ranked by callers