Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

sklearn #16

Open
yufang67 opened this issue Sep 11, 2020 · 0 comments
Open

sklearn #16

yufang67 opened this issue Sep 11, 2020 · 0 comments
Labels

Comments

@yufang67
Copy link
Owner

yufang67 commented Sep 11, 2020

TL;DR

Classification, Regression, Clustering, Dimensionality reduction, Model selection, Preprocessing

Load and read data

API

  • estimator

  • model.fit()

  • model.coef_ , model.labels_ , model.intercept_ , model.cluster_centers_ , model.inertia_

  • input X should be two dimension: X = [:,np.newaxis]

  • predictor

  • model.predict()

  • model.predict_proba()

  • model.score(trainX, testX)

  • model.decision_function(testX)

  • transformer (.fit() .transform())

  • LabelEncoder: 1d, LE.classes_

  • OrdinalEncoder: nd, OE.categories_ , 有顺序

  • OneHotEncoder: 2d

  • MinMaxScaler: 2d, X.reshape(-1,1)

  • StandardScaler: 2d

  • meta estimator

  • ensemble.BaggingClassifier

  • ensemble.VotingClassifier

  • multiclass.OneVsOneClassifier

  • multiclass.OneVsRestClassifier

  • multioutput.MultiOutputClassifier

  • impute.SimpleImputer

  • model_selection.GridSearchCV

  • model_selection.RandomizedSearchCV

  • pipeline.Pipeline
    image

image

Ref

非常详细的sklearn介绍

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant