aliyun / alibabacloud-odps-maxframe-client

Apache License 2.0
3 stars 1 forks source link

xgboost: predict_proba returns 1d array, not ndarray #29

Open ericpai opened 1 week ago

ericpai commented 1 week ago

test_data["preprob" + str(i)] = model.predict_proba(test_data[feature])[:, 1]

2024-06-26 15:28:44,736.736 [INFO] maxframe_spe.services.execution.executors - <string> - 10: Predicted data size: (169326, 60)
2024-06-26 15:28:44,787.787 [INFO] maxframe_spe.services.execution.executors - <string> - 13: Predict cost: 0.18 s
2024-06-26 15:28:44,789.789 [INFO] maxframe_spe.services.execution.executors - executors.py - 252: [20240626064649920g6j224lwmcr4][2ee4c18c-70db-46e4-8817-1254c07fe56f] run costs: 3.184
2024-06-26 15:28:44,789.789 [ERROR] maxframe_spe.services.execution.executors - executors.py - 392: Failed to run subdag 2ee4c18c-70db-46e4-8817-1254c07fe56f.
Traceback (most recent call last):
  File "/root/miniconda/envs/py3.7/lib/python3.7/site-packages/maxframe_spe/services/execution/executors.py", line 383, in done_cb
    runner_future.set_result(fut.result())
  File "/root/miniconda/envs/py3.7/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/root/miniconda/envs/py3.7/lib/python3.7/site-packages/maxframe_spe/services/execution/executors.py", line 211, in run
    exec(self._code, globals(), local_vars)
  File "<string>", line 17, in <module>
  File "/root/miniconda/envs/py3.7/lib/python3.7/site-packages/pandas/core/series.py", line 966, in __getitem__
    return self._get_with(key)
  File "/root/miniconda/envs/py3.7/lib/python3.7/site-packages/pandas/core/series.py", line 981, in _get_with
    return self._get_values_tuple(key)
  File "/root/miniconda/envs/py3.7/lib/python3.7/site-packages/pandas/core/series.py", line 1016, in _get_values_tuple
    raise KeyError("key of type tuple not found and not a MultiIndex")
KeyError: 'key of type tuple not found and not a MultiIndex'
2024-06-26 15:28:44,795.795 [INFO] tornado.access - web.py - 2275: 200 GET /api/subdags/2ee4c18c-70db-46e4-8817-1254c07fe56f?wait=1 (11.117.254.3) 2067.79ms
2024-06-26 15:29:20,285.285 [INFO] tornado.access - web.py - 2275: 204 DELETE /api/stop (11.117.250.52) 1.36ms