QuestionQ61
Scaling and TuningA Data Scientist needs fine-grained forecasts of clients’ energy consumption by type (that is, residential, industry, commercial, and others) and location at the district level. The data scientist already has a scikit-learn model that was tested on a small data subset and wants to apply it for this fine-grained forecasting. They have a cluster with eight executors available to perform the work.
The existing function is named forecast_consumption, and the Spark DataFrame that contains historic data is named history_df; client_type is the client-type column and district_id is the district-ID column.
Which code block would correctly complete this task with the least effort while using all available resources?
- A

- B

- C

- D

Community Discussion