SeraML — Machine Learning
All models are sklearn-compatible. Swap the import, keep the code.
📈 Linear
LinearRegression— Ordinary Least Squares linear regressionRidge— Ridge regressionLasso— Lasso regressionElasticNet— ElasticNetLogisticRegression— Logistic regressionRidgeClassifier— Ridge classifierSgdClassifier— SGDClassifierSgdRegressor— SGDRegressor
🌲 Tree-Based
DecisionTreeClassifier— Decision tree classifierDecisionTreeRegressor— Decision tree regressorRandomForestClassifier— Random Forest classifierRandomForestRegressor— Random Forest regressorGradientBoostingClassifier— Gradient Boosting classifierGradientBoostingRegressor— Gradient Boosting regressorAdaboostClassifier— AdaBoost classifierAdaboostRegressor— AdaBoost regressor
🔍 Neighbors
KnnClassifier— K-Nearest Neighbors classifierKnnRegressor— K-Nearest Neighbors regressor
📊 Naive Bayes
GaussianNb— Gaussian Naive Bayes
⚡ SVM
🔬 Decomposition
Pca— PCA
🔮 Clustering
DbscanFitPredict— DBSCANKmeansFitPredict— K-Means
🔧 Preprocessing
StandardScaler— StandardScaler
🚨 Anomaly Detection
IsolationForest— IsolationForest
⚙️ Model Selection
PermutationImportance— Permutation importanceKfoldSplit— K-Fold splitGridSearchCv— Grid search with cross-validation
📦 Registry
SaveModel— Save model to the in-memory registry with name, version, and metadata.
📏 Metrics
MetricScore— Compute a named metric score (accuracy, r2, f1, etc.) from predictions.