kaggle 1.7.4.1__py3-none-any.whl → 1.7.4.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kaggle/api/kaggle_api.py +92 -79
- kaggle/api/kaggle_api_extended.py +909 -878
- kaggle/configuration.py +3 -3
- kaggle/models/dataset_column.py +58 -49
- kaggle/models/dataset_new_request.py +47 -31
- kaggle/models/dataset_new_version_request.py +56 -31
- kaggle/models/dataset_update_settings_request.py +58 -32
- kaggle/models/kernel_push_request.py +86 -51
- kaggle/models/model_instance_new_version_request.py +20 -12
- kaggle/models/model_instance_update_request.py +68 -37
- kaggle/models/model_new_instance_request.py +85 -47
- kaggle/models/model_new_request.py +26 -19
- kaggle/models/model_update_request.py +34 -23
- kaggle/models/start_blob_upload_request.py +60 -49
- kaggle/models/start_blob_upload_response.py +27 -22
- kaggle/models/upload_file.py +33 -31
- {kaggle-1.7.4.1.dist-info → kaggle-1.7.4.5.dist-info}/METADATA +1 -1
- {kaggle-1.7.4.1.dist-info → kaggle-1.7.4.5.dist-info}/RECORD +40 -31
- kagglesdk/__init__.py +1 -1
- kagglesdk/datasets/types/dataset_api_service.py +16 -0
- kagglesdk/kaggle_client.py +12 -0
- kagglesdk/kaggle_env.py +9 -11
- kagglesdk/kaggle_http_client.py +91 -56
- kagglesdk/kaggle_object.py +97 -42
- kagglesdk/kernels/types/kernels_api_service.py +24 -0
- kagglesdk/models/services/model_api_service.py +7 -6
- kagglesdk/models/types/model_api_service.py +31 -15
- kagglesdk/security/__init__.py +0 -0
- kagglesdk/security/services/__init__.py +0 -0
- kagglesdk/security/services/oauth_service.py +32 -0
- kagglesdk/security/types/__init__.py +0 -0
- kagglesdk/security/types/authentication.py +171 -0
- kagglesdk/security/types/oauth_service.py +394 -0
- kagglesdk/test/test_client.py +4 -6
- kagglesdk/users/services/__init__.py +0 -0
- kagglesdk/users/services/account_service.py +19 -0
- kagglesdk/users/types/account_service.py +204 -0
- {kaggle-1.7.4.1.dist-info → kaggle-1.7.4.5.dist-info}/WHEEL +0 -0
- {kaggle-1.7.4.1.dist-info → kaggle-1.7.4.5.dist-info}/entry_points.txt +0 -0
- {kaggle-1.7.4.1.dist-info → kaggle-1.7.4.5.dist-info}/licenses/LICENSE.txt +0 -0
|
@@ -87,11 +87,12 @@ class ModelInstanceUpdateRequest(object):
|
|
|
87
87
|
|
|
88
88
|
@property
|
|
89
89
|
def overview(self):
|
|
90
|
-
"""Gets the overview of this ModelInstanceUpdateRequest. # noqa: E501
|
|
90
|
+
"""Gets the overview of this ModelInstanceUpdateRequest. # noqa: E501.
|
|
91
91
|
|
|
92
92
|
The overview of the model instance (markdown) # noqa: E501
|
|
93
93
|
|
|
94
|
-
:return: The overview of this ModelInstanceUpdateRequest.
|
|
94
|
+
:return: The overview of this ModelInstanceUpdateRequest. #
|
|
95
|
+
noqa: E501
|
|
95
96
|
:rtype: str
|
|
96
97
|
"""
|
|
97
98
|
return self._overview
|
|
@@ -102,7 +103,8 @@ class ModelInstanceUpdateRequest(object):
|
|
|
102
103
|
|
|
103
104
|
The overview of the model instance (markdown) # noqa: E501
|
|
104
105
|
|
|
105
|
-
:param overview: The overview of this
|
|
106
|
+
:param overview: The overview of this
|
|
107
|
+
ModelInstanceUpdateRequest. # noqa: E501
|
|
106
108
|
:type: str
|
|
107
109
|
"""
|
|
108
110
|
|
|
@@ -110,11 +112,13 @@ class ModelInstanceUpdateRequest(object):
|
|
|
110
112
|
|
|
111
113
|
@property
|
|
112
114
|
def usage(self):
|
|
113
|
-
"""Gets the usage of this ModelInstanceUpdateRequest. # noqa: E501
|
|
115
|
+
"""Gets the usage of this ModelInstanceUpdateRequest. # noqa: E501.
|
|
114
116
|
|
|
115
|
-
The description of how to use the model instance (markdown) #
|
|
117
|
+
The description of how to use the model instance (markdown) #
|
|
118
|
+
noqa: E501
|
|
116
119
|
|
|
117
|
-
:return: The usage of this ModelInstanceUpdateRequest.
|
|
120
|
+
:return: The usage of this ModelInstanceUpdateRequest. # noqa:
|
|
121
|
+
E501
|
|
118
122
|
:rtype: str
|
|
119
123
|
"""
|
|
120
124
|
return self._usage
|
|
@@ -123,9 +127,11 @@ class ModelInstanceUpdateRequest(object):
|
|
|
123
127
|
def usage(self, usage):
|
|
124
128
|
"""Sets the usage of this ModelInstanceUpdateRequest.
|
|
125
129
|
|
|
126
|
-
The description of how to use the model instance (markdown) #
|
|
130
|
+
The description of how to use the model instance (markdown) #
|
|
131
|
+
noqa: E501
|
|
127
132
|
|
|
128
|
-
:param usage: The usage of this ModelInstanceUpdateRequest.
|
|
133
|
+
:param usage: The usage of this ModelInstanceUpdateRequest. #
|
|
134
|
+
noqa: E501
|
|
129
135
|
:type: str
|
|
130
136
|
"""
|
|
131
137
|
|
|
@@ -133,11 +139,14 @@ class ModelInstanceUpdateRequest(object):
|
|
|
133
139
|
|
|
134
140
|
@property
|
|
135
141
|
def license_name(self):
|
|
136
|
-
"""Gets the license_name of this ModelInstanceUpdateRequest. # noqa:
|
|
142
|
+
"""Gets the license_name of this ModelInstanceUpdateRequest. # noqa:
|
|
143
|
+
E501.
|
|
137
144
|
|
|
138
|
-
The license that should be associated with the model instance #
|
|
145
|
+
The license that should be associated with the model instance #
|
|
146
|
+
noqa: E501
|
|
139
147
|
|
|
140
|
-
:return: The license_name of this ModelInstanceUpdateRequest.
|
|
148
|
+
:return: The license_name of this ModelInstanceUpdateRequest. #
|
|
149
|
+
noqa: E501
|
|
141
150
|
:rtype: str
|
|
142
151
|
"""
|
|
143
152
|
return self._license_name
|
|
@@ -146,9 +155,11 @@ class ModelInstanceUpdateRequest(object):
|
|
|
146
155
|
def license_name(self, license_name):
|
|
147
156
|
"""Sets the license_name of this ModelInstanceUpdateRequest.
|
|
148
157
|
|
|
149
|
-
The license that should be associated with the model instance #
|
|
158
|
+
The license that should be associated with the model instance #
|
|
159
|
+
noqa: E501
|
|
150
160
|
|
|
151
|
-
:param license_name: The license_name of this
|
|
161
|
+
:param license_name: The license_name of this
|
|
162
|
+
ModelInstanceUpdateRequest. # noqa: E501
|
|
152
163
|
:type: str
|
|
153
164
|
"""
|
|
154
165
|
allowed_values = ["CC0 1.0", "CC BY-NC-SA 4.0", "Unknown", "CC BY-SA 4.0", "GPL 2", "CC BY-SA 3.0", "Other", "Other (specified in description)", "CC BY 4.0", "Attribution 4.0 International (CC BY 4.0)", "CC BY-NC 4.0", "Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)", "PDDL", "ODC Public Domain Dedication and Licence (PDDL)", "CC BY 3.0", "Attribution 3.0 Unported (CC BY 3.0)", "CC BY 3.0 IGO", "Attribution 3.0 IGO (CC BY 3.0 IGO)", "CC BY-NC-SA 3.0 IGO", "Attribution-NonCommercial-ShareAlike 3.0 IGO (CC BY-NC-SA 3.0 IGO)", "CDLA Permissive 1.0", "Community Data License Agreement - Permissive - Version 1.0", "CDLA Sharing 1.0", "Community Data License Agreement - Sharing - Version 1.0", "CC BY-ND 4.0", "Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0)", "CC BY-NC-ND 4.0", "Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)", "ODC-BY 1.0", "ODC Attribution License (ODC-By)", "LGPL 3.0", "GNU Lesser General Public License 3.0", "AGPL 3.0", "GNU Affero General Public License 3.0", "FDL 1.3", "GNU Free Documentation License 1.3", "apache-2.0", "Apache 2.0", "mit", "MIT", "bsd-3-clause", "BSD-3-Clause", "Llama 2", "Llama 2 Community License", "Gemma", "gpl-3", "GPL 3", "RAIL-M", "AI Pubs Open RAIL-M License", "AIPubs Research-Use RAIL-M", "AI Pubs Research-Use RAIL-M License", "BigScience OpenRAIL-M", "BigScience Open RAIL-M License", "RAIL", "RAIL (specified in description)", "Llama 3", "Llama 3 Community License"] # noqa: E501
|
|
@@ -162,11 +173,13 @@ class ModelInstanceUpdateRequest(object):
|
|
|
162
173
|
|
|
163
174
|
@property
|
|
164
175
|
def fine_tunable(self):
|
|
165
|
-
"""Gets the fine_tunable of this ModelInstanceUpdateRequest. # noqa:
|
|
176
|
+
"""Gets the fine_tunable of this ModelInstanceUpdateRequest. # noqa:
|
|
177
|
+
E501.
|
|
166
178
|
|
|
167
179
|
Whether the model instance is fine tunable # noqa: E501
|
|
168
180
|
|
|
169
|
-
:return: The fine_tunable of this ModelInstanceUpdateRequest.
|
|
181
|
+
:return: The fine_tunable of this ModelInstanceUpdateRequest. #
|
|
182
|
+
noqa: E501
|
|
170
183
|
:rtype: bool
|
|
171
184
|
"""
|
|
172
185
|
return self._fine_tunable
|
|
@@ -177,7 +190,8 @@ class ModelInstanceUpdateRequest(object):
|
|
|
177
190
|
|
|
178
191
|
Whether the model instance is fine tunable # noqa: E501
|
|
179
192
|
|
|
180
|
-
:param fine_tunable: The fine_tunable of this
|
|
193
|
+
:param fine_tunable: The fine_tunable of this
|
|
194
|
+
ModelInstanceUpdateRequest. # noqa: E501
|
|
181
195
|
:type: bool
|
|
182
196
|
"""
|
|
183
197
|
|
|
@@ -185,11 +199,13 @@ class ModelInstanceUpdateRequest(object):
|
|
|
185
199
|
|
|
186
200
|
@property
|
|
187
201
|
def training_data(self):
|
|
188
|
-
"""Gets the training_data of this ModelInstanceUpdateRequest. # noqa:
|
|
202
|
+
"""Gets the training_data of this ModelInstanceUpdateRequest. # noqa:
|
|
203
|
+
E501.
|
|
189
204
|
|
|
190
205
|
A list of training data (urls or names) # noqa: E501
|
|
191
206
|
|
|
192
|
-
:return: The training_data of this ModelInstanceUpdateRequest.
|
|
207
|
+
:return: The training_data of this ModelInstanceUpdateRequest. #
|
|
208
|
+
noqa: E501
|
|
193
209
|
:rtype: list[str]
|
|
194
210
|
"""
|
|
195
211
|
return self._training_data
|
|
@@ -200,7 +216,8 @@ class ModelInstanceUpdateRequest(object):
|
|
|
200
216
|
|
|
201
217
|
A list of training data (urls or names) # noqa: E501
|
|
202
218
|
|
|
203
|
-
:param training_data: The training_data of this
|
|
219
|
+
:param training_data: The training_data of this
|
|
220
|
+
ModelInstanceUpdateRequest. # noqa: E501
|
|
204
221
|
:type: list[str]
|
|
205
222
|
"""
|
|
206
223
|
|
|
@@ -208,11 +225,14 @@ class ModelInstanceUpdateRequest(object):
|
|
|
208
225
|
|
|
209
226
|
@property
|
|
210
227
|
def model_instance_type(self):
|
|
211
|
-
"""Gets the model_instance_type of this ModelInstanceUpdateRequest. #
|
|
228
|
+
"""Gets the model_instance_type of this ModelInstanceUpdateRequest. #
|
|
229
|
+
noqa: E501.
|
|
212
230
|
|
|
213
|
-
Whether the model instance is a base model, external variant,
|
|
231
|
+
Whether the model instance is a base model, external variant,
|
|
232
|
+
internal variant, or unspecified # noqa: E501
|
|
214
233
|
|
|
215
|
-
:return: The model_instance_type of this
|
|
234
|
+
:return: The model_instance_type of this
|
|
235
|
+
ModelInstanceUpdateRequest. # noqa: E501
|
|
216
236
|
:rtype: str
|
|
217
237
|
"""
|
|
218
238
|
return self._model_instance_type
|
|
@@ -221,9 +241,11 @@ class ModelInstanceUpdateRequest(object):
|
|
|
221
241
|
def model_instance_type(self, model_instance_type):
|
|
222
242
|
"""Sets the model_instance_type of this ModelInstanceUpdateRequest.
|
|
223
243
|
|
|
224
|
-
Whether the model instance is a base model, external variant,
|
|
244
|
+
Whether the model instance is a base model, external variant,
|
|
245
|
+
internal variant, or unspecified # noqa: E501
|
|
225
246
|
|
|
226
|
-
:param model_instance_type: The model_instance_type of this
|
|
247
|
+
:param model_instance_type: The model_instance_type of this
|
|
248
|
+
ModelInstanceUpdateRequest. # noqa: E501
|
|
227
249
|
:type: str
|
|
228
250
|
"""
|
|
229
251
|
allowed_values = ["Unspecified", "BaseModel", "KaggleVariant", "ExternalVariant"] # noqa: E501
|
|
@@ -237,7 +259,8 @@ class ModelInstanceUpdateRequest(object):
|
|
|
237
259
|
|
|
238
260
|
@property
|
|
239
261
|
def base_model_instance(self):
|
|
240
|
-
"""Gets the base_model_instance of this ModelInstanceUpdateRequest. #
|
|
262
|
+
"""Gets the base_model_instance of this ModelInstanceUpdateRequest. #
|
|
263
|
+
noqa: E501.
|
|
241
264
|
|
|
242
265
|
If this is an internal variant, the `{owner-slug}/{model-slug}/{framework}/{instance-slug}` of the base model instance # noqa: E501
|
|
243
266
|
|
|
@@ -260,11 +283,14 @@ class ModelInstanceUpdateRequest(object):
|
|
|
260
283
|
|
|
261
284
|
@property
|
|
262
285
|
def external_base_model_url(self):
|
|
263
|
-
"""Gets the external_base_model_url of this ModelInstanceUpdateRequest.
|
|
286
|
+
"""Gets the external_base_model_url of this ModelInstanceUpdateRequest.
|
|
287
|
+
# noqa: E501.
|
|
264
288
|
|
|
265
|
-
If this is an external variant, a URL to the base model # noqa:
|
|
289
|
+
If this is an external variant, a URL to the base model # noqa:
|
|
290
|
+
E501
|
|
266
291
|
|
|
267
|
-
:return: The external_base_model_url of this
|
|
292
|
+
:return: The external_base_model_url of this
|
|
293
|
+
ModelInstanceUpdateRequest. # noqa: E501
|
|
268
294
|
:rtype: int
|
|
269
295
|
"""
|
|
270
296
|
return self._external_base_model_url
|
|
@@ -273,9 +299,11 @@ class ModelInstanceUpdateRequest(object):
|
|
|
273
299
|
def external_base_model_url(self, external_base_model_url):
|
|
274
300
|
"""Sets the external_base_model_url of this ModelInstanceUpdateRequest.
|
|
275
301
|
|
|
276
|
-
If this is an external variant, a URL to the base model # noqa:
|
|
302
|
+
If this is an external variant, a URL to the base model # noqa:
|
|
303
|
+
E501
|
|
277
304
|
|
|
278
|
-
:param external_base_model_url: The external_base_model_url of
|
|
305
|
+
:param external_base_model_url: The external_base_model_url of
|
|
306
|
+
this ModelInstanceUpdateRequest. # noqa: E501
|
|
279
307
|
:type: int
|
|
280
308
|
"""
|
|
281
309
|
|
|
@@ -283,11 +311,13 @@ class ModelInstanceUpdateRequest(object):
|
|
|
283
311
|
|
|
284
312
|
@property
|
|
285
313
|
def update_mask(self):
|
|
286
|
-
"""Gets the update_mask of this ModelInstanceUpdateRequest. # noqa:
|
|
314
|
+
"""Gets the update_mask of this ModelInstanceUpdateRequest. # noqa:
|
|
315
|
+
E501.
|
|
287
316
|
|
|
288
317
|
Describes which fields to update # noqa: E501
|
|
289
318
|
|
|
290
|
-
:return: The update_mask of this ModelInstanceUpdateRequest.
|
|
319
|
+
:return: The update_mask of this ModelInstanceUpdateRequest. #
|
|
320
|
+
noqa: E501
|
|
291
321
|
:rtype: str
|
|
292
322
|
"""
|
|
293
323
|
return self._update_mask
|
|
@@ -298,7 +328,8 @@ class ModelInstanceUpdateRequest(object):
|
|
|
298
328
|
|
|
299
329
|
Describes which fields to update # noqa: E501
|
|
300
330
|
|
|
301
|
-
:param update_mask: The update_mask of this
|
|
331
|
+
:param update_mask: The update_mask of this
|
|
332
|
+
ModelInstanceUpdateRequest. # noqa: E501
|
|
302
333
|
:type: str
|
|
303
334
|
"""
|
|
304
335
|
if update_mask is None:
|
|
@@ -307,7 +338,7 @@ class ModelInstanceUpdateRequest(object):
|
|
|
307
338
|
self._update_mask = update_mask
|
|
308
339
|
|
|
309
340
|
def to_dict(self):
|
|
310
|
-
"""Returns the model properties as a dict"""
|
|
341
|
+
"""Returns the model properties as a dict."""
|
|
311
342
|
result = {}
|
|
312
343
|
|
|
313
344
|
for attr, _ in six.iteritems(self.project_types):
|
|
@@ -331,7 +362,7 @@ class ModelInstanceUpdateRequest(object):
|
|
|
331
362
|
return result
|
|
332
363
|
|
|
333
364
|
def to_str(self):
|
|
334
|
-
"""Returns the string representation of the model"""
|
|
365
|
+
"""Returns the string representation of the model."""
|
|
335
366
|
return pprint.pformat(self.to_dict())
|
|
336
367
|
|
|
337
368
|
def __repr__(self):
|
|
@@ -339,13 +370,13 @@ class ModelInstanceUpdateRequest(object):
|
|
|
339
370
|
return self.to_str()
|
|
340
371
|
|
|
341
372
|
def __eq__(self, other):
|
|
342
|
-
"""Returns true if both objects are equal"""
|
|
373
|
+
"""Returns true if both objects are equal."""
|
|
343
374
|
if not isinstance(other, ModelInstanceUpdateRequest):
|
|
344
375
|
return False
|
|
345
376
|
|
|
346
377
|
return self.__dict__ == other.__dict__
|
|
347
378
|
|
|
348
379
|
def __ne__(self, other):
|
|
349
|
-
"""Returns true if both objects are not equal"""
|
|
380
|
+
"""Returns true if both objects are not equal."""
|
|
350
381
|
return not self == other
|
|
351
382
|
|
|
@@ -97,11 +97,14 @@ class ModelNewInstanceRequest(object):
|
|
|
97
97
|
|
|
98
98
|
@property
|
|
99
99
|
def instance_slug(self):
|
|
100
|
-
"""Gets the instance_slug of this ModelNewInstanceRequest. # noqa:
|
|
100
|
+
"""Gets the instance_slug of this ModelNewInstanceRequest. # noqa:
|
|
101
|
+
E501.
|
|
101
102
|
|
|
102
|
-
The slug that the model instance should be created with # noqa:
|
|
103
|
+
The slug that the model instance should be created with # noqa:
|
|
104
|
+
E501
|
|
103
105
|
|
|
104
|
-
:return: The instance_slug of this ModelNewInstanceRequest.
|
|
106
|
+
:return: The instance_slug of this ModelNewInstanceRequest. #
|
|
107
|
+
noqa: E501
|
|
105
108
|
:rtype: str
|
|
106
109
|
"""
|
|
107
110
|
return self._instance_slug
|
|
@@ -110,9 +113,11 @@ class ModelNewInstanceRequest(object):
|
|
|
110
113
|
def instance_slug(self, instance_slug):
|
|
111
114
|
"""Sets the instance_slug of this ModelNewInstanceRequest.
|
|
112
115
|
|
|
113
|
-
The slug that the model instance should be created with # noqa:
|
|
116
|
+
The slug that the model instance should be created with # noqa:
|
|
117
|
+
E501
|
|
114
118
|
|
|
115
|
-
:param instance_slug: The instance_slug of this
|
|
119
|
+
:param instance_slug: The instance_slug of this
|
|
120
|
+
ModelNewInstanceRequest. # noqa: E501
|
|
116
121
|
:type: str
|
|
117
122
|
"""
|
|
118
123
|
if instance_slug is None:
|
|
@@ -122,11 +127,12 @@ class ModelNewInstanceRequest(object):
|
|
|
122
127
|
|
|
123
128
|
@property
|
|
124
129
|
def framework(self):
|
|
125
|
-
"""Gets the framework of this ModelNewInstanceRequest. # noqa: E501
|
|
130
|
+
"""Gets the framework of this ModelNewInstanceRequest. # noqa: E501.
|
|
126
131
|
|
|
127
132
|
The framework of the model instance # noqa: E501
|
|
128
133
|
|
|
129
|
-
:return: The framework of this ModelNewInstanceRequest.
|
|
134
|
+
:return: The framework of this ModelNewInstanceRequest. # noqa:
|
|
135
|
+
E501
|
|
130
136
|
:rtype: str
|
|
131
137
|
"""
|
|
132
138
|
return self._framework
|
|
@@ -137,7 +143,8 @@ class ModelNewInstanceRequest(object):
|
|
|
137
143
|
|
|
138
144
|
The framework of the model instance # noqa: E501
|
|
139
145
|
|
|
140
|
-
:param framework: The framework of this ModelNewInstanceRequest.
|
|
146
|
+
:param framework: The framework of this ModelNewInstanceRequest.
|
|
147
|
+
# noqa: E501
|
|
141
148
|
:type: str
|
|
142
149
|
"""
|
|
143
150
|
if framework is None:
|
|
@@ -153,11 +160,12 @@ class ModelNewInstanceRequest(object):
|
|
|
153
160
|
|
|
154
161
|
@property
|
|
155
162
|
def overview(self):
|
|
156
|
-
"""Gets the overview of this ModelNewInstanceRequest. # noqa: E501
|
|
163
|
+
"""Gets the overview of this ModelNewInstanceRequest. # noqa: E501.
|
|
157
164
|
|
|
158
165
|
The overview of the model instance (markdown) # noqa: E501
|
|
159
166
|
|
|
160
|
-
:return: The overview of this ModelNewInstanceRequest.
|
|
167
|
+
:return: The overview of this ModelNewInstanceRequest. # noqa:
|
|
168
|
+
E501
|
|
161
169
|
:rtype: str
|
|
162
170
|
"""
|
|
163
171
|
return self._overview
|
|
@@ -168,7 +176,8 @@ class ModelNewInstanceRequest(object):
|
|
|
168
176
|
|
|
169
177
|
The overview of the model instance (markdown) # noqa: E501
|
|
170
178
|
|
|
171
|
-
:param overview: The overview of this ModelNewInstanceRequest.
|
|
179
|
+
:param overview: The overview of this ModelNewInstanceRequest. #
|
|
180
|
+
noqa: E501
|
|
172
181
|
:type: str
|
|
173
182
|
"""
|
|
174
183
|
|
|
@@ -176,11 +185,13 @@ class ModelNewInstanceRequest(object):
|
|
|
176
185
|
|
|
177
186
|
@property
|
|
178
187
|
def usage(self):
|
|
179
|
-
"""Gets the usage of this ModelNewInstanceRequest. # noqa: E501
|
|
188
|
+
"""Gets the usage of this ModelNewInstanceRequest. # noqa: E501.
|
|
180
189
|
|
|
181
|
-
The description of how to use the model instance (markdown) #
|
|
190
|
+
The description of how to use the model instance (markdown) #
|
|
191
|
+
noqa: E501
|
|
182
192
|
|
|
183
|
-
:return: The usage of this ModelNewInstanceRequest.
|
|
193
|
+
:return: The usage of this ModelNewInstanceRequest. # noqa:
|
|
194
|
+
E501
|
|
184
195
|
:rtype: str
|
|
185
196
|
"""
|
|
186
197
|
return self._usage
|
|
@@ -189,9 +200,11 @@ class ModelNewInstanceRequest(object):
|
|
|
189
200
|
def usage(self, usage):
|
|
190
201
|
"""Sets the usage of this ModelNewInstanceRequest.
|
|
191
202
|
|
|
192
|
-
The description of how to use the model instance (markdown) #
|
|
203
|
+
The description of how to use the model instance (markdown) #
|
|
204
|
+
noqa: E501
|
|
193
205
|
|
|
194
|
-
:param usage: The usage of this ModelNewInstanceRequest.
|
|
206
|
+
:param usage: The usage of this ModelNewInstanceRequest. #
|
|
207
|
+
noqa: E501
|
|
195
208
|
:type: str
|
|
196
209
|
"""
|
|
197
210
|
|
|
@@ -199,11 +212,14 @@ class ModelNewInstanceRequest(object):
|
|
|
199
212
|
|
|
200
213
|
@property
|
|
201
214
|
def license_name(self):
|
|
202
|
-
"""Gets the license_name of this ModelNewInstanceRequest. # noqa:
|
|
215
|
+
"""Gets the license_name of this ModelNewInstanceRequest. # noqa:
|
|
216
|
+
E501.
|
|
203
217
|
|
|
204
|
-
The license that should be associated with the model instance #
|
|
218
|
+
The license that should be associated with the model instance #
|
|
219
|
+
noqa: E501
|
|
205
220
|
|
|
206
|
-
:return: The license_name of this ModelNewInstanceRequest.
|
|
221
|
+
:return: The license_name of this ModelNewInstanceRequest. #
|
|
222
|
+
noqa: E501
|
|
207
223
|
:rtype: str
|
|
208
224
|
"""
|
|
209
225
|
return self._license_name
|
|
@@ -212,9 +228,11 @@ class ModelNewInstanceRequest(object):
|
|
|
212
228
|
def license_name(self, license_name):
|
|
213
229
|
"""Sets the license_name of this ModelNewInstanceRequest.
|
|
214
230
|
|
|
215
|
-
The license that should be associated with the model instance #
|
|
231
|
+
The license that should be associated with the model instance #
|
|
232
|
+
noqa: E501
|
|
216
233
|
|
|
217
|
-
:param license_name: The license_name of this
|
|
234
|
+
:param license_name: The license_name of this
|
|
235
|
+
ModelNewInstanceRequest. # noqa: E501
|
|
218
236
|
:type: str
|
|
219
237
|
"""
|
|
220
238
|
if license_name is None:
|
|
@@ -230,11 +248,13 @@ class ModelNewInstanceRequest(object):
|
|
|
230
248
|
|
|
231
249
|
@property
|
|
232
250
|
def fine_tunable(self):
|
|
233
|
-
"""Gets the fine_tunable of this ModelNewInstanceRequest. # noqa:
|
|
251
|
+
"""Gets the fine_tunable of this ModelNewInstanceRequest. # noqa:
|
|
252
|
+
E501.
|
|
234
253
|
|
|
235
254
|
Whether the model instance is fine tunable # noqa: E501
|
|
236
255
|
|
|
237
|
-
:return: The fine_tunable of this ModelNewInstanceRequest.
|
|
256
|
+
:return: The fine_tunable of this ModelNewInstanceRequest. #
|
|
257
|
+
noqa: E501
|
|
238
258
|
:rtype: bool
|
|
239
259
|
"""
|
|
240
260
|
return self._fine_tunable
|
|
@@ -245,7 +265,8 @@ class ModelNewInstanceRequest(object):
|
|
|
245
265
|
|
|
246
266
|
Whether the model instance is fine tunable # noqa: E501
|
|
247
267
|
|
|
248
|
-
:param fine_tunable: The fine_tunable of this
|
|
268
|
+
:param fine_tunable: The fine_tunable of this
|
|
269
|
+
ModelNewInstanceRequest. # noqa: E501
|
|
249
270
|
:type: bool
|
|
250
271
|
"""
|
|
251
272
|
|
|
@@ -253,11 +274,13 @@ class ModelNewInstanceRequest(object):
|
|
|
253
274
|
|
|
254
275
|
@property
|
|
255
276
|
def training_data(self):
|
|
256
|
-
"""Gets the training_data of this ModelNewInstanceRequest. # noqa:
|
|
277
|
+
"""Gets the training_data of this ModelNewInstanceRequest. # noqa:
|
|
278
|
+
E501.
|
|
257
279
|
|
|
258
280
|
A list of training data (urls or names) # noqa: E501
|
|
259
281
|
|
|
260
|
-
:return: The training_data of this ModelNewInstanceRequest.
|
|
282
|
+
:return: The training_data of this ModelNewInstanceRequest. #
|
|
283
|
+
noqa: E501
|
|
261
284
|
:rtype: list[str]
|
|
262
285
|
"""
|
|
263
286
|
return self._training_data
|
|
@@ -268,7 +291,8 @@ class ModelNewInstanceRequest(object):
|
|
|
268
291
|
|
|
269
292
|
A list of training data (urls or names) # noqa: E501
|
|
270
293
|
|
|
271
|
-
:param training_data: The training_data of this
|
|
294
|
+
:param training_data: The training_data of this
|
|
295
|
+
ModelNewInstanceRequest. # noqa: E501
|
|
272
296
|
:type: list[str]
|
|
273
297
|
"""
|
|
274
298
|
|
|
@@ -276,11 +300,14 @@ class ModelNewInstanceRequest(object):
|
|
|
276
300
|
|
|
277
301
|
@property
|
|
278
302
|
def model_instance_type(self):
|
|
279
|
-
"""Gets the model_instance_type of this ModelNewInstanceRequest. #
|
|
303
|
+
"""Gets the model_instance_type of this ModelNewInstanceRequest. #
|
|
304
|
+
noqa: E501.
|
|
280
305
|
|
|
281
|
-
Whether the model instance is a base model, external variant,
|
|
306
|
+
Whether the model instance is a base model, external variant,
|
|
307
|
+
internal variant, or unspecified # noqa: E501
|
|
282
308
|
|
|
283
|
-
:return: The model_instance_type of this
|
|
309
|
+
:return: The model_instance_type of this
|
|
310
|
+
ModelNewInstanceRequest. # noqa: E501
|
|
284
311
|
:rtype: str
|
|
285
312
|
"""
|
|
286
313
|
return self._model_instance_type
|
|
@@ -289,9 +316,11 @@ class ModelNewInstanceRequest(object):
|
|
|
289
316
|
def model_instance_type(self, model_instance_type):
|
|
290
317
|
"""Sets the model_instance_type of this ModelNewInstanceRequest.
|
|
291
318
|
|
|
292
|
-
Whether the model instance is a base model, external variant,
|
|
319
|
+
Whether the model instance is a base model, external variant,
|
|
320
|
+
internal variant, or unspecified # noqa: E501
|
|
293
321
|
|
|
294
|
-
:param model_instance_type: The model_instance_type of this
|
|
322
|
+
:param model_instance_type: The model_instance_type of this
|
|
323
|
+
ModelNewInstanceRequest. # noqa: E501
|
|
295
324
|
:type: str
|
|
296
325
|
"""
|
|
297
326
|
allowed_values = ["Unspecified", "BaseModel", "KaggleVariant", "ExternalVariant"] # noqa: E501
|
|
@@ -305,7 +334,8 @@ class ModelNewInstanceRequest(object):
|
|
|
305
334
|
|
|
306
335
|
@property
|
|
307
336
|
def base_model_instance(self):
|
|
308
|
-
"""Gets the base_model_instance of this ModelNewInstanceRequest. #
|
|
337
|
+
"""Gets the base_model_instance of this ModelNewInstanceRequest. #
|
|
338
|
+
noqa: E501.
|
|
309
339
|
|
|
310
340
|
If this is an internal variant, the `{owner-slug}/{model-slug}/{framework}/{instance-slug}` of the base model instance # noqa: E501
|
|
311
341
|
|
|
@@ -328,11 +358,14 @@ class ModelNewInstanceRequest(object):
|
|
|
328
358
|
|
|
329
359
|
@property
|
|
330
360
|
def external_base_model_url(self):
|
|
331
|
-
"""Gets the external_base_model_url of this ModelNewInstanceRequest. #
|
|
361
|
+
"""Gets the external_base_model_url of this ModelNewInstanceRequest. #
|
|
362
|
+
noqa: E501.
|
|
332
363
|
|
|
333
|
-
If this is an external variant, a URL to the base model # noqa:
|
|
364
|
+
If this is an external variant, a URL to the base model # noqa:
|
|
365
|
+
E501
|
|
334
366
|
|
|
335
|
-
:return: The external_base_model_url of this
|
|
367
|
+
:return: The external_base_model_url of this
|
|
368
|
+
ModelNewInstanceRequest. # noqa: E501
|
|
336
369
|
:rtype: int
|
|
337
370
|
"""
|
|
338
371
|
return self._external_base_model_url
|
|
@@ -341,9 +374,11 @@ class ModelNewInstanceRequest(object):
|
|
|
341
374
|
def external_base_model_url(self, external_base_model_url):
|
|
342
375
|
"""Sets the external_base_model_url of this ModelNewInstanceRequest.
|
|
343
376
|
|
|
344
|
-
If this is an external variant, a URL to the base model # noqa:
|
|
377
|
+
If this is an external variant, a URL to the base model # noqa:
|
|
378
|
+
E501
|
|
345
379
|
|
|
346
|
-
:param external_base_model_url: The external_base_model_url of
|
|
380
|
+
:param external_base_model_url: The external_base_model_url of
|
|
381
|
+
this ModelNewInstanceRequest. # noqa: E501
|
|
347
382
|
:type: int
|
|
348
383
|
"""
|
|
349
384
|
|
|
@@ -351,11 +386,12 @@ class ModelNewInstanceRequest(object):
|
|
|
351
386
|
|
|
352
387
|
@property
|
|
353
388
|
def files(self):
|
|
354
|
-
"""Gets the files of this ModelNewInstanceRequest. # noqa: E501
|
|
389
|
+
"""Gets the files of this ModelNewInstanceRequest. # noqa: E501.
|
|
355
390
|
|
|
356
|
-
A list of files that should be associated with the model
|
|
391
|
+
A list of files that should be associated with the model
|
|
392
|
+
instance version # noqa: E501
|
|
357
393
|
|
|
358
|
-
:return: The files of this ModelNewInstanceRequest.
|
|
394
|
+
:return: The files of this ModelNewInstanceRequest. # noqa: E501
|
|
359
395
|
:rtype: list[UploadFile]
|
|
360
396
|
"""
|
|
361
397
|
return self._files
|
|
@@ -364,16 +400,18 @@ class ModelNewInstanceRequest(object):
|
|
|
364
400
|
def files(self, files):
|
|
365
401
|
"""Sets the files of this ModelNewInstanceRequest.
|
|
366
402
|
|
|
367
|
-
A list of files that should be associated with the model
|
|
403
|
+
A list of files that should be associated with the model
|
|
404
|
+
instance version # noqa: E501
|
|
368
405
|
|
|
369
|
-
:param files: The files of this ModelNewInstanceRequest.
|
|
406
|
+
:param files: The files of this ModelNewInstanceRequest. #
|
|
407
|
+
noqa: E501
|
|
370
408
|
:type: list[UploadFile]
|
|
371
409
|
"""
|
|
372
410
|
|
|
373
411
|
self._files = files
|
|
374
412
|
|
|
375
413
|
def to_dict(self):
|
|
376
|
-
"""Returns the model properties as a dict"""
|
|
414
|
+
"""Returns the model properties as a dict."""
|
|
377
415
|
result = {}
|
|
378
416
|
|
|
379
417
|
for attr, _ in six.iteritems(self.project_types):
|
|
@@ -397,7 +435,7 @@ class ModelNewInstanceRequest(object):
|
|
|
397
435
|
return result
|
|
398
436
|
|
|
399
437
|
def to_str(self):
|
|
400
|
-
"""Returns the string representation of the model"""
|
|
438
|
+
"""Returns the string representation of the model."""
|
|
401
439
|
return pprint.pformat(self.to_dict())
|
|
402
440
|
|
|
403
441
|
def __repr__(self):
|
|
@@ -405,13 +443,13 @@ class ModelNewInstanceRequest(object):
|
|
|
405
443
|
return self.to_str()
|
|
406
444
|
|
|
407
445
|
def __eq__(self, other):
|
|
408
|
-
"""Returns true if both objects are equal"""
|
|
446
|
+
"""Returns true if both objects are equal."""
|
|
409
447
|
if not isinstance(other, ModelNewInstanceRequest):
|
|
410
448
|
return False
|
|
411
449
|
|
|
412
450
|
return self.__dict__ == other.__dict__
|
|
413
451
|
|
|
414
452
|
def __ne__(self, other):
|
|
415
|
-
"""Returns true if both objects are not equal"""
|
|
453
|
+
"""Returns true if both objects are not equal."""
|
|
416
454
|
return not self == other
|
|
417
455
|
|