Skip to content

Commit

Permalink
Fix the (still hardcoded) value of 'algorithm' for ML jobs (#816)
Browse files Browse the repository at this point in the history
Eventually we will make this configurable with validation in the TF
schema but since there's only one algorithm right now this just fixes
the hardcoded value.
  • Loading branch information
sd2k authored Feb 9, 2023
1 parent 85173e7 commit b111d8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/resources/machinelearning/resource_job.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func makeMLJob(d *schema.ResourceData, meta interface{}) (mlapi.Job, error) {
DatasourceType: d.Get("datasource_type").(string),
QueryParams: d.Get("query_params").(map[string]interface{}),
Interval: uint(d.Get("interval").(int)),
Algorithm: "Prophet",
Algorithm: "grafana_prophet_1_0_1",
HyperParams: d.Get("hyper_params").(map[string]interface{}),
TrainingWindow: uint(d.Get("training_window").(int)),
TrainingFrequency: uint(24 * time.Hour / time.Second),
Expand Down

0 comments on commit b111d8a

Please sign in to comment.