Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangzhonglian authored Aug 25, 2019
1 parent 0e4e7fe commit 1adca9f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions docs/Kaggle/competitions/getting-started/titanic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ model = RandomForestClassifier(random_state=1, n_estimators=100, min_samples_spl
# 0.8488710896477386 [0.8198946 0.82285903 0.87780749 0.84906417 0.87473017]
model = AdaBoostClassifier(random_state=1, n_estimators=100, learning_rate=1)

# # 3. Voting
# # 0.8695399796790022 [0.87259552 0.8370224 0.87433155 0.86885027 0.89490016]
# 3. Voting
# 0.8695399796790022 [0.87259552 0.8370224 0.87433155 0.86885027 0.89490016]
model = VotingClassifier(
estimators=[
('log_clf', LogisticRegression()),
Expand All @@ -327,8 +327,8 @@ model = VotingClassifier(
scores = cross_val_score(model, trainData, trainLabel, cv=5, scoring='roc_auc')
print(scores.mean(), "\n", scores)

# # 4. Stacking
# # 0.8713813265814722 [0.87747036 0.83886693 0.86590909 0.87085561 0.90380464]
# 4. Stacking
# 0.8713813265814722 [0.87747036 0.83886693 0.86590909 0.87085561 0.90380464]
clfs = [
AdaBoostClassifier(),
SVC(probability=True),
Expand All @@ -339,9 +339,6 @@ clfs = [
GradientBoostingClassifier(learning_rate=0.3,max_depth=6,n_estimators=100)
]

# from sklearn.cross_validation import StratifiedKFold
# n_folds = 5
# skf = list(StratifiedKFold(trainLabel, n_folds))
kf = KFold(n_splits=5, shuffle=True, random_state=1)

# 创建零矩阵
Expand Down

0 comments on commit 1adca9f

Please sign in to comment.