Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

XGBPaclet

Guides

  • XGBPaclet Guide

Tech Notes

  • XGBPaclet Functionality

Symbols

  • XgbModelPredict
  • XgbMeasurement
  • XgbMeasurement
  • XgbTrain
MikeYeh`XGBPaclet`
XgbMeasurement
​
XgbMeasurement[python_session,model_name_or_file_name,{datatarget}]
XgbMeasurement[] use the given xgboost session, and the given model name or the file_name for loading model to predict the test data and evaluate the Xgboost model. The test data must be of the format {data->target}
​
​
XgbMeasurement[python_session,{datatarget}]
XgbMeasurement[] use the given xgboost session to call the default "testmodel"to predict the test data and evaluate the Xgboost model. The test data must be of the format {data->target}
​
​
XgbMeasurement[python_session,model_name_or_file_name,{dataNone}]
gbMeasurement[] use the given xgboost session, and the given model name or the file_name for loading model to predict the data with no target labels provided, where the data is still in the format {data->None}.
​
Details and Options

Examples  
(14)
Basic Examples  
(6)
Create Python sessions  
(2)
A XGBoost python session is required before using XgbMeasurement[].
The following code creates the xgb python session with minimum required packages : xgboost, scikit-learn==1.5.2, and matplotlib.
In[1]:=
[◼]
RegisterEnvironment
["xgb"{"xgboost"(*withnumpy*),"scikit-learn==1.5.2","matplotlib"}]
Out[1]=
xgb
In[2]:=
session=
[◼]
StartEnvironment
["xgb"];
​
Here we create the xgb2 python session with additional shap package for generate SHAP values and plots.
In[1]:=
[◼]
RegisterEnvironment
["xgb2"{"xgboost"(*withnumpy*),"scikit-learn==1.5.2","matplotlib","shap"(*withpandas*)}]
Out[1]=
xgb2
In[2]:=
session2=
[◼]
StartEnvironment
["xgb2"]
Prepare datasets for examples  
(3)

The minimum usage  
(1)

Scope  
(5)

Applications  
(2)

Possible Issues  
(1)

SeeAlso
XgbTrain
TechNotes
▪
XGBPaclet Functionality
RelatedGuides
▪
XGBPaclet Guide
RelatedLinks
▪
Training section
▪
Learning API
▪
XGBoost Parameters
▪
Model IO
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com