728x90
캐글 모델
-
Kaggle 캐글 : 타이타닉으로 입문하기(2) - 여러가지 모델 & 제출Machine Learning 2020. 2. 17. 20:05
1.여러가지 모델 1. Random Forest from sklearn.ensemble import RandomForestClassifier from sklearn.tree import DecisionTreeClassifier from sklearn.model_selection import train_test_split X_columns=['Pclass','Sex','Age','Fare','Cabin','Embarked','Title','Family'] X_train,X_test,Y_train,Y_test=train_test_split(train[X_columns],train['Survived'],test_size=0.25,random_state=0) clf=RandomForestClassifier(n_..