oracle-ads 2.10.0__py3-none-any.whl → 2.11.0__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.
Files changed (117) hide show
  1. ads/aqua/__init__.py +12 -0
  2. ads/aqua/base.py +324 -0
  3. ads/aqua/cli.py +19 -0
  4. ads/aqua/config/deployment_config_defaults.json +9 -0
  5. ads/aqua/config/resource_limit_names.json +7 -0
  6. ads/aqua/constants.py +45 -0
  7. ads/aqua/data.py +40 -0
  8. ads/aqua/decorator.py +101 -0
  9. ads/aqua/deployment.py +643 -0
  10. ads/aqua/dummy_data/icon.txt +1 -0
  11. ads/aqua/dummy_data/oci_model_deployments.json +56 -0
  12. ads/aqua/dummy_data/oci_models.json +1 -0
  13. ads/aqua/dummy_data/readme.md +26 -0
  14. ads/aqua/evaluation.py +1751 -0
  15. ads/aqua/exception.py +82 -0
  16. ads/aqua/extension/__init__.py +40 -0
  17. ads/aqua/extension/base_handler.py +138 -0
  18. ads/aqua/extension/common_handler.py +21 -0
  19. ads/aqua/extension/deployment_handler.py +202 -0
  20. ads/aqua/extension/evaluation_handler.py +135 -0
  21. ads/aqua/extension/finetune_handler.py +66 -0
  22. ads/aqua/extension/model_handler.py +59 -0
  23. ads/aqua/extension/ui_handler.py +201 -0
  24. ads/aqua/extension/utils.py +23 -0
  25. ads/aqua/finetune.py +579 -0
  26. ads/aqua/job.py +29 -0
  27. ads/aqua/model.py +819 -0
  28. ads/aqua/training/__init__.py +4 -0
  29. ads/aqua/training/exceptions.py +459 -0
  30. ads/aqua/ui.py +453 -0
  31. ads/aqua/utils.py +715 -0
  32. ads/cli.py +37 -6
  33. ads/common/auth.py +7 -0
  34. ads/common/decorator/__init__.py +7 -3
  35. ads/common/decorator/require_nonempty_arg.py +65 -0
  36. ads/common/object_storage_details.py +166 -7
  37. ads/common/oci_client.py +18 -1
  38. ads/common/oci_logging.py +2 -2
  39. ads/common/oci_mixin.py +4 -5
  40. ads/common/serializer.py +34 -5
  41. ads/common/utils.py +75 -10
  42. ads/config.py +40 -1
  43. ads/dataset/correlation_plot.py +10 -12
  44. ads/jobs/ads_job.py +43 -25
  45. ads/jobs/builders/infrastructure/base.py +4 -2
  46. ads/jobs/builders/infrastructure/dsc_job.py +49 -39
  47. ads/jobs/builders/runtimes/base.py +71 -1
  48. ads/jobs/builders/runtimes/container_runtime.py +4 -4
  49. ads/jobs/builders/runtimes/pytorch_runtime.py +10 -63
  50. ads/jobs/templates/driver_pytorch.py +27 -10
  51. ads/model/artifact_downloader.py +84 -14
  52. ads/model/artifact_uploader.py +25 -23
  53. ads/model/datascience_model.py +388 -38
  54. ads/model/deployment/model_deployment.py +10 -2
  55. ads/model/generic_model.py +8 -0
  56. ads/model/model_file_description_schema.json +68 -0
  57. ads/model/model_metadata.py +1 -1
  58. ads/model/service/oci_datascience_model.py +34 -5
  59. ads/opctl/config/merger.py +2 -2
  60. ads/opctl/operator/__init__.py +3 -1
  61. ads/opctl/operator/cli.py +7 -1
  62. ads/opctl/operator/cmd.py +3 -3
  63. ads/opctl/operator/common/errors.py +2 -1
  64. ads/opctl/operator/common/operator_config.py +22 -3
  65. ads/opctl/operator/common/utils.py +16 -0
  66. ads/opctl/operator/lowcode/anomaly/MLoperator +15 -0
  67. ads/opctl/operator/lowcode/anomaly/README.md +209 -0
  68. ads/opctl/operator/lowcode/anomaly/__init__.py +5 -0
  69. ads/opctl/operator/lowcode/anomaly/__main__.py +104 -0
  70. ads/opctl/operator/lowcode/anomaly/cmd.py +35 -0
  71. ads/opctl/operator/lowcode/anomaly/const.py +88 -0
  72. ads/opctl/operator/lowcode/anomaly/environment.yaml +12 -0
  73. ads/opctl/operator/lowcode/anomaly/model/__init__.py +5 -0
  74. ads/opctl/operator/lowcode/anomaly/model/anomaly_dataset.py +147 -0
  75. ads/opctl/operator/lowcode/anomaly/model/automlx.py +89 -0
  76. ads/opctl/operator/lowcode/anomaly/model/autots.py +103 -0
  77. ads/opctl/operator/lowcode/anomaly/model/base_model.py +354 -0
  78. ads/opctl/operator/lowcode/anomaly/model/factory.py +67 -0
  79. ads/opctl/operator/lowcode/anomaly/model/tods.py +119 -0
  80. ads/opctl/operator/lowcode/anomaly/operator_config.py +105 -0
  81. ads/opctl/operator/lowcode/anomaly/schema.yaml +359 -0
  82. ads/opctl/operator/lowcode/anomaly/utils.py +81 -0
  83. ads/opctl/operator/lowcode/common/__init__.py +5 -0
  84. ads/opctl/operator/lowcode/common/const.py +10 -0
  85. ads/opctl/operator/lowcode/common/data.py +96 -0
  86. ads/opctl/operator/lowcode/common/errors.py +41 -0
  87. ads/opctl/operator/lowcode/common/transformations.py +191 -0
  88. ads/opctl/operator/lowcode/common/utils.py +250 -0
  89. ads/opctl/operator/lowcode/forecast/README.md +3 -2
  90. ads/opctl/operator/lowcode/forecast/__main__.py +18 -2
  91. ads/opctl/operator/lowcode/forecast/cmd.py +8 -7
  92. ads/opctl/operator/lowcode/forecast/const.py +17 -1
  93. ads/opctl/operator/lowcode/forecast/environment.yaml +3 -2
  94. ads/opctl/operator/lowcode/forecast/model/arima.py +106 -117
  95. ads/opctl/operator/lowcode/forecast/model/automlx.py +204 -180
  96. ads/opctl/operator/lowcode/forecast/model/autots.py +144 -253
  97. ads/opctl/operator/lowcode/forecast/model/base_model.py +326 -259
  98. ads/opctl/operator/lowcode/forecast/model/forecast_datasets.py +325 -176
  99. ads/opctl/operator/lowcode/forecast/model/neuralprophet.py +293 -237
  100. ads/opctl/operator/lowcode/forecast/model/prophet.py +191 -208
  101. ads/opctl/operator/lowcode/forecast/operator_config.py +24 -33
  102. ads/opctl/operator/lowcode/forecast/schema.yaml +116 -29
  103. ads/opctl/operator/lowcode/forecast/utils.py +186 -356
  104. ads/opctl/operator/lowcode/pii/model/guardrails.py +18 -15
  105. ads/opctl/operator/lowcode/pii/model/report.py +7 -7
  106. ads/opctl/operator/lowcode/pii/operator_config.py +1 -8
  107. ads/opctl/operator/lowcode/pii/utils.py +0 -82
  108. ads/opctl/operator/runtime/runtime.py +3 -2
  109. ads/telemetry/base.py +62 -0
  110. ads/telemetry/client.py +105 -0
  111. ads/telemetry/telemetry.py +6 -3
  112. {oracle_ads-2.10.0.dist-info → oracle_ads-2.11.0.dist-info}/METADATA +44 -7
  113. {oracle_ads-2.10.0.dist-info → oracle_ads-2.11.0.dist-info}/RECORD +116 -59
  114. ads/opctl/operator/lowcode/forecast/model/transformations.py +0 -125
  115. {oracle_ads-2.10.0.dist-info → oracle_ads-2.11.0.dist-info}/LICENSE.txt +0 -0
  116. {oracle_ads-2.10.0.dist-info → oracle_ads-2.11.0.dist-info}/WHEEL +0 -0
  117. {oracle_ads-2.10.0.dist-info → oracle_ads-2.11.0.dist-info}/entry_points.txt +0 -0
@@ -29,18 +29,25 @@ spec:
29
29
  historical_data:
30
30
  required: true
31
31
  type: dict
32
+ default: {"url": "data.csv"}
32
33
  meta:
33
34
  description: "This should be indexed by date and target category (optionally). It should include all targets and endogeneous data."
34
35
  schema:
36
+ connect_args:
37
+ nullable: true
38
+ required: false
39
+ type: dict
35
40
  format:
36
41
  allowed:
37
42
  - csv
38
43
  - json
39
44
  - clipboard
40
45
  - excel
41
- - hdf
42
46
  - feather
43
- - load_files
47
+ - sql_table
48
+ - sql_query
49
+ - hdf
50
+ - tsv
44
51
  required: false
45
52
  type: string
46
53
  columns:
@@ -48,14 +55,24 @@ spec:
48
55
  type: list
49
56
  schema:
50
57
  type: string
58
+ filters:
59
+ required: false
60
+ type: list
61
+ schema:
62
+ type: string
51
63
  options:
52
64
  nullable: true
53
65
  required: false
54
66
  type: dict
67
+ sql:
68
+ required: false
69
+ type: string
70
+ table_name:
71
+ required: false
72
+ type: string
55
73
  url:
56
- required: true
74
+ required: false
57
75
  type: string
58
- default: data.csv
59
76
  meta:
60
77
  description: "The url can be local, or remote. For example: `oci://<bucket>@<namespace>/data.csv`"
61
78
  limit:
@@ -68,15 +85,21 @@ spec:
68
85
  meta:
69
86
  description: "Additional datasets must be indexed by the same targets and target categories as the historical data. Also is must have datapoints for each date/category for your horizon. This must be exogeneous data."
70
87
  schema:
88
+ connect_args:
89
+ nullable: true
90
+ required: false
91
+ type: dict
71
92
  format:
72
93
  allowed:
73
94
  - csv
74
95
  - json
75
96
  - clipboard
76
97
  - excel
77
- - hdf
78
98
  - feather
79
- - load_files
99
+ - sql_table
100
+ - sql_query
101
+ - hdf
102
+ - tsv
80
103
  required: false
81
104
  type: string
82
105
  columns:
@@ -84,10 +107,21 @@ spec:
84
107
  type: list
85
108
  schema:
86
109
  type: string
110
+ filters:
111
+ required: false
112
+ type: list
113
+ schema:
114
+ type: string
87
115
  options:
88
116
  nullable: true
89
117
  required: false
90
118
  type: dict
119
+ sql:
120
+ required: false
121
+ type: string
122
+ table_name:
123
+ required: false
124
+ type: string
91
125
  url:
92
126
  required: false
93
127
  type: string
@@ -107,33 +141,46 @@ spec:
107
141
  required: false
108
142
  type: dict
109
143
  format:
110
- required: false
111
- type: string
112
144
  allowed:
113
145
  - csv
114
146
  - json
115
147
  - clipboard
116
148
  - excel
149
+ - feather
150
+ - sql_table
151
+ - sql_query
117
152
  - hdf
118
- - sql
153
+ - tsv
154
+ required: false
155
+ type: string
119
156
  columns:
120
157
  required: false
121
158
  type: list
122
159
  schema:
123
160
  type: string
124
- url:
125
- required: true
126
- type: string
127
- default: test.csv
128
- meta:
129
- description: "The url can be local, or remote. For example: `oci://<bucket>@<namespace>/data.csv`"
130
- name:
161
+ filters:
131
162
  required: false
132
- type: string
163
+ type: list
164
+ schema:
165
+ type: string
133
166
  options:
134
167
  nullable: true
135
168
  required: false
136
169
  type: dict
170
+ sql:
171
+ required: false
172
+ type: string
173
+ table_name:
174
+ required: false
175
+ type: string
176
+ url:
177
+ required: false
178
+ type: string
179
+ meta:
180
+ description: "The url can be local, or remote. For example: `oci://<bucket>@<namespace>/data.csv`"
181
+ limit:
182
+ required: false
183
+ type: integer
137
184
  type: dict
138
185
 
139
186
  output_directory:
@@ -144,28 +191,46 @@ spec:
144
191
  required: false
145
192
  type: dict
146
193
  format:
147
- required: false
148
- type: string
149
194
  allowed:
150
195
  - csv
151
196
  - json
152
197
  - clipboard
153
198
  - excel
199
+ - feather
200
+ - sql_table
201
+ - sql_query
154
202
  - hdf
155
- - sql
156
- url:
157
- required: true
158
- type: string
159
- default: result/
160
- meta:
161
- description: "The url can be local, or remote. For example: `oci://<bucket>@<namespace>/`"
162
- name:
203
+ - tsv
163
204
  required: false
164
205
  type: string
206
+ columns:
207
+ required: false
208
+ type: list
209
+ schema:
210
+ type: string
211
+ filters:
212
+ required: false
213
+ type: list
214
+ schema:
215
+ type: string
165
216
  options:
166
217
  nullable: true
167
218
  required: false
168
219
  type: dict
220
+ sql:
221
+ required: false
222
+ type: string
223
+ table_name:
224
+ required: false
225
+ type: string
226
+ url:
227
+ required: false
228
+ type: string
229
+ meta:
230
+ description: "The url can be local, or remote. For example: `oci://<bucket>@<namespace>/data.csv`"
231
+ limit:
232
+ required: false
233
+ type: integer
169
234
  type: dict
170
235
 
171
236
  report_filename:
@@ -234,6 +299,15 @@ spec:
234
299
  meta:
235
300
  description: "Explainability, both local and global, can be disabled using this flag. Defaults to false."
236
301
 
302
+ explanations_accuracy_mode:
303
+ type: string
304
+ required: false
305
+ default: FAST_APPROXIMATE
306
+ allowed:
307
+ - HIGH_ACCURACY
308
+ - BALANCED
309
+ - FAST_APPROXIMATE
310
+
237
311
  generate_report:
238
312
  type: boolean
239
313
  required: false
@@ -262,14 +336,15 @@ spec:
262
336
 
263
337
  target_category_columns:
264
338
  type: list
265
- required: true
339
+ required: false
266
340
  schema:
267
341
  type: string
268
- default: ["Column1"]
342
+ default: ["Series ID"]
269
343
 
270
344
  horizon:
271
345
  required: true
272
346
  type: integer
347
+ default: 1
273
348
 
274
349
  model:
275
350
  type: string
@@ -287,6 +362,18 @@ spec:
287
362
  type: dict
288
363
  required: false
289
364
 
365
+ previous_output_dir:
366
+ type: string
367
+ required: false
368
+
369
+ generate_model_parameters:
370
+ type: boolean
371
+ required: false
372
+
373
+ generate_model_pickle:
374
+ type: boolean
375
+ required: false
376
+
290
377
  confidence_interval_width:
291
378
  type: float
292
379
  required: false