Releases: ms-kumar/torml
Releases · ms-kumar/torml
Release list
0.1.0
Added
- Added
torml.metrics.accuracy_score,torml.metrics.mean_squared_error,torml.metrics.r2_scorewith tests intests/metrics/. - Added
torml.linear_model.LinearRegression(closed-form viatorch.linalg.lstsq) andtorml.linear_model.LogisticRegressionwith tests intests/linear_model/. - Added
torml.model_selection.train_test_split,torml.model_selection.KFold, andtorml.model_selection.cross_val_scorewith tests intests/model_selection/. - Added
torml.model_selection.GridSearchCV(exhaustive grid, refit best) with tests intests/model_selection/. - Added
torml.preprocessing.StandardScaler,torml.preprocessing.MinMaxScaler,torml.preprocessing.LabelEncoder, andtorml.preprocessing.OneHotEncoderwith tests intests/preprocessing/. - Added
torml.neighbors.KNeighborsClassifierandtorml.neighbors.KNeighborsRegressor(uniform/distance weights, Minkowskip,kneighbors,predict_proba) with tests intests/neighbors/. - Added
torml.naive_bayes.GaussianNB(var smoothing,predict_proba/predict_log_proba, tensor and string labels) with tests intests/naive_bayes/. - Added
torml.mixture.GaussianMixture(full-covariance EM) with tests intests/mixture/. - Added
torml.multiclass.OneVsRestClassifierwith tests intests/multiclass/. - Added
torml.semi_supervised.LabelPropagation(kNN graph, hard clamping, transductive) with tests intests/semi_supervised/. - Added
torml.covariance.EmpiricalCovariance(location/covariance/precision, Mahalanobis, log-likelihood score) with tests intests/covariance/. - Added
torml.cross_decomposition.PLSRegression(NIPALS, single target) with tests intests/cross_decomposition/. - Added
torml.feature_extraction.DictVectorizerwith tests intests/feature_extraction/. - Added
torml.feature_selection.SelectKBestwithf_classif(ANOVA F + exact p-values) with tests intests/feature_selection/. - Added
torml.random_projection.GaussianRandomProjectionwithjohnson_lindenstrauss_min_dimwith tests intests/random_projection/. - Added
torml.discriminant_analysis.LinearDiscriminantAnalysis(SVD solver) with tests intests/discriminant_analysis/. - Added
torml.multivariate.MultiOutputRegressorandtorml.multivariate.MultiOutputClassifierwith tests intests/multivariate/. - Added
torml.cluster.KMeans(Lloyd, best-of-n_initby inertia) andtorml.cluster.DBSCAN(noise label -1) with tests intests/cluster/. - Added
torml.tree.DecisionTreeClassifier(gini/entropy) andtorml.tree.DecisionTreeRegressor(squared error) with tests intests/tree/. - Added
torml.decomposition.PCA(full SVD, int/float-ration_components) with tests intests/decomposition/. - Added
torml.ensemble.VotingClassifier/VotingRegressor(hard/soft vote, nestedname__param),torml.ensemble.BaggingClassifier/BaggingRegressor, andtorml.ensemble.RandomForestClassifier/RandomForestRegressorwith tests intests/ensemble/. - Added
torml.svm.LinearSVCandtorml.svm.LinearSVR(Pegasos sub-gradient) with tests intests/svm/. - Added
torml.pipelines.Pipeline(nestedname__param, predict/transform/score routing),torml.pipelines.FeatureUnion, andtorml.pipelines.ColumnTransformerwith tests intests/pipelines/. - Added
torml.manifold.MDS(classical scaling, euclidean/precomputed) with tests intests/manifold/. - Added
torml.gaussian_process.GaussianProcessRegressor(RBF, posterior std, LML) with tests intests/gaussian_process/. - Added
doc/Sphinx site (conf.py, quickstart, user guide, API reference; builds withsphinx-build), runnableexamples/per module, andbenchmarks/skeleton.
Changed
- Removed duplicate
torml/metrics.py;torml.metricspackage is the single source of truth. - Removed
numpyruntime dependency; torch-only backend (torch.as_tensor,torch.linalg).
Fixed
- Fixed
BaseEstimator.get_paramsto return__init__params with nested__support; fixedclone(safe=False)to deepcopy non-estimators. - Fixed
check_arraydtype handling (torch.dtype and string),check_X_y,check_is_fitted, andcheck_scalarvalidation. - Fixed
LinearRegressionto inheritRegressorMixinand implement correctfit/predictwithn_features_in_validation. - Fixed
LogisticRegression(full-batch gradient descent on L2 binary cross-entropy,C/max_iter,decision_function/predict_proba, binary-only) with dedicated tests intests/linear_model/. - Fixed
BaseEstimator.scoreto score without refitting (required for correctcross_val_score).