File tree Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change @@ -186,4 +186,45 @@ class FunctionInvocationError(ValueError):
186
186
pass
187
187
188
188
189
+ class InvalidTuningJobError (ValueError ):
190
+ """Raised when the tuning job is invalid."""
191
+
192
+ pass
193
+
194
+
195
+ class InvalidTuningJobNameError (ValueError ):
196
+ """Raised when the tuning job name is invalid."""
197
+
198
+ pass
199
+
200
+
201
+ class InvalidTuningJobStateError (ValueError ):
202
+ """Raised when the tuning job is in an invalid state."""
203
+
204
+ pass
205
+
206
+
207
+ class InvalidTuningJobExperimentError (ValueError ):
208
+ """Raised when the tuning job is not associated with an experiment."""
209
+
210
+ pass
211
+
212
+
213
+ class InvalidTuningJobExperimentNameError (ValueError ):
214
+ """Raised when the tuning job experiment name is invalid."""
215
+
216
+ pass
217
+
218
+
219
+ class InvalidTuningJobExperimentProjectError (ValueError ):
220
+ """Raised when the tuning job experiment project is invalid."""
221
+
222
+ pass
223
+
224
+
225
+ class InvalidTuningJobExperimentLocationError (ValueError ):
226
+ """Raised when the tuning job experiment location is invalid."""
227
+
228
+ pass
229
+
189
230
ExperimentalWarning = _common .ExperimentalWarning
Original file line number Diff line number Diff line change @@ -1038,6 +1038,10 @@ def get(
1038
1038
experiment = job .experiment ,
1039
1039
project = self ._api_client .project ,
1040
1040
)
1041
+ elif job .experiment and self ._api_client .vertexai and name is None :
1042
+ _IpythonUtils .display_model_tuning_button (tuning_job_resource = job .name )
1043
+ elif job .experiment and self ._api_client .vertexai and job is None :
1044
+ _IpythonUtils .display_model_tuning_button (tuning_job_resource = name )
1041
1045
return job
1042
1046
1043
1047
@_common .experimental_warning (
You can’t perform that action at this time.
0 commit comments