Gimy

2020年6月6日 星期六

python xbgoost

import xgboost as xgb
from xgboost.sklearn import XGBClassifier
xgbc = XGBClassifier()
xgbc.fit(X_train, y_train)

pred = xgbc.predict(X_test)

from sklearn.metrics import accuracy_score
accuracy_score(pred,y_test)
張貼者: Gimy 於 凌晨12:01
以電子郵件傳送這篇文章BlogThis!分享至 X分享至 Facebook分享到 Pinterest

沒有留言:

張貼留言

較新的文章 較舊的文章 首頁
訂閱: 張貼留言 (Atom)

關於我自己

Gimy
檢視我的完整簡介

網誌存檔

  • ►  2022 (3)
    • ►  11月 (1)
    • ►  3月 (2)
  • ►  2021 (9)
    • ►  12月 (1)
    • ►  8月 (1)
    • ►  7月 (1)
    • ►  5月 (1)
    • ►  4月 (3)
    • ►  1月 (2)
  • ▼  2020 (54)
    • ►  11月 (1)
    • ►  10月 (1)
    • ►  7月 (3)
    • ▼  6月 (14)
      • python df heatmap
      • sigmoid
      • SQL (MySQL)
      • GitLab
      • python 中央極限定理 CLT
      • python xbgoost
      • python RandomForest
      • my_function.py
      • python training 資料準備 (以DataFrame匯入) KNN
      • python dict 字典
      • python list
      • MySQL DATE_FORMAT() 函數 日期 時間
      • python 引用 py
      • python 迴歸
    • ►  5月 (25)
    • ►  4月 (1)
    • ►  3月 (3)
    • ►  2月 (6)
  • ►  2016 (1)
    • ►  12月 (1)
  • ►  2014 (5)
    • ►  9月 (1)
    • ►  8月 (4)
簡單主題. 技術提供:Blogger.