Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/christopherjenness/ML-lib
/ functions
Functions
201 in github.com/christopherjenness/ML-lib
⨍
Functions
201
◇
Types & classes
25
Function
continuous_data
()
tests/data.py:5
Function
continuous_data_complicated
()
tests/data.py:11
Function
f
(x1, x2)
ML/svm.py:11
Method
fit
Fits Naive Bayes classifier Args: X (np.ndarray): Training data of shape[n_samples, n_features] y (np.ndarra
ML/naivebayes.py:34
Function
grad
(X, y, weights)
tests/test_descentmethods.py:10
Method
grad
Computes the gradient (needed if using gradient descent). Args: X (np.ndarray): Training data of shape[n_samples, n_feat
ML/regression.py:61
Method
grad
Args: X (np.ndarray): Training data of shape[n_samples, n_features] y (np.ndarray): Target values of shape[n_samples,
ML/regression.py:125
Function
hess
(X, weights)
tests/test_descentmethods.py:19
Function
k_fold_generator
generator of indices to split data of given length into test and train sets. Useful for K-fold cross validation. Args: d
ML/modelselection.py:136
Method
learn_split
CART algorithm to learn split at node in tree. Minimizes mean squared error of the two classes generated. Args:
ML/treemethods.py:194
Method
learn_split
CART algorithm to learn split at node in tree. Minimizes total misclassification error. Args: data (np.ndarray):
ML/treemethods.py:263
Method
learned
(self)
ML/regression.py:23
Function
linear_kernel
(**kwargs)
ML/svm.py:10
Method
locallogisticregression
Local linear logistic eliminates bias at boundries of domain. It uses weighted least squares, determining weights from the k
ML/kernelmethods.py:158
Function
newtonsmethod
Args: X (np.ndarray): Training data of shape[n_samples, n_features] y (np.ndarray): Target values of shape[n_samples, 1]
ML/descentmethods.py:116
Function
polynomial_kernel
(power, coef, **kwargs)
ML/svm.py:15
Method
predict
Args: x (np.array): Training data of shape[1, n_features] Currently, only vector of single sample is supported
ML/naivebayes.py:48
Function
rbf_kernel
(gamma, **kwargs)
ML/svm.py:20
Function
steepestdescent
Args: X (np.ndarray): Training data of shape[n_samples, n_features] y (np.ndarray): Target values of shape[n_samples, 1]
ML/descentmethods.py:78
Function
tall_matrix_data
()
tests/data.py:23
Function
tall_matrix_data_2
()
tests/data.py:32
Function
test_ClassificationTree
()
tests/test_treemethods.py:14
Function
test_DANN
()
tests/test_prototypemethods.py:80
Function
test_DANN_prediction
()
tests/test_prototypemethods.py:87
Function
test_DiscreteAdaBoost
()
tests/test_treemethods.py:30
Function
test_GM_fit
()
tests/test_gaussianmixtures.py:13
Function
test_GM_fit_lowiterations
()
tests/test_gaussianmixtures.py:24
Function
test_GM_init
()
tests/test_gaussianmixtures.py:6
Function
test_GM_predict
()
tests/test_gaussianmixtures.py:35
Function
test_GM_predict_probs
()
tests/test_gaussianmixtures.py:46
Function
test_GradientBoostingRegression
()
tests/test_treemethods.py:38
Function
test_KMeans
()
tests/test_prototypemethods.py:22
Function
test_KMeans_prediction
()
tests/test_prototypemethods.py:31
Function
test_KMediods
()
tests/test_prototypemethods.py:41
Function
test_KMediods_prediction
()
tests/test_prototypemethods.py:51
Function
test_LDA
()
tests/test_discriminantanalysis.py:5
Function
test_LVQ
()
tests/test_prototypemethods.py:61
Function
test_LVQ_prediction
()
tests/test_prototypemethods.py:70
Function
test_PCA
()
tests/test_pca.py:6
Function
test_Perceptron
()
tests/test_svm.py:28
Function
test_PrimRegression
()
tests/test_treemethods.py:22
Function
test_QDA
()
tests/test_discriminantanalysis.py:15
Function
test_RDA
()
tests/test_discriminantanalysis.py:25
Function
test_RandomForestRegression
()
tests/test_treemethods.py:46
Function
test_RegressionTree
()
tests/test_treemethods.py:6
Function
test_SupportVectorMachine
()
tests/test_svm.py:6
Function
test_SupportVectorMachine_polynomial_kernel
()
tests/test_svm.py:17
Function
test_bernoulli_naive_bayes
()
tests/test_naivebayes.py:22
Function
test_bernoulli_naive_bayes_probs
()
tests/test_naivebayes.py:30
Function
test_best_subset
()
tests/test_modelselection.py:7
Function
test_best_subset_backward
()
tests/test_modelselection.py:26
Function
test_best_subset_combinatorial
()
tests/test_modelselection.py:36
Function
test_best_subset_forward
()
tests/test_modelselection.py:16
Function
test_epanechnikovkernel_close
()
tests/test_kernelmethods.py:13
Function
test_epanechnikovkernel_distant
()
tests/test_kernelmethods.py:18
Function
test_epanechnikovkernel_same
()
tests/test_kernelmethods.py:23
Function
test_error_cross_entropy_error
()
tests/test_modelselection.py:60
Function
test_error_mean_classification_error
()
tests/test_modelselection.py:53
Function
test_error_mse
()
tests/test_modelselection.py:46
Function
test_gaussian_naive_bayes
()
tests/test_naivebayes.py:5
Function
test_gaussian_naive_bayes_probs
()
tests/test_naivebayes.py:14
Function
test_gaussiankernel_close
()
tests/test_kernelmethods.py:43
Function
test_gaussiankernel_distant
()
tests/test_kernelmethods.py:48
Function
test_gaussiankernel_same
()
tests/test_kernelmethods.py:53
Function
test_gradientdescent
()
tests/test_descentmethods.py:25
Function
test_gradientdescent_alpha
()
tests/test_descentmethods.py:32
Function
test_gradientdescent_initialweights
()
tests/test_descentmethods.py:48
Function
test_gradientdescent_lowiterations
()
tests/test_descentmethods.py:40
Function
test_gradientdescent_regparam
()
tests/test_descentmethods.py:66
Function
test_gradientdescent_stochastic
()
tests/test_descentmethods.py:57
Function
test_k_fold_generator
()
tests/test_modelselection.py:67
Function
test_k_fold_generator_odd
()
tests/test_modelselection.py:75
Function
test_kerneldensityestimate
()
tests/test_kernelmethods.py:74
Function
test_kerneldensitypredict
()
tests/test_kernelmethods.py:82
Function
test_kernelmethods_fit
()
tests/test_kernelmethods.py:6
Function
test_knearestneighbor_classification
()
tests/test_prototypemethods.py:14
Function
test_knearestneighbor_regression
()
tests/test_prototypemethods.py:6
Function
test_linear_kernel
()
tests/test_svm.py:37
Function
test_linear_regression
()
tests/test_regression.py:5
Function
test_linear_regression_descent
()
tests/test_regression.py:12
Function
test_linear_regression_descent_regularized
()
tests/test_regression.py:28
Function
test_linear_regression_regularized
()
tests/test_regression.py:19
Function
test_locallinearregression
()
tests/test_kernelmethods.py:66
Function
test_logistic_regression
()
tests/test_regression.py:37
Function
test_logistic_regression_regularized
()
tests/test_regression.py:44
Function
test_nadarayaaverage
()
tests/test_kernelmethods.py:58
Function
test_newtonsmethod
()
tests/test_descentmethods.py:101
Function
test_newtonsmethod_alpha
()
tests/test_descentmethods.py:110
Function
test_newtonsmethod_initialweights
()
tests/test_descentmethods.py:128
Function
test_newtonsmethod_lowiterations
()
tests/test_descentmethods.py:119
Function
test_polynomial_kernel
()
tests/test_svm.py:44
Function
test_rbf_kernel
()
tests/test_svm.py:53
Function
test_steepestdescent
()
tests/test_descentmethods.py:75
Function
test_steepestdescent_alpha
()
tests/test_descentmethods.py:83
Function
test_steepestdescent_lowiterations
()
tests/test_descentmethods.py:92
Function
test_test_train_splitter
()
tests/test_modelselection.py:83
Function
test_train_splitter
Splits X and y arrays into test and train sets Args: X (np.ndarray): Training data of shape[n_samples, n_features] y (np.nda
ML/modelselection.py:101
Function
test_tricubekernel_close
()
tests/test_kernelmethods.py:28
Function
test_tricubekernel_distant
()
tests/test_kernelmethods.py:33
Function
test_tricubekernel_same
()
tests/test_kernelmethods.py:38
← previous
next →
101–200 of 201, ranked by callers