Skip to content

Commit b414e64

Browse files
authored
Merge branch 'main' into 2.7.x
2 parents 34549a2 + 7757da3 commit b414e64

24 files changed

+205
-42
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: Bug Report
2+
description: Bug observed in oracle-ads library
3+
title: "[Bug]: "
4+
labels: [Bug, Backlog]
5+
assignees:
6+
- octocat
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
If you think you've found a security vulnerability, don't raise a GitHub issue and follow the instructions
12+
in our [security policy](https://github.com/oracle/accelerated-data-science/security/policy).
13+
14+
---
15+
16+
Thank you for taking the time to file a bug report.
17+
- type: checkboxes
18+
id: checks
19+
attributes:
20+
label: Oracle-ads version used
21+
options:
22+
- label: >
23+
I have checked that this issue has not already been reported.
24+
required: true
25+
- label: >
26+
I have confirmed this bug exists on the
27+
[latest version](https://https://github.com/oracle/accelerated-data-science/releases/) of oracle-ads.
28+
- label: >
29+
I have confirmed this bug exists on the main branch of oracle-ads.
30+
- label: >
31+
I agree to follow [Code of Conduct](https://github.com/oracle/.github/blob/main/CODE_OF_CONDUCT.md).
32+
required: true
33+
- type: textarea
34+
id: description
35+
attributes:
36+
label: Description
37+
description: >
38+
Please provide a brief description of the problem, describe setup used as that may be the key to the issue.
39+
validations:
40+
required: true
41+
- type: textarea
42+
id: how-to-reproduce
43+
attributes:
44+
label: How to Reproduce
45+
description: >
46+
Please provide a copy-pastable short code example.
47+
If possible provide an ordered list of steps on how to reproduce the problem.
48+
placeholder: >
49+
import ads
50+
51+
...
52+
render: python
53+
validations:
54+
required: true
55+
- type: textarea
56+
id: what-was-observed
57+
attributes:
58+
label: What was Observed
59+
description: >
60+
Please provide snippets of output or describe wrong behavior.
61+
validations:
62+
required: true
63+
- type: textarea
64+
id: what-was-expected
65+
attributes:
66+
label: What was Expected
67+
description: >
68+
Please describe what should have happened and how it is different from what was observed.
69+
validations:
70+
required: true
71+
- type: textarea
72+
id: version
73+
attributes:
74+
label: Version
75+
description: >
76+
Please paste the output of ``ads.__version__``
77+
value: >
78+
<details>
79+
80+
Paste here the output of ads.__version__
81+
82+
</details>
83+
validations:
84+
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Check the docs
4+
url: https://accelerated-data-science.readthedocs.io/en/latest/
5+
about: If you need help with your first steps with oracle-ads please check the docs.

.github/workflows/codeql.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ "main" ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ "main" ]
20+
schedule:
21+
- cron: '40 11 * * 3'
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: [ 'python' ]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
38+
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v3
42+
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v2
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
51+
52+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53+
# queries: security-extended,security-and-quality
54+
55+
56+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
57+
# If this step fails, then you should remove it and run the build manually (see below)
58+
- name: Autobuild
59+
uses: github/codeql-action/autobuild@v2
60+
61+
# ℹ️ Command-line programs to run using the OS shell.
62+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
63+
64+
# If the Autobuild fails above, remove it and uncomment the following three lines.
65+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
66+
67+
# - run: |
68+
# echo "Run, Build Application using script"
69+
# ./location_of_script_within_repo/buildscript.sh
70+
71+
- name: Perform CodeQL Analysis
72+
uses: github/codeql-action/analyze@v2
73+
with:
74+
category: "/language:${{matrix.language}}"

ads/jobs/ads_job.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Job(Builder):
4949
.with_runtime(
5050
ScriptRuntime()
5151
.with_source("oci://bucket_name@namespace/path/to/script.py")
52-
.with_service_conda("tensorflow26_p37_cpu_v2")
52+
.with_service_conda("tensorflow28_p38_cpu_v1")
5353
.with_environment_variable(ENV="value")
5454
.with_argument("argument", key="value")
5555
.with_freeform_tag(tag_name="tag_value")
@@ -79,7 +79,7 @@ class Job(Builder):
7979
.with_runtime(
8080
NotebookRuntime()
8181
.with_notebook("path/to/notebook.ipynb")
82-
.with_service_conda(tensorflow26_p37_cpu_v2")
82+
.with_service_conda("tensorflow28_p38_cpu_v1")
8383
# Saves the notebook with outputs to OCI object storage.
8484
.with_output("oci://bucket_name@namespace/path/to/dir")
8585
)

docs/source/user_guide/jobs/data_science_job.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ All of these runtime options allow you to configure a `Data Science Conda Enviro
9999
runtime = (
100100
ScriptRuntime()
101101
.with_source("oci://bucket_name@namespace/path/to/script.py")
102-
.with_service_conda("tensorflow26_p37_cpu_v2")
102+
.with_service_conda("tensorflow28_p38_cpu_v1")
103103
)
104104
105105
You can store your source code in a local file path or location supported by `fsspec <https://filesystem-spec.readthedocs.io/en/latest/>`__, including OCI Object Storage.
@@ -123,7 +123,7 @@ You can also configure the environment variables, command line arguments, and fr
123123
runtime = (
124124
ScriptRuntime()
125125
.with_source("oci://bucket_name@namespace/path/to/script.py")
126-
.with_service_conda("tensorflow26_p37_cpu_v2")
126+
.with_service_conda("tensorflow28_p38_cpu_v1")
127127
.with_environment_variable(ENV="value")
128128
.with_argument("argument", key="value")
129129
.with_freeform_tag(tag_name="tag_value")
@@ -249,7 +249,7 @@ Here is an example of a YAML file representing the job defined in the preceding
249249
type: script
250250
spec:
251251
conda:
252-
slug: tensorflow26_p37_cpu_v2
252+
slug: tensorflow28_p38_cpu_v1
253253
type: service
254254
scriptPathURI: oci://bucket_name@namespace/path/to/script.py
255255

docs/source/user_guide/jobs/run_notebook.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Python
3434
path="https://raw.githubusercontent.com/tensorflow/docs/master/site/en/tutorials/customization/basics.ipynb",
3535
encoding='utf-8'
3636
)
37-
.with_service_conda(tensorflow26_p37_cpu_v2")
37+
.with_service_conda("tensorflow28_p38_cpu_v1")
3838
.with_environment_variable(GREETINGS="Welcome to OCI Data Science")
3939
.with_output("oci://bucket_name@namespace/path/to/dir")
4040
)
@@ -84,7 +84,7 @@ You could use the following YAML to create the job:
8484
spec:
8585
notebookPathURI: /path/to/notebook
8686
conda:
87-
slug: tensorflow26_p37_cpu_v1
87+
slug: tensorflow28_p38_cpu_v1
8888
type: service
8989
9090
**NotebookRuntime Schema**

docs/source/user_guide/model_catalog/model_catalog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ provenance, reproduced, and deployed.
2121
from ads.catalog.model import ModelCatalog
2222
from ads.common.model import ADSModel
2323
from ads.common.model_export_util import prepare_generic_model
24-
from ads.model.model_metadata import (MetadataCustomCategory,
24+
from ads.common.model_metadata import (MetadataCustomCategory,
2525
UseCaseType,
2626
Framework)
2727
from ads.dataset.factory import DatasetFactory

docs/source/user_guide/model_registration/frameworks/automlmodel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Example
6464
6565
from ads.automl.driver import AutoML
6666
from ads.automl.provider import OracleAutoMLProvider
67-
from ads.model.model_metadata import UseCaseType
67+
from ads.common.model_metadata import UseCaseType
6868
from ads.dataset.dataset_browser import DatasetBrowser
6969
from ads.model.framework.automl_model import AutoMLModel
7070

docs/source/user_guide/model_registration/frameworks/lightgbmmodel.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ The Training API in ``LightGBM`` contains training and cross-validation routines
3838
trainx,
3939
trainy,
4040
)
41-
41+
4242
4343
Prepare Model Artifact
4444
======================
4545

4646
.. code-block:: python3
4747
48-
from ads.model.model_metadata import UseCaseType
48+
from ads.common.model_metadata import UseCaseType
4949
from ads.model.framework.lightgbm_model import LightGBMModel
5050
5151
artifact_dir = tempfile.mkdtemp()
@@ -117,7 +117,7 @@ Run Prediction against Endpoint
117117
# Generate prediction by invoking the deployed endpoint
118118
lightgbm_model.predict(testx)['prediction']
119119
120-
.. parsed-literal::
120+
.. parsed-literal::
121121
122122
[1,0,...,1]
123123
@@ -250,7 +250,7 @@ Example
250250
.. code-block:: python3
251251
252252
from ads.model.framework.lightgbm_model import LightGBMModel
253-
from ads.model.model_metadata import UseCaseType
253+
from ads.common.model_metadata import UseCaseType
254254
255255
import lightgbm as lgb
256256

docs/source/user_guide/model_registration/frameworks/pytorchmodel.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Serializing model in TorchScript program by setting `use_torch_script` to `True`
3737

3838
.. code-block:: python3
3939
40-
from ads.model.model_metadata import UseCaseType
40+
from ads.common.model_metadata import UseCaseType
4141
from ads.model.framework.pytorch_model import PyTorchModel
4242
4343
import tempfile
@@ -59,7 +59,7 @@ Save state_dict
5959
---------------
6060
.. code-block:: python3
6161
62-
from ads.model.model_metadata import UseCaseType
62+
from ads.common.model_metadata import UseCaseType
6363
from ads.model.framework.pytorch_model import PyTorchModel
6464
6565
import tempfile
@@ -417,7 +417,7 @@ Example
417417

418418
.. code-block:: python3
419419
420-
from ads.model.model_metadata import UseCaseType
420+
from ads.common.model_metadata import UseCaseType
421421
from ads.model.framework.pytorch_model import PyTorchModel
422422
423423
import numpy as np

0 commit comments

Comments
 (0)