Skip to content

Commit 55c4b7b

Browse files
committed
Update ensemble.py
1 parent 42e91da commit 55c4b7b

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

verticapy/machine_learning/vertica/ensemble.py

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,6 @@ class XGBRegressor(Regressor, XGBoost):
686686
versioning. It's highly recommended to provide a name if you
687687
plan to reuse the model later.
688688
689-
690689
Model Training
691690
^^^^^^^^^^^^^^^
692691
@@ -738,8 +737,8 @@ class XGBRegressor(Regressor, XGBoost):
738737
739738
.. note::
740739
741-
In models such as ``XGB``, feature importance is calculated
742-
using the MDI (Mean Decreased Impurity). To determine the final score,
740+
In models such as ``XGBoost``, feature importance is calculated
741+
using the average gain of each tree. To determine the final score,
743742
VerticaPy sums the scores of each tree, normalizes them and applies an
744743
activation function to scale them.
745744
@@ -873,11 +872,11 @@ class XGBRegressor(Regressor, XGBoost):
873872
874873
.. important::
875874
876-
Machine learning models with two predictors can usually
877-
benefit from their own contour plot. This visual representation
878-
aids in exploring predictions and gaining a deeper understanding
879-
of how these models perform in different scenarios.
880-
Please refer to :ref:`chart_gallery.contour` for more examples.
875+
Machine learning models with two predictors can usually
876+
benefit from their own contour plot. This visual representation
877+
aids in exploring predictions and gaining a deeper understanding
878+
of how these models perform in different scenarios.
879+
Please refer to :ref:`chart_gallery.contour` for more examples.
881880
882881
Model Register
883882
^^^^^^^^^^^^^^
@@ -1469,8 +1468,8 @@ class XGBClassifier(MulticlassClassifier, XGBoost):
14691468
14701469
.. note::
14711470
1472-
In models such as ``XGB``, feature importance is calculated
1473-
using the MDI (Mean Decreased Impurity). To determine the final score,
1471+
In models such as ``XGBoost``, feature importance is calculated
1472+
using the average gain of each tree. To determine the final score,
14741473
VerticaPy sums the scores of each tree, normalizes them and applies an
14751474
activation function to scale them.
14761475
@@ -1519,7 +1518,6 @@ class XGBClassifier(MulticlassClassifier, XGBoost):
15191518
.. raw:: html
15201519
:file: SPHINX_DIRECTORY/figures/machine_learning_vertica_xgb_classifier_report_cutoff.html
15211520
1522-
15231521
You can also use the
15241522
:py:mod:`verticapy.machine_learning.vertica.ensemble.XGBClassifier.score`
15251523
function to compute any classification metric. The default metric is the accuracy:
@@ -1734,11 +1732,11 @@ class XGBClassifier(MulticlassClassifier, XGBoost):
17341732
17351733
.. important::
17361734
1737-
Machine learning models with two predictors can usually
1738-
benefit from their own contour plot. This visual representation
1739-
aids in exploring predictions and gaining a deeper understanding
1740-
of how these models perform in different scenarios.
1741-
Please refer to :ref:`chart_gallery.contour` for more examples.
1735+
Machine learning models with two predictors can usually
1736+
benefit from their own contour plot. This visual representation
1737+
aids in exploring predictions and gaining a deeper understanding
1738+
of how these models perform in different scenarios.
1739+
Please refer to :ref:`chart_gallery.contour` for more examples.
17421740
17431741
Parameter Modification
17441742
^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)