About 1,460,000 results
Open links in new tab
  1. How to get feature importance in xgboost? - Stack Overflow

    Jun 4, 2016 · Furthermore, we can plot the importances with XGboost built-in function plot_importance(model, max_num_features = 15) pyplot.show() use max_num_features in …

  2. Cannot import xgboost in Jupyter notebook - Stack Overflow

    Jul 1, 2017 · Within Jupyter Notebook cell, try running: import sys !{sys.executable} -m pip install xgboost This allows the package to be installed with right on Jupyter notebook.

  3. 'super' object has no attribute '__sklearn_tags__'

    Dec 18, 2024 · I suspect it could be related to compatibility issues between Scikit-learn and XGBoost or Python version. I am using Python 3.12, and both Scikit-learn and XGBoost are …

  4. XGBOOST: sample_Weights vs scale_pos_weight - Stack Overflow

    Jan 3, 2018 · The sample_weight parameter allows you to specify a different weight for each training example. The scale_pos_weight parameter lets you provide a weight for an entire …

  5. The loss function and evaluation metric of XGBoost

    Nov 29, 2018 · I am confused now about the loss functions used in XGBoost. Here is how I feel confused: we have objective, which is the loss function needs to be minimized; eval_metric: …

  6. How to deal with overfitting of xgboost classifier?

    Jun 12, 2020 · I use xgboost to do a multi-class classification of spectrogram images (data link: automotive target classification). The class number is 5, training data includes 20000 samples …

  7. python - Feature importance 'gain' in XGBoost - Stack Overflow

    I wonder if xgboost also uses this approach using information gain or accuracy as stated in the citation above. I've tried to dig in the code of xgboost and found out this method (already cut …

  8. python - How is the feature score (/importance) in the XGBoost …

    Dec 11, 2015 · The command xgb.importance returns a graph of feature importance measured by an f score. What does this f score represent and how is it calculated? Output: Graph of feature …

  9. python - XGBoost CV and best iteration - Stack Overflow

    Nov 9, 2016 · I am using XGBoost cv to find the optimal number of rounds for my model. I would be very grateful if someone could confirm (or refute), the optimal number of rounds is: estop = …

  10. How to get CORRECT feature importance plot in XGBOOST?

    Nov 21, 2019 · There are 3 ways to get feature importance from Xgboost: use built-in feature importance (I prefer gain type), use permutation-based feature importance use SHAP values …

Refresh