Skip to content

Commit

Permalink
[doc] Variable 'label' is not defined in the pyspark application exam…
Browse files Browse the repository at this point in the history
…ple (#9302)
  • Loading branch information
georgeothon committed Jun 15, 2023
1 parent 0df1272 commit 2718ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/tutorials/spark_estimator.rst
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ using a list of feature names and the additional parameter ``use_gpu``:
label_name = "class"
# get a list with feature column names
feature_names = [x.name for x in train_df.schema if x.name != label]
feature_names = [x.name for x in train_df.schema if x.name != label_name]
# create a xgboost pyspark regressor estimator and set use_gpu=True
regressor = SparkXGBRegressor(
Expand Down

0 comments on commit 2718ff5

Please sign in to comment.