Scikit-Learn provides core machine learning tools. These include model evaluation functions like accuracy_score, data preparation tools like StandardScaler, and model selection helpers like train_test_split. It also features clustering algorithms like KMeans, classification models like SVC, and regression models like LinearRegression.
Evaluation and Preprocessing
- Measures accuracy and error with
accuracy_scoreandmean_squared_error - Builds confusion matrices with
confusion_matrix - Scales data using
StandardScalerandMinMaxScaler - Encodes labels with
LabelEncoder - Fills missing data via
SimpleImputer
Selection and Clustering
- Splits data using
train_test_split - Tunes parameters with
GridSearchCV - Validates models using
cross_val_score - Groups data with
KMeans - Uses hierarchical groups via
AgglomerativeClustering
Classification and Regression
- Predicts classes with
KNeighborsClassifierandSVC - Uses trees and Bayes via
DecisionTreeClassifierandGaussianNB - Fits linear equations with
LinearRegressionandLasso - Predicts values using
RandomForestRegressor
No comments:
Post a Comment