Closed vinhqdang closed 7 years ago
Hello
When I run the baseline code (xgb.py) I met the error
[10:26:08] Tree method is automatically selected to be 'approx' for faster speed. to use old behavior(exact greedy algorithm on single machine), set tree_method to 'exact' [0] train-rmse:0.692811 [1] train-rmse:0.54524 [2] train-rmse:0.455807 [3] train-rmse:0.404835 [4] train-rmse:0.377351 [5] train-rmse:0.363124 [6] train-rmse:0.355944 [7] train-rmse:0.352372 [8] train-rmse:0.350607 [9] train-rmse:0.349739 [10] train-rmse:0.349311 [11] train-rmse:0.349101 [12] train-rmse:0.348998 [13] train-rmse:0.348947 [14] train-rmse:0.348922 [15] train-rmse:0.348909 [16] train-rmse:0.348903 [17] train-rmse:0.3489 [18] train-rmse:0.348899 [19] train-rmse:0.348898 [20] train-rmse:0.348897 [21] train-rmse:0.348897 [22] train-rmse:0.348896 [23] train-rmse:0.348896 [24] train-rmse:0.348896 Traceback (most recent call last): File "xgb.py", line 71, in <module> target_users += [int(line.strip())] ValueError: invalid literal for int() with base 10: 'user_id'
Definitely I think the problem because there is a header line in targetUsers.csv (the content is "user_id").
Not sure if this line should be there.
Ignore the header in the target users file
Daniel
Hello
When I run the baseline code (xgb.py) I met the error