我正在使用Amazon Sagemaker运行一个xgboost模型,以便押注最好的超参数组合。我必须使用sagemaker实现,而不是notebook替代方案来测试它是否比gridsearch运行得更快。我的问题是如何让它在循环中工作。有什么想法吗?我的理解是,我必须用不同的组合来编写大量的工作。我试着这样做作为测试:
for i in range (1,3):
for j in range (13,15):
job_name = 'regression' + '-'+str(i) +"-"+str(j)+"-&
我使用了一组包含六列的数据,并尝试使用xgboost来预测目标特征,该特征可以是0,1。 因为我还在学习使用xgboost,所以我同时使用softprob和softmax作为目标。当我在最后一起打印它们时,softprob和softmax的结果并不一致(这意味着xgboost没有选择概率最高的特征)。我不知道我的代码是否有bug,或者我对xgboost的工作方式有错误的期望。你能帮我弄清楚吗? import xgboost as xgb
x_train,x_test,y_train,y_test=train_test_split(x, y, test_size=0.33,shuffle=Fa
我正在尝试在我的anaconda (python3.5,mac OSX)上安装xgboost。
conda install -c aterrel xgboost=0.4.0
看起来xgboost包不支持python3.5??
UnsatisfiableError: The following specifications were found to be in conflict:
- python 3.5*
- xgboost 0.4.0*
如果有人能帮上忙,我将不胜感激。如何使用conda install安装包?
当我尝试使用以下命令conda install -c aterrel xgboost=0.4.0安装conda时,出现错误
UnsatisfiableError: The following specifications were found to be in conflict:
- python 3.5*
- xgboost 0.4.0*
Use "conda info <package>" to see the dependencies for each package.
conda info xbgoost给我的命令
NoPackagesFoundEr
安装xgboost库很痛苦,但现在Windows8.1 64位上发生了另一个错误
import xgboost as xgb
Traceback (most recent call last):
File "C:/Users/Пашка/PycharmProjects/kaggler bank santander/1.py", line 12, in <module>
import xgboost as xgb
File "C:\Python34\lib\site-packages\xgboost-0.4-py3.4.egg\xgboost