MCPcopy Create free account

hub / github.com/Algo-Phantoms/Algo-ScriptML / functions

Functions183 in github.com/Algo-Phantoms/Algo-ScriptML

Method__init__
(self, alpha=0.001, lambda1=0.01, epochs=1000)
Support Vector Machine/SVM_Linear_Kernal_&_documentation.py:11
Method__init__
(self)
Naive Bayes/naive_bayes.py:9
Method__init__
Initialization function for HiddenMarkovModel Attributes: observable_states (list): A list containing the name of each observable
Hidden Markov Model/hmm.py:10
Method__init__
(self, target_string, population_size, mutation_rate)
Genetic Algorithm/genetic_algorithm.py:18
Method__init__
lamda : L1_penality
Lasso Regression/Lasso_Regression.py:5
Method__init__
(self, n_estimators=55)
Adaboost/adaboost_base_35.py:45
Method__init__
>>> data = [[-1, 2], [-0.5, 6], [0, 10], [1, 18]] >>> scaler = MinMaxScaler() >>> print(scaler.fit(data)) MinMaxScale
Preprocessing/min_max_scaler.py:6
Method__init__
>>> scaler = StandardScaler() >>> data = [[0, 0], [0, 0], [1, 1], [1, 1]] >>> print(scaler.fit(data)) StandardScaler(
Preprocessing/standard_scaler.py:6
Method__init__
(self, n_clusters, n_epochs)
Gaussian Mixture Model/GaussianMixtureModel.py:7
Method__init__
(self, transactions, min_support, min_confidence)
Apriori/apriori.py:27
Method__init__
(self, n_features, alpha, beta)
Bayesian Regression/bayessian_regression.py:7
Method__init__
(self,learning_rate,iterations,l1_penality,l2_penality)
Elastic Net/Elastic_Net_Regression.py:22
Method__init__
(self, array)
Principal Component Analaysis/PCA.py:11
Method__init__
Initialization of Clusters for K Means.
K-Means/kmeans.py:42
Method__init__
Custom Implementation of K Means.
K-Means/kmeans.py:53
Method__init__
(self,learning_rate=0.1)
stochastic gradient descent/stochastic_gradient_descent_algo.py:5
Method__init__
(self, learning_rate=0.01, n_iterations=10000)
Multiple Linear Regression/multiple_linear_regression_implementation.py:10
Method__init__
(self, feature=None, threshold=None, left=None, right=None, *, value=None)
Random Forest/randomForest.py:12
Method__init__
(self, min_samples_split=2, max_depth=100, n_feats=None)
Random Forest/randomForest.py:25
Method__init__
(self, n_trees=10, min_samples_split=2, max_depth=100, n_feats=None)
Random Forest/randomForest.py:127
Method__init__
(self, X, y, theta, alpha=0.01, num_itr = 100)
Logistic Regression/Logistic_Regression_base.py:20
Method__init__
Lowess regression (Locally weighted regression) Arguments - window (by default 10) degree(by default 1)
Lowess Regression/lowessregression.py:6
Method__init__
Linear regression Arguments - alpha (by default .001) epochs(by default 100) plot : bool - pl
Linear Regression/Linear_Regression.py:8
Method__init__
(self, learning_rate=0.01, n_iters=500)
Perceptron/perceptron_training.py:12
Method__init__
(self)
Decision Tree/decision_tree_implementation.py:9
Method__init__
(self, rows)
Decision Tree/decision_tree_implementation.py:165
Method__init__
(self, question, true_branch, false_branch)
Decision Tree/decision_tree_implementation.py:181
Method__init__
(self, column, value)
Decision Tree/decision_tree_implementation.py:193
Method__repr__
(self)
Decision Tree/decision_tree_implementation.py:206
Method_init_
(self,iteration,lam,alpha)
Ridge Regression/Ridge Regression- Base.py:15
Method_unit_step_func
(self, x)
Perceptron/perceptron_training.py:38
Methodbackward
(self,x,y,learning_rate=0.001)
Neural Network/neural_network.py:51
Methodcalculate
(self)
Principal Component Analaysis/PCA.py:14
Methodcalculate_y_predicted
(self, avg, std_dev)
Logistic Regression/Logistic_Regression_base.py:74
Methoddata_max_
(self)
Preprocessing/min_max_scaler.py:100
Methoddata_min_
(self)
Preprocessing/min_max_scaler.py:96
Methoddata_range_
(self)
Preprocessing/min_max_scaler.py:104
Methoddebug
(self)
Logistic Regression/Logistic_Regression_base.py:27
Methodfit
(self, X, y)
Support Vector Machine/SVM_Linear_Kernal_&_documentation.py:18
Methodfit
X.shape = (m,n) Y.shape = (m,) where, m = number of training examples n = number of features
Lasso Regression/Lasso_Regression.py:14
Methodfit
(self,x,y)
Ridge Regression/Ridge Regression- Base.py:21
Methodfit
(self,x,y)
Elastic Net/Elastic_Net_Regression.py:28
Methodfit
first finding the size of given features. m=no. of given training sets n=no.features in each training set after tha
stochastic gradient descent/stochastic_gradient_descent_algo.py:8
Methodfit
Input parameters: X --> array, features y --> array, true values Returns: None
Multiple Linear Regression/multiple_linear_regression_implementation.py:32
Methodfit
(self, X, y)
Random Forest/randomForest.py:135
Methodfit
Some pre-defined checks 1) length of x and y array should be same 2) Window size cannot exceed the number of data points
Lowess Regression/lowessregression.py:66
Methodfit
(self, X, y, lr=.005, epochs=550)
Linear Regression/Linear_Regression.py:61
Methodfit_data
X: training features y: target variable The function returns: A dictionary with the probability, mean, and standard deviat
Naive Bayes/naive_bayes.py:46
Methodfit_transform
(self, x, *args)
Preprocessing/min_max_scaler.py:59
Methodfit_transform
(self, x, *args)
Preprocessing/standard_scaler.py:50
Methodforward
(self,x)
Neural Network/neural_network.py:34
Methodgenerate_rules
(self)
Apriori/apriori.py:125
Methodinverse_transform
(self, x, *args)
Preprocessing/min_max_scaler.py:66
Methodinverse_transform
(self, x, *args)
Preprocessing/standard_scaler.py:57
Methodis_numeric
(self, value)
Decision Tree/decision_tree_implementation.py:159
Functionknn
(X,Y,queryPoint,k=5)
K Nearest Neighbors/k-nearest neighbors (KNN).py:9
Methodlogistic_regression
(self)
Logistic Regression/Logistic_Regression_base.py:64
Methodmean_
(self)
Preprocessing/standard_scaler.py:73
Methodmin_
(self)
Preprocessing/min_max_scaler.py:85
Functionmodel_accuracy
(y_test, pred)
Support Vector Machine/SVM_Linear_Kernal_&_documentation.py:40
Methodmodel_accuracy
y_test: actual values y_pred: predicted values The function returns: A number between 0-1, representing the percentage of
Naive Bayes/naive_bayes.py:114
Methodnormalize_features
(self)
Logistic Regression/Logistic_Regression_base.py:33
MethodplotRes
(data, clusterRes, clusterNum)
DBSCAN/dbscan.py:37
Methodpredict
(self, X)
Support Vector Machine/SVM_Linear_Kernal_&_documentation.py:32
Methodpredict
X: test dataset The function returns: List of predicted class for each row of dataset.
Naive Bayes/naive_bayes.py:79
Methodpredict
(self,x)
Ridge Regression/Ridge Regression- Base.py:52
Methodpredict
(self,X)
stochastic gradient descent/stochastic_gradient_descent_algo.py:51
Methodpredict
Input parameters: X --> array, features Returns: array, predictions
Multiple Linear Regression/multiple_linear_regression_implementation.py:60
Methodpredict
(self, X)
Random Forest/randomForest.py:144
Methodpredict
(self, x)
Lowess Regression/lowessregression.py:82
Methodpredict
(self, X)
Linear Regression/Linear_Regression.py:78
Functionprint_backward_result
Prints the result of the Backward Algorithm. Args: beta (np.array): A matrix of the beta values. b_prob (numpy.float64): The comp
Hidden Markov Model/hmm.py:249
Functionprint_forward_result
Prints the result of the Forward Algorithm. Args: alpha (np.array): A matrix of the alpha values. a_prob (numpy.float64): The com
Hidden Markov Model/hmm.py:237
Functionprint_viterbi_result
Prints the result of the Viterbi Algorithm. Args: input_seq (list): A list of the observed input sequence. observable_states (lis
Hidden Markov Model/hmm.py:261
Methodrun
(self, iterations)
Genetic Algorithm/genetic_algorithm.py:60
Methodscale_
(self)
Preprocessing/min_max_scaler.py:90
Methodscale_
(self)
Preprocessing/standard_scaler.py:77
Functionsign
(x)
Adaboost/adaboost_base_35.py:37
Functionspectral_clustering
(X, k)
Spectral Clustering/spectral_clustering.py:160
Methodtrain_gmm
(self, X)
Gaussian Mixture Model/GaussianMixtureModel.py:105
Methodunique_vals
(self, rows, col)
Decision Tree/decision_tree_implementation.py:145
Methodupdate_labels
(x,pt,eps,labels,cluster_val)
DBSCAN/dbscan.py:12
Methodweights_dist
(self)
Bayesian Regression/bayessian_regression.py:40
← previous101–183 of 183, ranked by callers