Skip to content

Commit c619520

Browse files
author
TeamCity Agent User
committed
Release version 2.5.8
1 parent 1870730 commit c619520

28 files changed

+866
-190
lines changed

.gitignore

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
28+
# PyInstaller
29+
# Usually these files are written by a python script from a template
30+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
31+
*.manifest
32+
*.spec
33+
34+
# Installer logs
35+
pip-log.txt
36+
pip-delete-this-directory.txt
37+
38+
# Unit test / coverage reports
39+
htmlcov/
40+
.tox/
41+
.coverage
42+
.coverage.*
43+
.cache
44+
nosetests.xml
45+
coverage.xml
46+
*.cover
47+
.hypothesis/
48+
.pytest_cache
49+
50+
# Translations
51+
*.mo
52+
*.pot
53+
54+
# Django stuff:
55+
*.log
56+
local_settings.py
57+
58+
# Flask stuff:
59+
instance/
60+
.webassets-cache
61+
62+
# Scrapy stuff:
63+
.scrapy
64+
65+
# Sphinx documentation
66+
docs/_build/
67+
docs/build/
68+
docs/dask-worker-space/
69+
70+
# PyBuilder
71+
target/
72+
73+
# Jupyter Notebook
74+
.ipynb_checkpoints
75+
76+
# pyenv
77+
.python-version
78+
79+
# celery beat schedule file
80+
celerybeat-schedule
81+
82+
# SageMath parsed files
83+
*.sage.py
84+
85+
# dotenv
86+
.env
87+
88+
# virtualenv
89+
.venv
90+
venv/
91+
ENV/
92+
93+
# Spyder project settings
94+
.spyderproject
95+
.spyproject
96+
97+
# Rope project settings
98+
.ropeproject
99+
100+
# mkdocs documentation
101+
/site
102+
103+
# mypy
104+
.mypy_cache/
105+
106+
### Linux ###
107+
*~
108+
109+
# IntelliJ/Pycharm settings
110+
*.iml
111+
.idea
112+
.vscode/
113+
114+
# Mac OS metadata
115+
.DS_Store
116+
.AppleDouble
117+
.LSOverride
118+
119+
# dask related
120+
dask-worker-space
121+
122+
#sqllite databases
123+
*.db
124+
125+
Untitled*.ipynb
126+
*.lock
127+
*.dirlock
128+
129+
130+
# test results
131+
testresults.xml
132+
133+
# this is a separate repo
134+
notebooks/stable
135+
136+
# this is a repo for http certs
137+
tests/sparta-pki
138+
139+
docs/ads-latest.zip
140+
141+
142+
# html reports of covered code by pytests and
143+
# execution data collected by coverage.py
144+
*coverage_html_report*
145+
.coverage
146+
.coverage*
147+
**.sqlite
148+
149+
extensions/**/node_modules/
150+
extensions/**/*.tgz
151+
logs/
152+
**/node_modules
153+
154+
# side-effects of running notebooks
155+
**/.mlx_static/**
156+
157+
# vim
158+
*.swp

ads/ads_version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"version": "2.5.7"
2+
"version": "2.5.8"
33
}

ads/cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import click
88
import ads.opctl.cli
9+
import ads.jobs.cli
910
import os
1011
import json
1112

@@ -23,6 +24,7 @@ def cli():
2324

2425

2526
cli.add_command(ads.opctl.cli.commands)
27+
cli.add_command(ads.jobs.cli.commands)
2628

2729

2830
if __name__ == "__main__":

ads/common/model_artifact.py

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import uuid
1717
from enum import Enum
1818
from pathlib import Path
19-
from typing import Union
19+
from typing import Union, Any
2020
from urllib.parse import urlparse
2121
import fsspec
2222
import numpy as np
@@ -1258,11 +1258,6 @@ def _populate_metadata_taxonomy(self, model=None, use_case_type=None):
12581258
def _populate_metadata_custom(self):
12591259
"""Extracts custom metadata info from model artifact.
12601260
1261-
Parameters
1262-
----------
1263-
None
1264-
Nothing
1265-
12661261
Returns
12671262
-------
12681263
None
@@ -1349,16 +1344,17 @@ def _populate_metadata_custom(self):
13491344
)
13501345
self.metadata_custom._add_many(model_metadata_items, replace=True)
13511346

1352-
def populate_metadata(self, model=None, use_case_type=None):
1347+
def populate_metadata(self, model: Any = None, use_case_type: str = None):
13531348
"""Extracts and populate taxonomy metadata from given model.
13541349
13551350
Parameters
13561351
----------
1357-
model: [sklearn, xgboost, lightgbm, automl, keras]
1358-
The model object
1359-
1360-
use_case_type:
1361-
The use case type of the model
1352+
model: (Any, optional). Defaults to None.
1353+
This is an optional model object which is only used to extract taxonomy metadata.
1354+
Supported models: automl, keras, lightgbm, pytorch, sklearn, tensorflow, and xgboost.
1355+
If the model is not under supported frameworks, then extracting taxonomy metadata will be skipped.
1356+
use_case_type: (str, optional). Default to None.
1357+
The use case type of the model.
13621358
13631359
Returns
13641360
-------
@@ -1367,7 +1363,8 @@ def populate_metadata(self, model=None, use_case_type=None):
13671363
"""
13681364
if model is None and self.metadata_taxonomy["Algorithm"].value is None:
13691365
logger.info(
1370-
"To auto-extract taxonomy metadata the model must be provided. Supported models: automl, keras, lightgbm, pytorch, sklearn, tensorflow, and xgboost."
1366+
"To auto-extract taxonomy metadata the model must be provided. "
1367+
"Supported models: automl, keras, lightgbm, pytorch, sklearn, tensorflow, and xgboost."
13711368
)
13721369
if use_case_type is None:
13731370
use_case_type = self.metadata_taxonomy[

0 commit comments

Comments
 (0)