Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/rushter/MLAlgorithms
/ functions
Functions
368 in github.com/rushter/MLAlgorithms
⨍
Functions
368
◇
Types & classes
63
↓ 21 callers
Method
predict
(self, X=None)
mla/fm.py:88
↓ 19 callers
Method
keys
(self)
mla/neuralnet/parameters.py:83
↓ 18 callers
Method
predict
(self, X)
mla/ensemble/tree.py:202
↓ 14 callers
Method
fit
(self, X, y=None)
mla/pca.py:35
↓ 11 callers
Method
_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 callers
Function
metric
(name)
mla/metrics/tests/test_metrics.py:24
↓ 9 callers
Method
fit
(self, X, y=None)
mla/svm/svm.py:40
↓ 9 callers
Function
mean_squared_error
(actual, predicted)
mla/metrics/metrics.py:50
↓ 8 callers
Function
accuracy
(actual, predicted)
mla/metrics/metrics.py:30
↓ 8 callers
Function
clasifier
(optimizer)
mla/neuralnet/tests/test_optimizers.py:11
↓ 8 callers
Method
step
Increase specific weight by amount of the step parameter.
mla/neuralnet/parameters.py:64
↓ 8 callers
Method
update_grad
Update gradient values.
mla/neuralnet/parameters.py:71
↓ 7 callers
Function
sigmoid
(z)
mla/neuralnet/activations.py:9
↓ 6 callers
Method
clip
(self, alpha, H, L)
mla/svm/svm.py:118
↓ 6 callers
Method
fit
(self, X, y=None)
mla/neuralnet/nnet.py:80
↓ 6 callers
Function
one_hot
(y)
mla/utils/main.py:5
↓ 5 callers
Function
get_filename
(name)
mla/datasets/base.py:7
↓ 5 callers
Method
transform
(self, X)
mla/pca.py:57
↓ 4 callers
Function
_glorot_fan
(shape)
mla/neuralnet/initializations.py:34
↓ 4 callers
Function
batch_iterator
Splits X into equal sized chunks.
mla/utils/main.py:10
↓ 4 callers
Function
check_data
(a, b)
mla/metrics/base.py:5
↓ 4 callers
Function
convoltuion_shape
Calculate output shape for convolution layer.
mla/neuralnet/layers/convnet.py:210
↓ 3 callers
Method
_add_intercept
(X)
mla/linear_models.py:79
↓ 3 callers
Method
clip
(self, p)
mla/neuralnet/constraints.py:25
↓ 3 callers
Function
euclidean_distance
(a, b)
mla/metrics/distance.py:7
↓ 3 callers
Method
gain
Calculate gain for split search.
mla/ensemble/gbm.py:44
↓ 3 callers
Function
get_activation
Return activation function by name
mla/neuralnet/activations.py:59
↓ 3 callers
Function
get_initializer
Returns initialization function by the name.
mla/neuralnet/initializations.py:70
↓ 3 callers
Method
grad
First order gradient.
mla/ensemble/gbm.py:26
↓ 3 callers
Method
init_grad
Init gradient arrays corresponding to each weight array.
mla/neuralnet/parameters.py:58
↓ 3 callers
Method
plot
(self, ax=None, holdon=False)
mla/kmeans.py:137
↓ 3 callers
Method
setup_weights
(self, W_shape, b_shape=None)
mla/neuralnet/parameters.py:49
↓ 2 callers
Method
__init__
Base class for RandomForest. Parameters ---------- n_estimators : int The number of decision tree. max_fe
mla/ensemble/random_forest.py:10
↓ 2 callers
Method
_add_penalty
Apply regularization to the loss.
mla/linear_models.py:52
↓ 2 callers
Method
_backward_pass
(self, delta)
mla/neuralnet/layers/normalization.py:97
↓ 2 callers
Method
_cost
(self, X, y, theta)
mla/linear_models.py:60
↓ 2 callers
Method
_error
Error for single example.
mla/svm/svm.py:125
↓ 2 callers
Method
_forward_pass
(self, X)
mla/neuralnet/layers/normalization.py:27
↓ 2 callers
Method
_get_likelihood
(self, data)
mla/gaussian_mixture.py:126
↓ 2 callers
Method
_get_weighted_likelihood
(self, likelihood)
mla/gaussian_mixture.py:135
↓ 2 callers
Method
_predict
(self, X=None)
mla/fm.py:67
↓ 2 callers
Method
_predict
(self, X=None)
mla/neuralnet/nnet.py:110
↓ 2 callers
Method
_predict_row
(self, X)
mla/svm/svm.py:114
↓ 2 callers
Method
_sample
(self, X)
mla/rbm.py:97
↓ 2 callers
Method
_setup_layers
Initialize model's layers.
mla/neuralnet/nnet.py:58
↓ 2 callers
Method
backward_pass
(self, delta)
mla/neuralnet/layers/basic.py:19
↓ 2 callers
Function
column_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 callers
Function
f_entropy
(p)
mla/ensemble/base.py:6
↓ 2 callers
Method
fit
(self, X, y=None)
mla/fm.py:40
↓ 2 callers
Method
fit
Perform Expectation–Maximization (EM) until converged.
mla/gaussian_mixture.py:52
↓ 2 callers
Method
fit
(self, X, y=None)
mla/naive_bayes.py:15
↓ 2 callers
Method
fit
(self, X, y=None)
mla/ensemble/gbm.py:95
↓ 2 callers
Method
fit
(self, X, y=None)
mla/ensemble/gbm.py:148
↓ 2 callers
Method
forward_pass
(self, x)
mla/neuralnet/layers/basic.py:16
↓ 2 callers
Method
fprop
Forward propagation.
mla/neuralnet/nnet.py:104
↓ 2 callers
Function
get_metric
Return metric function by name
mla/metrics/metrics.py:85
↓ 2 callers
Method
hess
Second order gradient.
mla/ensemble/gbm.py:30
↓ 2 callers
Function
image_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 callers
Function
l2_distance
(X)
mla/metrics/distance.py:15
↓ 2 callers
Function
load
(dataset="training", digits=np.arange(10))
mla/datasets/base.py:12
↓ 2 callers
Function
normal
(shape, scale=0.5)
mla/neuralnet/initializations.py:10
↓ 2 callers
Method
predict_row
Predict single row.
mla/ensemble/tree.py:193
↓ 2 callers
Method
reset
(self)
mla/neuralnet/nnet.py:180
↓ 2 callers
Method
setup
(self, network)
mla/neuralnet/optimizers.py:95
↓ 2 callers
Method
sigmoid
(x)
mla/linear_models.py:133
↓ 2 callers
Function
split_dataset
(X, target, column, value, return_X=True)
mla/ensemble/base.py:53
↓ 2 callers
Method
train
Build a decision tree from training set. Parameters ---------- X : array-like Feature dataset. target :
mla/ensemble/tree.py:126
↓ 2 callers
Function
uniform
(shape, scale=0.5)
mla/neuralnet/initializations.py:14
↓ 2 callers
Method
update
Performs an update of parameters.
mla/neuralnet/optimizers.py:35
↓ 2 callers
Method
update
(self, network)
mla/neuralnet/optimizers.py:80
↓ 1 callers
Function
KMeans_and_GMM
(K)
examples/gaussian_mixture.py:21
↓ 1 callers
Method
_E_step
Expectation(E-step) for Gaussian Mixture.
mla/gaussian_mixture.py:89
↓ 1 callers
Method
_M_step
Maximization (M-step) for Gaussian Mixture.
mla/gaussian_mixture.py:98
↓ 1 callers
Method
_assign
(self, centroids)
mla/kmeans.py:92
↓ 1 callers
Method
_binary_search
Performs binary search to find suitable precision.
mla/tsne.py:101
↓ 1 callers
Method
_calculate_leaf_value
Find optimal value for leaf.
mla/ensemble/tree.py:176
↓ 1 callers
Method
_choose_next_center
(self)
mla/kmeans.py:123
↓ 1 callers
Method
_closest
Find the closest centroid for a point.
mla/kmeans.py:102
↓ 1 callers
Method
_decompose
(self, X)
mla/pca.py:39
↓ 1 callers
Method
_dist_from_centers
Calculate distance from centers.
mla/kmeans.py:117
↓ 1 callers
Method
_factor_step
(self, loss)
mla/fm.py:61
↓ 1 callers
Method
_find_best_split
Find best feature and value for a split. Greedy algorithm.
mla/ensemble/tree.py:45
↓ 1 callers
Method
_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 callers
Method
_find_bprop_entry
Find entry layer for back propagation.
mla/neuralnet/nnet.py:73
↓ 1 callers
Method
_find_splits
Find all possible split values.
mla/ensemble/tree.py:32
↓ 1 callers
Method
_get_centroid
Get values by indices and take the mean.
mla/kmeans.py:113
↓ 1 callers
Method
_get_pairwise_affinities
Computes pairwise affinities.
mla/tsne.py:85
↓ 1 callers
Method
_get_predictions
(self)
mla/kmeans.py:84
↓ 1 callers
Method
_gradient_descent
(self)
mla/linear_models.py:91
↓ 1 callers
Method
_init_weights
(self)
mla/rbm.py:45
↓ 1 callers
Method
_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 callers
Method
_initialize_centroids
Set the initial centroids.
mla/kmeans.py:52
↓ 1 callers
Method
_is_converged
Check if the distance between old and new centroids is zero.
mla/kmeans.py:130
↓ 1 callers
Method
_is_converged
Check if the difference of the latest two likelihood is less than the tolerance.
mla/gaussian_mixture.py:109
↓ 1 callers
Method
_pdf
Calculate Gaussian PDF for each feature.
mla/naive_bayes.py:53
↓ 1 callers
Method
_predict
(self, X=None)
mla/base/base.py:62
↓ 1 callers
Method
_predict
(self, X=None)
mla/ensemble/gbm.py:130
↓ 1 callers
Method
_predict_x
Predict the label of a single instance x.
mla/knn.py:36
↓ 1 callers
Method
_q_distribution
Computes Student t-distribution.
mla/tsne.py:131
↓ 1 callers
Method
_train
(self)
mla/linear_models.py:83
next →
1–100 of 368, ranked by callers