scikit-learnconda install scikit-learnfrom sklearn.{family} import {Model} model = LinearRegression(normalize=True)
print(model) model.fit() : fit training datamodel.fit(x,y))model.fit(x))model.predict_proba() : returns the probability that a new observation has each categorical label. In this case, the label with the highest probability is returned by model.predict()model.score() : for classification or regression problems, scores are between 0 and 1 (larger score = better fit)model.predict() : predict labels in clustering algorithmsmodel.transform() : given an unsupervised model, transform new data into the new basis. This also accepts x_new, returns the new representation of the data based on the unsuprvised model model.fit_transform() : for some estimators. which efficiently performs a fit and transform on the same input data