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
↓ 1 callers
Method
_train
(self)
mla/fm.py:52
↓ 1 callers
Method
_train
Use CD-1 training procedure, basically an exact inference for `positive_associations`, followed by a "non burn-in" block Gibbs Sampling for th
mla/rbm.py:54
↓ 1 callers
Method
_train
(self)
mla/ensemble/random_forest.py:47
↓ 1 callers
Method
_train
( self, X, target, max_features=None, min_samples_split=10, ma
mla/ensemble/tree.py:70
↓ 1 callers
Method
_train
(self)
mla/ensemble/gbm.py:100
↓ 1 callers
Method
_train
(self)
mla/svm/svm.py:49
↓ 1 callers
Function
absolute_error
(actual, predicted)
mla/metrics/metrics.py:20
↓ 1 callers
Function
addition_dataset
Generate binary addition dataset. http://devankuleindiren.com/Projects/rnn_arithmetic.php
examples/nnet_rnn_binary_add.py:20
↓ 1 callers
Function
addition_problem
(ReccurentLayer)
examples/nnet_rnn_binary_add.py:56
↓ 1 callers
Method
aggregate
(self, neighbors_targets)
mla/knn.py:28
↓ 1 callers
Method
approximate
Approximate leaf value.
mla/ensemble/gbm.py:34
↓ 1 callers
Function
classification
()
examples/nearest_neighbors.py:34
↓ 1 callers
Function
classification
()
examples/linear_models.py:38
↓ 1 callers
Function
classification
()
examples/nnet_mlp.py:23
↓ 1 callers
Function
classification
()
examples/random_forest.py:19
↓ 1 callers
Function
classification
()
examples/gbm.py:18
↓ 1 callers
Function
classification
()
examples/svm.py:16
↓ 1 callers
Function
classification
()
examples/naive_bayes.py:8
↓ 1 callers
Function
classification_error
(actual, predicted)
mla/metrics/metrics.py:25
↓ 1 callers
Method
error
Calculate an error for given examples.
mla/neuralnet/nnet.py:134
↓ 1 callers
Method
fit
(self, X, y=None)
mla/ensemble/gbm.py:142
↓ 1 callers
Method
fit_transform
(self, X, y=None)
mla/tsne.py:43
↓ 1 callers
Function
get_loss
Returns loss function by the name.
mla/neuralnet/loss.py:6
↓ 1 callers
Function
get_split_mask
(X, column, value)
mla/ensemble/base.py:41
↓ 1 callers
Method
grad
(self, weights)
mla/neuralnet/regularizers.py:14
↓ 1 callers
Method
init_cost
(self)
mla/linear_models.py:49
↓ 1 callers
Method
init_environment
(self, name="CartPole-v0", monitor=False)
mla/rl/dqn.py:55
↓ 1 callers
Method
init_model
(self, model)
mla/rl/dqn.py:68
↓ 1 callers
Function
kmeans_example
(plot=False)
examples/kmeans.py:7
↓ 1 callers
Function
load_mnist
()
mla/datasets/base.py:11
↓ 1 callers
Function
load_nietzsche
()
mla/datasets/base.py:58
↓ 1 callers
Function
make_clusters
(skew=True, *arg, **kwargs)
examples/gaussian_mixture.py:12
↓ 1 callers
Function
mean_squared_log_error
(actual, predicted)
mla/metrics/metrics.py:46
↓ 1 callers
Function
moving_average
(a, n=25)
examples/rbm.py:13
↓ 1 callers
Method
optimize
(self, network)
mla/neuralnet/optimizers.py:18
↓ 1 callers
Method
play
(self, episodes)
mla/rl/dqn.py:145
↓ 1 callers
Method
plot
Plot contour for 2D data.
mla/gaussian_mixture.py:138
↓ 1 callers
Function
pooling_shape
Calculate output shape for pooling layer.
mla/neuralnet/layers/convnet.py:221
↓ 1 callers
Method
predict
(self, X=None)
mla/ensemble/gbm.py:137
↓ 1 callers
Function
print_curve
(rbm)
examples/rbm.py:10
↓ 1 callers
Method
random_index
(self, z)
mla/svm/svm.py:141
↓ 1 callers
Function
regression
()
examples/nearest_neighbors.py:13
↓ 1 callers
Function
regression
()
examples/linear_models.py:17
↓ 1 callers
Function
regression
()
examples/nnet_mlp.py:59
↓ 1 callers
Function
sample
(preds, temperature=1.0)
examples/nnet_rnn_text_generation.py:22
↓ 1 callers
Method
setup
Allocates initial weights.
mla/neuralnet/layers/basic.py:12
↓ 1 callers
Method
shape
Returns shape of the current layer.
mla/neuralnet/layers/basic.py:22
↓ 1 callers
Method
shape
(self, x_shape)
mla/neuralnet/layers/convnet.py:71
↓ 1 callers
Method
shuffle_dataset
Shuffle rows in the dataset.
mla/neuralnet/nnet.py:162
↓ 1 callers
Function
softmax
(z)
mla/neuralnet/activations.py:13
↓ 1 callers
Function
softplus
Smooth relu.
mla/neuralnet/activations.py:23
↓ 1 callers
Function
split
(X, y, value)
mla/ensemble/base.py:47
↓ 1 callers
Function
squared_error
(actual, predicted)
mla/metrics/metrics.py:38
↓ 1 callers
Function
squared_log_error
(actual, predicted)
mla/metrics/metrics.py:42
↓ 1 callers
Method
train
(self, render=False)
mla/rl/dqn.py:71
↓ 1 callers
Method
train_epoch
(self, network)
mla/neuralnet/optimizers.py:39
↓ 1 callers
Method
transform
Transform predictions values.
mla/ensemble/gbm.py:40
↓ 1 callers
Function
validate_input
(function)
mla/metrics/base.py:20
↓ 1 callers
Method
weight
(self, X)
mla/neuralnet/layers/basic.py:75
↓ 1 callers
Function
xgb_criterion
(y, left, right, loss)
mla/ensemble/base.py:33
Method
__call__
(self, weights)
mla/neuralnet/regularizers.py:17
Method
__call__
(self, x, y)
mla/svm/kernerls.py:7
Method
__call__
(self, x, y)
mla/svm/kernerls.py:18
Method
__call__
(self, x, y)
mla/svm/kernerls.py:29
Method
__getitem__
(self, item)
mla/neuralnet/parameters.py:91
Method
__init__
A t-Distributed Stochastic Neighbor Embedding implementation. Parameters ---------- max_iter : int, default 200 perpl
mla/tsne.py:22
Method
__init__
Principal component analysis (PCA) implementation. Transforms a dataset of possibly correlated values into n linearly uncorrelated co
mla/pca.py:15
Method
__init__
Basic class for implementing continuous regression estimators which are trained with gradient descent optimization on their particular loss
mla/linear_models.py:15
Method
__init__
Simplified factorization machines implementation using SGD optimizer.
mla/fm.py:19
Method
__init__
Bernoulli Restricted Boltzmann Machine (RBM) Parameters ---------- n_hidden : int, default 128 The number of hid
mla/rbm.py:22
Method
__init__
(self, K=5, max_iters=100, init="random")
mla/kmeans.py:45
Method
__init__
(self, K=4, init="random", max_iters=500, tolerance=1e-3)
mla/gaussian_mixture.py:44
Method
__init__
Base class for Nearest neighbors classifier and regressor. Parameters ---------- k : int, default 5 The number of
mla/knn.py:12
Method
__init__
A container for layer's parameters. Parameters ---------- init : str, default 'glorot_uniform'. The name of the w
mla/neuralnet/parameters.py:8
Method
__init__
( self, layers, optimizer, loss, max_epochs=10, batch_size=64,
mla/neuralnet/nnet.py:25
Method
__init__
(self, C=0.01)
mla/neuralnet/regularizers.py:7
Method
__init__
(self, m=2, axis=0)
mla/neuralnet/constraints.py:13
Method
__init__
(self, axis=0)
mla/neuralnet/constraints.py:36
Method
__init__
(self, learning_rate=0.01, momentum=0.9, decay=0.0, nesterov=False)
mla/neuralnet/optimizers.py:72
Method
__init__
(self, learning_rate=0.01, epsilon=1e-8)
mla/neuralnet/optimizers.py:103
Method
__init__
(self, learning_rate=1.0, rho=0.95, epsilon=1e-8)
mla/neuralnet/optimizers.py:124
Method
__init__
(self, learning_rate=0.001, rho=0.9, epsilon=1e-8)
mla/neuralnet/optimizers.py:159
Method
__init__
(self, learning_rate=0.001, beta_1=0.9, beta_2=0.999, epsilon=1e-8)
mla/neuralnet/optimizers.py:183
Method
__init__
(self, learning_rate=0.002, beta_1=0.9, beta_2=0.999, epsilon=1e-8)
mla/neuralnet/optimizers.py:222
Method
__init__
A fully connected layer. Parameters ---------- output_dim : int
mla/neuralnet/layers/basic.py:54
Method
__init__
(self, name)
mla/neuralnet/layers/basic.py:93
Method
__init__
(self, p=0.1)
mla/neuralnet/layers/basic.py:113
Method
__init__
(self, step=-1)
mla/neuralnet/layers/basic.py:137
Method
__init__
(self, output_dim)
mla/neuralnet/layers/basic.py:153
Method
__init__
A 2D convolutional layer. Input shape: (n_images, n_channels, height, width) Parameters ---------- n_filters : int, d
mla/neuralnet/layers/convnet.py:9
Method
__init__
Max pooling layer. Input shape: (n_images, n_channels, height, width) Parameters ---------- pool_shape : tuple(int, i
mla/neuralnet/layers/convnet.py:79
Method
__init__
(self, momentum=0.9, eps=1e-5, parameters=None)
mla/neuralnet/layers/normalization.py:14
Method
__init__
( self, hidden_dim, activation="tanh", inner_init="orthogonal", parame
mla/neuralnet/layers/recurrent/rnn.py:13
Method
__init__
( self, hidden_dim, activation="tanh", inner_init="orthogonal", parame
mla/neuralnet/layers/recurrent/lstm.py:18
Method
__init__
Deep Q learning implementation. Parameters ---------- min_epsilon : float Minimal value for epsilon. eps
mla/rl/dqn.py:21
Method
__init__
( self, n_estimators=10, max_features=None, min_samples_split=10, max_
mla/ensemble/random_forest.py:62
Method
__init__
( self, n_estimators=10, max_features=None, min_samples_split=10, max_
mla/ensemble/random_forest.py:102
Method
__init__
(self, regression=False, criterion=None, n_classes=None)
mla/ensemble/tree.py:15
Method
__init__
(self, regularization=1.0)
mla/ensemble/gbm.py:23
Method
__init__
( self, n_estimators, learning_rate=0.1, max_features=10, max_depth=2,
mla/ensemble/gbm.py:79
← previous
next →
101–200 of 368, ranked by callers