Skip to content

Commit

Permalink
[doc] Fix spark_estimator doc (dmlc#10066)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoralez authored Feb 23, 2024
1 parent 9f7b94c commit 729fd97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/tutorials/spark_estimator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ We can create a ``SparkXGBRegressor`` estimator like:
.. code-block:: python
from xgboost.spark import SparkXGBRegressor
spark_reg_estimator = SparkXGBRegressor(
xgb_regressor = SparkXGBRegressor(
features_col="features",
label_col="label",
num_workers=2,
Expand Down Expand Up @@ -61,7 +61,7 @@ type or spark array type.

.. code-block:: python
transformed_test_spark_dataframe = xgb_regressor.predict(test_spark_dataframe)
transformed_test_spark_dataframe = xgb_regressor_model.transform(test_spark_dataframe)
The above snippet code returns a ``transformed_test_spark_dataframe`` that contains the input
Expand Down

0 comments on commit 729fd97

Please sign in to comment.