@@ -1693,7 +1693,7 @@ def _training_task_definition(cls) -> str:
16931693 """A GCS path to the YAML file that defines the training task.
16941694
16951695 The definition files that can be used here are found in
1696- gs://google-cloud- aiplatform/schema/trainingjob/definition/.
1696+ gs://google-cloud-aiplatform/schema/trainingjob/definition/.
16971697 """
16981698 pass
16991699
@@ -1907,13 +1907,13 @@ def run(
19071907
19081908 if self ._is_waiting_to_run ():
19091909 raise RuntimeError (
1910- f"{ self .__class__ . _model_type } Forecasting Training is already "
1911- "scheduled to run."
1910+ f"{ self ._model_type } Forecasting Training is already scheduled "
1911+ "to run."
19121912 )
19131913
19141914 if self ._has_run :
19151915 raise RuntimeError (
1916- f"{ self .__class__ . _model_type } Forecasting Training has already run."
1916+ f"{ self ._model_type } Forecasting Training has already run."
19171917 )
19181918
19191919 if additional_experiments :
@@ -2218,7 +2218,7 @@ def _run(
22182218 )
22192219
22202220 new_model = self ._run_job (
2221- training_task_definition = self .__class__ . _training_task_definition ,
2221+ training_task_definition = self ._training_task_definition ,
22222222 training_task_inputs = training_task_inputs_dict ,
22232223 dataset = dataset ,
22242224 training_fraction_split = training_fraction_split ,
@@ -4961,8 +4961,10 @@ def evaluated_data_items_bigquery_uri(self) -> Optional[str]:
49614961
49624962class SequenceToSequencePlusForecastingTrainingJob (_ForecastingTrainingJob ):
49634963 _model_type = "Seq2Seq"
4964- _training_task_definition = schema .training_job .definition .seq2seq_forecasting
4965- _supported_training_schemas = (schema .training_job .definition .seq2seq_forecasting ,)
4964+ _training_task_definition = schema .training_job .definition .seq2seq_plus_forecasting
4965+ _supported_training_schemas = (
4966+ schema .training_job .definition .seq2seq_plus_forecasting ,
4967+ )
49664968
49674969 def __init__ (
49684970 self ,
0 commit comments