ML import

bgly·2022년 5월 16일
0
post-thumbnail

귀찮아서 만들어버렸다

#인코더 
import
from sklearn.preprocessing import LabelEncoder
from category_encoders import OneHotEncoder
from category_encoders import OrdinalEncoder
from category_encoders import TargetEncoder

#모델 import
from sklearn.linear_model import LogisticRegression
from sklearn.tree import DecisionTreeClassifier
from sklearn.ensemble import RandomForestClassifier
from xgboost import XGBClassifier
from lightgbm import LGBMClassifier

#pipe라인
from sklearn.pipeline import make_pipeline

#score
from sklearn.metrics import accuracy_score, precision_score , recall_score, f1_score, roc_auc_score

#imputer
from sklearn.impute import SimpleImputer

#레포트
from sklearn.metrics import classification_report

#서치CV
from sklearn.model_selection import RandomizedSearchCV
from sklearn.model_selection import GridSearchCV

#교차검증
from sklearn.model_selection import cross_val_score

#경고무시
import warnings
warnings.filterwarnings('ignore')

1개의 댓글

comment-user-thumbnail
2022년 6월 10일

동동님 이런거 너무 좋습니다ㅋㅋㅋㅋ 저도 필요하다고 생각했는데 너무 좋아요!!

답글 달기