MCPcopy Create free account

hub / github.com/AssemblyAI-Community/Machine-Learning-From-Scratch / functions

Functions73 in github.com/AssemblyAI-Community/Machine-Learning-From-Scratch

↓ 8 callersMethodplot
(self)
10 KMeans/kmeans.py:89
↓ 6 callersFunctionget_hyperplane_value
(x, w, b, offset)
09 SVM/svm.py:63
↓ 3 callersMethod_entropy
(self, y)
04 Decision Trees/DecisionTree.py:93
↓ 3 callersMethod_entropy
(self, y)
05 Random Forests/DecisionTree.py:93
↓ 2 callersMethod_split
(self, X_column, split_thresh)
04 Decision Trees/DecisionTree.py:88
↓ 2 callersMethod_split
(self, X_column, split_thresh)
05 Random Forests/DecisionTree.py:88
↓ 2 callersFunctioneuclidean_distance
(x1, x2)
10 KMeans/kmeans.py:4
↓ 2 callersMethodfit
(self, X, y)
05 Random Forests/DecisionTree.py:23
↓ 2 callersMethodpredict
(self, X)
02 Linear Regression/LinearRegression.py:26
↓ 2 callersFunctionsigmoid
(x)
03 Logistic Regression/LogisticRegression.py:3
↓ 1 callersMethod_best_split
(self, X, y, feat_idxs)
04 Decision Trees/DecisionTree.py:48
↓ 1 callersMethod_best_split
(self, X, y, feat_idxs)
05 Random Forests/DecisionTree.py:48
↓ 1 callersMethod_bootstrap_samples
(self, X, y)
05 Random Forests/RandomForest.py:23
↓ 1 callersMethod_closest_centroid
(self, sample, centroids)
10 KMeans/kmeans.py:69
↓ 1 callersMethod_create_clusters
(self, centroids)
10 KMeans/kmeans.py:61
↓ 1 callersMethod_get_centroids
(self, clusters)
10 KMeans/kmeans.py:76
↓ 1 callersMethod_get_cluster_labels
(self, clusters)
10 KMeans/kmeans.py:51
↓ 1 callersMethod_grow_tree
(self, X, y, depth=0)
04 Decision Trees/DecisionTree.py:27
↓ 1 callersMethod_grow_tree
(self, X, y, depth=0)
05 Random Forests/DecisionTree.py:27
↓ 1 callersMethod_information_gain
(self, y, X_column, threshold)
04 Decision Trees/DecisionTree.py:68
↓ 1 callersMethod_information_gain
(self, y, X_column, threshold)
05 Random Forests/DecisionTree.py:68
↓ 1 callersMethod_is_converged
(self, centroids_old, centroids)
10 KMeans/kmeans.py:84
↓ 1 callersMethod_most_common_label
(self, y)
04 Decision Trees/DecisionTree.py:99
↓ 1 callersMethod_most_common_label
(self, y)
05 Random Forests/DecisionTree.py:99
↓ 1 callersMethod_most_common_label
(self, y)
05 Random Forests/RandomForest.py:28
↓ 1 callersMethod_pdf
(self, class_idx, x)
06 NaiveBayes/naive_bayes.py:39
↓ 1 callersMethod_predict
(self, x)
01 KNN/KNN.py:20
↓ 1 callersMethod_predict
(self, x)
06 NaiveBayes/naive_bayes.py:26
↓ 1 callersMethod_traverse_tree
(self, x, node)
04 Decision Trees/DecisionTree.py:107
↓ 1 callersMethod_traverse_tree
(self, x, node)
05 Random Forests/DecisionTree.py:107
↓ 1 callersFunctionaccuracy
(y_true, y_pred)
09 SVM/svm.py:56
↓ 1 callersFunctionaccuracy
(y_true, y_pred)
08 Perceptron/perceptron.py:51
↓ 1 callersFunctionaccuracy
(y_pred, y_test)
03 Logistic Regression/train.py:15
↓ 1 callersFunctionaccuracy
(y_test, y_pred)
04 Decision Trees/train.py:17
↓ 1 callersFunctionaccuracy
(y_true, y_pred)
05 Random Forests/train.py:15
↓ 1 callersFunctionaccuracy
(y_true, y_pred)
06 NaiveBayes/naive_bayes.py:53
↓ 1 callersFunctioneuclidean_distance
(x1, x2)
01 KNN/KNN.py:4
↓ 1 callersMethodfit
(self, X, y)
01 KNN/KNN.py:12
↓ 1 callersMethodfit
(self, X, y)
09 SVM/svm.py:12
↓ 1 callersMethodfit
(self, X, y)
02 Linear Regression/LinearRegression.py:12
↓ 1 callersMethodfit
(self, X, y)
08 Perceptron/perceptron.py:17
↓ 1 callersMethodfit
(self, X, y)
03 Logistic Regression/LogisticRegression.py:14
↓ 1 callersMethodfit
(self, X, y)
04 Decision Trees/DecisionTree.py:23
↓ 1 callersMethodfit
(self, X, y)
06 NaiveBayes/naive_bayes.py:5
↓ 1 callersMethodfit
(self, X)
07 PCA/pca.py:11
↓ 1 callersMethodis_leaf_node
(self)
04 Decision Trees/DecisionTree.py:12
↓ 1 callersMethodis_leaf_node
(self)
05 Random Forests/DecisionTree.py:12
↓ 1 callersFunctionmse
(y_test, predictions)
02 Linear Regression/train.py:18
↓ 1 callersMethodpredict
(self, X)
01 KNN/KNN.py:16
↓ 1 callersMethodpredict
(self, X)
09 SVM/svm.py:31
↓ 1 callersMethodpredict
(self, X)
08 Perceptron/perceptron.py:38
↓ 1 callersMethodpredict
(self, X)
10 KMeans/kmeans.py:21
↓ 1 callersMethodpredict
(self, X)
03 Logistic Regression/LogisticRegression.py:30
↓ 1 callersMethodpredict
(self, X)
04 Decision Trees/DecisionTree.py:104
↓ 1 callersMethodpredict
(self, X)
05 Random Forests/DecisionTree.py:104
↓ 1 callersMethodpredict
(self, X)
06 NaiveBayes/naive_bayes.py:22
↓ 1 callersMethodtransform
(self, X)
07 PCA/pca.py:32
↓ 1 callersFunctionvisualize_svm
()
09 SVM/svm.py:62
Method__init__
(self, k=3)
01 KNN/KNN.py:9
Method__init__
(self, learning_rate=0.001, lambda_param=0.01, n_iters=1000)
09 SVM/svm.py:5
Method__init__
(self, lr = 0.001, n_iters=1000)
02 Linear Regression/LinearRegression.py:6
Method__init__
(self, learning_rate=0.01, n_iters=1000)
08 Perceptron/perceptron.py:9
Method__init__
(self, K=5, max_iters=100, plot_steps=False)
10 KMeans/kmeans.py:9
Method__init__
(self, lr=0.001, n_iters=1000)
03 Logistic Regression/LogisticRegression.py:8
Method__init__
(self, feature=None, threshold=None, left=None, right=None,*,value=None)
04 Decision Trees/DecisionTree.py:5
Method__init__
(self, min_samples_split=2, max_depth=100, n_features=None)
04 Decision Trees/DecisionTree.py:17
Method__init__
(self, feature=None, threshold=None, left=None, right=None,*,value=None)
05 Random Forests/DecisionTree.py:5
Method__init__
(self, min_samples_split=2, max_depth=100, n_features=None)
05 Random Forests/DecisionTree.py:17
Method__init__
(self, n_trees=10, max_depth=10, min_samples_split=2, n_feature=None)
05 Random Forests/RandomForest.py:6
Method__init__
(self, n_components)
07 PCA/pca.py:6
Methodfit
(self, X, y)
05 Random Forests/RandomForest.py:13
Methodpredict
(self, X)
05 Random Forests/RandomForest.py:33
Functionunit_step_func
(x)
08 Perceptron/perceptron.py:4