从xgboost导入XGBClassifier并将xgboost导入为xgb

时间:2018-12-03 23:36:00

标签: python anaconda xgboost

我已经安装了xgboost(在anaconda上使用pip),并且.desktop-pdf { display: none; } .mobile-pdf { display: block; } @media only screen and (min-width : 1025px) { .mobile-pdf { display: none; } .desktop-pdf { display: block; } } <div class="outer-pdf" style="-webkit-overflow-scrolling: touch; overflow: auto;"> <div class="pdf"> <iframe class="desktop-pdf" scrolling="auto" src="URL HERE" width="100%" height="90%" type='application/pdf' title="Title"> <p style="font-size: 110%;"><em>There is content being displayed here that your browser doesn't support.</em> <a href="URL HERE" target="_blank"> Please click here to attempt to view the information in a separate browser window. </a> Thanks for your patience!</p> </iframe> <iframe class="mobile-pdf" scrolling="auto" src="https://drive.google.com/viewerng/viewer?embedded=true&url=URL HERE" width="100%" height="90%" type='application/pdf' title="Title"> <p style="font-size: 110%;"><em>There is content being displayed here that your browser doesn't support.</em> <a href="URL HERE" target="_blank"> Please click here to attempt to view the information in a separate browser window. </a> Thanks for your patience!</p> </iframe> </div> </div> 很好。但是,当我使用import xgboost as xgb时,出现错误:

  

ImportError:无法导入名称“ XGBClassifier”

平台信息:

from xgboost import XGBClassifier

有人知道如何解决此问题吗?我已经阅读了一些建议更新xcode的信息(应该在Mac上使用),并建议将xgboost.py的名称更改为另一个(看不到此文件)

任何人都知道,请给点建议。

0 个答案:

没有答案