Wolfram Language
Paclet Repository
Community-contributed installable additions to the Wolfram Language
Primary Navigation
Categories
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
Create a Paclet
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`
X
g
b
T
r
a
i
n
X
g
b
T
r
a
i
n
[
p
y
t
h
o
n
_
s
e
s
s
i
o
n
,
{
d
a
t
a
_
a
r
r
a
y
l
a
b
e
l
_
a
r
r
a
y
}
]
T
h
e
m
i
n
i
m
u
m
u
s
a
g
e
o
f
X
g
b
T
r
a
i
n
w
i
t
h
o
n
l
y
t
r
a
i
n
i
n
g
i
n
p
u
t
o
f
t
h
e
f
o
r
m
a
t
{
d
a
t
a
_
a
r
r
a
y
-
>
l
a
b
e
l
_
a
r
r
a
y
}
,
a
n
d
a
n
a
c
t
i
v
e
e
x
t
e
r
n
a
l
X
G
B
o
o
s
t
p
y
t
h
o
n
s
e
s
s
i
o
n
,
i
.
e
.
,
E
x
t
e
r
n
a
l
S
e
s
s
i
o
n
O
b
j
e
c
t
[
]
.
X
g
b
T
r
a
i
n
[
]
r
e
t
u
r
n
s
t
h
e
e
v
a
l
u
a
t
i
o
n
s
e
s
s
i
o
n
c
o
n
t
a
i
n
i
n
g
t
h
e
t
r
a
i
n
e
d
m
o
d
e
l
.
X
g
b
T
r
a
i
n
[
p
y
t
h
o
n
_
s
e
s
s
i
o
n
,
{
d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
e
s
u
l
t
s
O
b
j
e
c
t
[
]
w
h
i
c
h
c
o
n
t
a
i
n
s
a
l
l
t
r
a
i
n
i
n
g
i
n
f
o
r
m
a
t
i
o
n
D
e
t
a
i
l
s
a
n
d
O
p
t
i
o
n
s
Examples
(
3
3
)
Basic Examples
(
7
)
Create Python Sessions
(
3
)
A XGBoost python session is
required
before using
X
g
b
T
r
a
i
n
[].
The following code creates the
xgb
python session with minimum required packages : xgboost, scikit-learn==1.5.2, and matplotlib.
I
n
[
1
]
:
=
[
◼
]
R
e
g
i
s
t
e
r
E
n
v
i
r
o
n
m
e
n
t
[
"
x
g
b
"
{
"
x
g
b
o
o
s
t
"
(
*
w
i
t
h
n
u
m
p
y
*
)
,
"
s
c
i
k
i
t
-
l
e
a
r
n
=
=
1
.
5
.
2
"
,
"
m
a
t
p
l
o
t
l
i
b
"
}
]
O
u
t
[
1
]
=
x
g
b
I
n
[
2
]
:
=
s
e
s
s
i
o
n
=
[
◼
]
S
t
a
r
t
E
n
v
i
r
o
n
m
e
n
t
[
"
x
g
b
"
]
;
Here we create the
xgb2
python session with additional shap package for generate SHAP values and plots.
I
n
[
1
]
:
=
[
◼
]
R
e
g
i
s
t
e
r
E
n
v
i
r
o
n
m
e
n
t
[
"
x
g
b
2
"
{
"
x
g
b
o
o
s
t
"
(
*
w
i
t
h
n
u
m
p
y
*
)
,
"
s
c
i
k
i
t
-
l
e
a
r
n
=
=
1
.
5
.
2
"
,
"
m
a
t
p
l
o
t
l
i
b
"
,
"
s
h
a
p
"
(
*
w
i
t
h
p
a
n
d
a
s
*
)
}
]
O
u
t
[
1
]
=
x
g
b
2
I
n
[
2
]
:
=
s
e
s
s
i
o
n
2
=
[
◼
]
S
t
a
r
t
E
n
v
i
r
o
n
m
e
n
t
[
"
x
g
b
2
"
]
The following code creates the
xgb0
python session without xgboost package.
I
n
[
1
]
:
=
[
◼
]
R
e
g
i
s
t
e
r
E
n
v
i
r
o
n
m
e
n
t
[
"
x
g
b
0
"
{
"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