Ask Your Question
0

What are the reasons for slow inference performance in XGBoost's predict_proba function?

asked 2021-06-13 11:00:00 +0000

bukephalos gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-01-29 05:00:00 +0000

djk gravatar image

There are several reasons for slow inference performance in XGBoost's predict_proba function:

  1. Large number of features: If the dataset has a large number of features, then XGBoost's predict_proba function may take longer to compute the predictions. This is because the algorithm needs to evaluate the impact of each feature on the probability of each class.

  2. Large number of trees: If a large number of trees were used to train the model, then XGBoost's predict_proba function may take longer to compute because the algorithm needs to evaluate the probability of each class for each tree.

  3. Large dataset: If the dataset is large, then XGBoost's predict_proba function may take longer to compute because the algorithm needs to evaluate the probability of each class for each data point in the dataset.

  4. Skewed class distribution: If the dataset has a skewed class distribution, then XGBoost's predict_proba function may take longer to compute because the algorithm needs to evaluate the probability of each class for each data point, even if most of the data points belong to one class.

  5. Limited processing power: If the computer or server running XGBoost's predict_proba function has limited processing power or memory, then the function may run slowly.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-06-13 11:00:00 +0000

Seen: 15 times

Last updated: Jan 29 '22