deriva-ml 1.13.3__tar.gz → 1.14.26__tar.gz
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.
- deriva_ml-1.14.26/.github/release-drafter.yml +26 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/.github/workflows/publish-docs.yml +2 -1
- deriva_ml-1.14.26/.github/workflows/release.yml +87 -0
- {deriva_ml-1.13.3/src/deriva_ml.egg-info → deriva_ml-1.14.26}/PKG-INFO +5 -4
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/Notebooks/DerivaML Create Notes.ipynb +48 -129
- deriva_ml-1.14.26/docs/Notebooks/DerivaML Dataset.ipynb +481 -0
- deriva_ml-1.14.26/docs/Notebooks/DerivaML Execution.ipynb +350 -0
- deriva_ml-1.14.26/docs/Notebooks/DerivaML Features.ipynb +358 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/Notebooks/DerivaML Ingest.ipynb +51 -164
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/Notebooks/DerivaML Vocabulary.ipynb +158 -73
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/code-docs/dataset_aux_classes.md +1 -1
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/code-docs/dataset_bag.md +1 -1
- deriva_ml-1.14.26/docs/code-docs/deriva_definitions.md +2 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/code-docs/deriva_ml_base.md +1 -1
- deriva_ml-1.14.26/docs/code-docs/deriva_model.md +2 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/code-docs/execution_configuration.md +1 -1
- deriva_ml-1.14.26/docs/code-docs/upload.md +2 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/user-guide/datasets.md +3 -2
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/user-guide/execution-configuration.md +1 -1
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/user-guide/identifiers.md +1 -2
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/mkdocs.yml +2 -2
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/pyproject.toml +58 -17
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/release.sh +9 -10
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/src/deriva_ml/__init__.py +25 -30
- deriva_ml-1.14.26/src/deriva_ml/core/__init__.py +39 -0
- deriva_ml-1.14.26/src/deriva_ml/core/base.py +1489 -0
- deriva_ml-1.14.26/src/deriva_ml/core/constants.py +36 -0
- deriva_ml-1.14.26/src/deriva_ml/core/definitions.py +74 -0
- deriva_ml-1.14.26/src/deriva_ml/core/enums.py +222 -0
- deriva_ml-1.14.26/src/deriva_ml/core/ermrest.py +288 -0
- deriva_ml-1.14.26/src/deriva_ml/core/exceptions.py +28 -0
- deriva_ml-1.14.26/src/deriva_ml/core/filespec.py +116 -0
- deriva_ml-1.14.26/src/deriva_ml/dataset/__init__.py +4 -0
- deriva_ml-1.13.3/src/deriva_ml/dataset_aux_classes.py → deriva_ml-1.14.26/src/deriva_ml/dataset/aux_classes.py +16 -12
- {deriva_ml-1.13.3/src/deriva_ml → deriva_ml-1.14.26/src/deriva_ml/dataset}/dataset.py +408 -416
- {deriva_ml-1.13.3/src/deriva_ml → deriva_ml-1.14.26/src/deriva_ml/dataset}/dataset_bag.py +137 -97
- {deriva_ml-1.13.3/src/deriva_ml → deriva_ml-1.14.26/src/deriva_ml/dataset}/history.py +52 -33
- {deriva_ml-1.13.3/src/deriva_ml → deriva_ml-1.14.26/src/deriva_ml/dataset}/upload.py +48 -70
- deriva_ml-1.14.26/src/deriva_ml/demo_catalog.py +416 -0
- deriva_ml-1.14.26/src/deriva_ml/execution/environment.py +290 -0
- {deriva_ml-1.13.3/src/deriva_ml → deriva_ml-1.14.26/src/deriva_ml/execution}/execution.py +365 -252
- deriva_ml-1.14.26/src/deriva_ml/execution/execution_configuration.py +163 -0
- deriva_ml-1.13.3/src/deriva_ml/execution_configuration.py → deriva_ml-1.14.26/src/deriva_ml/execution/workflow.py +206 -218
- deriva_ml-1.14.26/src/deriva_ml/feature.py +227 -0
- deriva_ml-1.13.3/src/deriva_ml/deriva_model.py → deriva_ml-1.14.26/src/deriva_ml/model/catalog.py +113 -132
- deriva_ml-1.13.3/src/deriva_ml/database_model.py → deriva_ml-1.14.26/src/deriva_ml/model/database.py +52 -74
- deriva_ml-1.14.26/src/deriva_ml/model/sql_mapper.py +44 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/src/deriva_ml/run_notebook.py +19 -11
- deriva_ml-1.14.26/src/deriva_ml/schema/__init__.py +3 -0
- {deriva_ml-1.13.3/src/deriva_ml/schema_setup → deriva_ml-1.14.26/src/deriva_ml/schema}/annotations.py +31 -22
- deriva_ml-1.14.26/src/deriva_ml/schema/check_schema.py +104 -0
- {deriva_ml-1.13.3/src/deriva_ml/schema_setup → deriva_ml-1.14.26/src/deriva_ml/schema}/create_schema.py +151 -104
- deriva_ml-1.14.26/src/deriva_ml/schema/deriva-ml-reference.json +8525 -0
- deriva_ml-1.14.26/src/deriva_ml/schema/table_comments_utils.py +57 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26/src/deriva_ml.egg-info}/PKG-INFO +5 -4
- deriva_ml-1.14.26/src/deriva_ml.egg-info/SOURCES.txt +102 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/src/deriva_ml.egg-info/entry_points.txt +1 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/src/deriva_ml.egg-info/requires.txt +4 -3
- deriva_ml-1.14.26/tests/__init__.py +3 -0
- deriva_ml-1.14.26/tests/conftest.py +78 -0
- deriva_ml-1.14.26/tests/core/__init__.py +0 -0
- deriva_ml-1.14.26/tests/core/test_basic_tables.py +14 -0
- deriva_ml-1.14.26/tests/core/test_file.py +191 -0
- deriva_ml-1.14.26/tests/core/test_vocabulary.py +68 -0
- deriva_ml-1.14.26/tests/dataset/__init__.py +0 -0
- deriva_ml-1.14.26/tests/dataset/test_dataset_version.py +47 -0
- deriva_ml-1.14.26/tests/dataset/test_datasets.py +184 -0
- deriva_ml-1.14.26/tests/dataset/test_download.py +148 -0
- deriva_ml-1.14.26/tests/execution/__init__.py +0 -0
- deriva_ml-1.14.26/tests/execution/test_execution.py +141 -0
- deriva_ml-1.14.26/tests/feature/test_features.py +254 -0
- deriva_ml-1.14.26/tests/model/__init__.py +0 -0
- deriva_ml-1.14.26/tests/model/test_database.py +132 -0
- deriva_ml-1.14.26/tests/model/test_models.py +7 -0
- deriva_ml-1.14.26/tests/test_utils.py +112 -0
- deriva_ml-1.14.26/uv.lock +3700 -0
- deriva_ml-1.13.3/docs/Notebooks/DerivaML Dataset.ipynb +0 -863
- deriva_ml-1.13.3/docs/Notebooks/DerivaML Execution.ipynb +0 -891
- deriva_ml-1.13.3/docs/Notebooks/DerivaML Features.ipynb +0 -998
- deriva_ml-1.13.3/docs/code-docs/deriva_model.md +0 -2
- deriva_ml-1.13.3/docs/code-docs/upload.md +0 -2
- deriva_ml-1.13.3/src/deriva_ml/demo_catalog.py +0 -366
- deriva_ml-1.13.3/src/deriva_ml/deriva_definitions.py +0 -372
- deriva_ml-1.13.3/src/deriva_ml/deriva_ml_base.py +0 -1046
- deriva_ml-1.13.3/src/deriva_ml/execution_environment.py +0 -139
- deriva_ml-1.13.3/src/deriva_ml/feature.py +0 -190
- deriva_ml-1.13.3/src/deriva_ml/schema_setup/table_comments_utils.py +0 -56
- deriva_ml-1.13.3/src/deriva_ml/test_functions.py +0 -141
- deriva_ml-1.13.3/src/deriva_ml/test_notebook.ipynb +0 -197
- deriva_ml-1.13.3/src/deriva_ml.egg-info/SOURCES.txt +0 -79
- deriva_ml-1.13.3/tests/derivaml_test.py +0 -69
- deriva_ml-1.13.3/tests/runner.py +0 -35
- deriva_ml-1.13.3/tests/test_basic_tables.py +0 -70
- deriva_ml-1.13.3/tests/test_dataset.py +0 -201
- deriva_ml-1.13.3/tests/test_download.py +0 -56
- deriva_ml-1.13.3/tests/test_execution.py +0 -139
- deriva_ml-1.13.3/tests/test_features.py +0 -105
- deriva_ml-1.13.3/tests/test_upload.py +0 -100
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/.gitignore +0 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/LICENSE +0 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/README.md +0 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/.DS_Store +0 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/assets/ERD.png +0 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/assets/Launcher.png +0 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/assets/copy_minid.png +0 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/assets/deriva-logo.png +0 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/assets/deriva-ml.pdf +0 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/assets/sharing-at-home.pdf +0 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/code-docs/dataset.md +0 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/code-docs/execution.md +0 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/code-docs/feature.md +0 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/index.md +0 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/release-notes.md +0 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/user-guide/deriva_ml_structure.md +0 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/user-guide/file-assets.md +0 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/user-guide/install.md +0 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/user-guide/notebooks.md +0 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/docs/user-guide/overview.md +0 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/setup.cfg +0 -0
- {deriva_ml-1.13.3/src/deriva_ml/schema_setup → deriva_ml-1.14.26/src/deriva_ml/execution}/__init__.py +0 -0
- {deriva_ml-1.13.3/tests → deriva_ml-1.14.26/src/deriva_ml/model}/__init__.py +0 -0
- {deriva_ml-1.13.3/src/deriva_ml/schema_setup → deriva_ml-1.14.26/src/deriva_ml/schema}/policy.json +0 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/src/deriva_ml.egg-info/dependency_links.txt +0 -0
- {deriva_ml-1.13.3 → deriva_ml-1.14.26}/src/deriva_ml.egg-info/top_level.txt +0 -0
- {deriva_ml-1.13.3/src/deriva_ml → deriva_ml-1.14.26/tests}/test-files/execution-parameters.json +0 -0
- {deriva_ml-1.13.3/src/deriva_ml → deriva_ml-1.14.26/tests}/test-files/notebook-parameters.json +0 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
name-template: 'v$RESOLVED_VERSION'
|
|
2
|
+
tag-template: 'v$RESOLVED_VERSION'
|
|
3
|
+
|
|
4
|
+
template: |
|
|
5
|
+
## Changes
|
|
6
|
+
|
|
7
|
+
$CHANGES
|
|
8
|
+
|
|
9
|
+
categories:
|
|
10
|
+
- title: 🚀 Features
|
|
11
|
+
labels: [feature, enhancement]
|
|
12
|
+
- title: 🐛 Bug Fixes
|
|
13
|
+
labels: [bug, fix]
|
|
14
|
+
- title: 🧰 Maintenance
|
|
15
|
+
labels: [chore, refactor, maintenance]
|
|
16
|
+
|
|
17
|
+
change-template: '- $TITLE (#$NUMBER)'
|
|
18
|
+
no-changes-template: '- No notable changes.'
|
|
19
|
+
|
|
20
|
+
exclude-labels:
|
|
21
|
+
- skip-changelog
|
|
22
|
+
|
|
23
|
+
replacers:
|
|
24
|
+
- search: '\[#([0-9]+)\]'
|
|
25
|
+
replace: '[#${1}](https://github.com/${{ GITHUB_REPOSITORY }}/pull/${1})'
|
|
26
|
+
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
name: Build and Release
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
on:
|
|
6
|
+
push:
|
|
7
|
+
tags:
|
|
8
|
+
- 'v*.*.*'
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
id-token: write
|
|
13
|
+
contents: read
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
build:
|
|
17
|
+
name: Build Package
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
outputs:
|
|
20
|
+
artifact-name: dist
|
|
21
|
+
steps:
|
|
22
|
+
- name: Checkout code
|
|
23
|
+
uses: actions/checkout@v4
|
|
24
|
+
with:
|
|
25
|
+
fetch-depth: 0
|
|
26
|
+
|
|
27
|
+
- name: Set up Python
|
|
28
|
+
uses: actions/setup-python@v5
|
|
29
|
+
with:
|
|
30
|
+
python-version: '3.11'
|
|
31
|
+
|
|
32
|
+
- name: Install the latest version of uv
|
|
33
|
+
uses: astral-sh/setup-uv@v6
|
|
34
|
+
|
|
35
|
+
- name: Build package
|
|
36
|
+
run: uv build
|
|
37
|
+
|
|
38
|
+
- name: Upload built dist
|
|
39
|
+
uses: actions/upload-artifact@v4
|
|
40
|
+
with:
|
|
41
|
+
name: dist
|
|
42
|
+
path: dist/*
|
|
43
|
+
|
|
44
|
+
create-release:
|
|
45
|
+
name: Create GitHub Release
|
|
46
|
+
runs-on: ubuntu-latest
|
|
47
|
+
needs: build
|
|
48
|
+
steps:
|
|
49
|
+
- name: Checkout code
|
|
50
|
+
uses: actions/checkout@v4
|
|
51
|
+
|
|
52
|
+
- name: Draft GitHub Release
|
|
53
|
+
uses: release-drafter/release-drafter@v5
|
|
54
|
+
with:
|
|
55
|
+
config-name: release-drafter.yml
|
|
56
|
+
publish: true
|
|
57
|
+
env:
|
|
58
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
59
|
+
|
|
60
|
+
publish:
|
|
61
|
+
name: Publish to PyPI
|
|
62
|
+
runs-on: ubuntu-latest
|
|
63
|
+
needs: [build, create-release]
|
|
64
|
+
environment: publish # Optional GitHub environment to protect this step
|
|
65
|
+
steps:
|
|
66
|
+
- name: Checkout code
|
|
67
|
+
uses: actions/checkout@v4
|
|
68
|
+
with:
|
|
69
|
+
fetch-depth: 0
|
|
70
|
+
|
|
71
|
+
- name: Set up Python
|
|
72
|
+
uses: actions/setup-python@v5
|
|
73
|
+
with:
|
|
74
|
+
python-version: '3.11'
|
|
75
|
+
|
|
76
|
+
- name: Install the latest version of uv
|
|
77
|
+
uses: astral-sh/setup-uv@v6
|
|
78
|
+
|
|
79
|
+
- name: Download built dist
|
|
80
|
+
uses: actions/download-artifact@v4
|
|
81
|
+
with:
|
|
82
|
+
name: dist
|
|
83
|
+
path: dist/
|
|
84
|
+
|
|
85
|
+
- name: Publish to PyPI
|
|
86
|
+
run: uv publish --verbose
|
|
87
|
+
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: deriva-ml
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.14.26
|
|
4
4
|
Summary: Utilities to simplify use of Dervia and Pandas to create reproducable ML pipelines
|
|
5
5
|
Author-email: ISRD <isrd-dev@isi.edu>
|
|
6
6
|
Requires-Python: >=3.10
|
|
7
7
|
Description-Content-Type: text/markdown
|
|
8
8
|
License-File: LICENSE
|
|
9
|
-
Requires-Dist:
|
|
10
|
-
Requires-Dist:
|
|
9
|
+
Requires-Dist: deriva~=1.7.10
|
|
10
|
+
Requires-Dist: deepdiff
|
|
11
11
|
Requires-Dist: pandas
|
|
12
12
|
Requires-Dist: regex~=2024.7.24
|
|
13
|
-
Requires-Dist: pydantic>=2.
|
|
13
|
+
Requires-Dist: pydantic>=2.11
|
|
14
14
|
Requires-Dist: semver>3.0.0
|
|
15
15
|
Requires-Dist: setuptools>=64
|
|
16
16
|
Requires-Dist: setuptools-scm>=8.0
|
|
17
17
|
Requires-Dist: nbstripout
|
|
18
18
|
Requires-Dist: papermill
|
|
19
|
+
Requires-Dist: pandas-stubs==2.2.3.250527
|
|
19
20
|
Dynamic: license-file
|
|
20
21
|
|
|
21
22
|
# DerivaML
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"cells": [
|
|
3
3
|
{
|
|
4
4
|
"cell_type": "markdown",
|
|
5
|
-
"id": "
|
|
5
|
+
"id": "0",
|
|
6
6
|
"metadata": {},
|
|
7
7
|
"source": [
|
|
8
8
|
"DerivaML is a class library built on the Deriva Scientific Asset management system that is designed to help simplify a number of the basic operations associated with building and testing ML libraries based on common toolkits such as TensorFlow. This notebook reviews the basic features of the DerivaML library."
|
|
@@ -10,41 +10,31 @@
|
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"cell_type": "code",
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"start_time": "2025-02-25T21:48:28.337684Z"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
13
|
+
"execution_count": null,
|
|
14
|
+
"id": "1",
|
|
15
|
+
"metadata": {},
|
|
16
|
+
"outputs": [],
|
|
20
17
|
"source": [
|
|
21
18
|
"%load_ext autoreload\n",
|
|
22
19
|
"%autoreload 2"
|
|
23
|
-
]
|
|
24
|
-
"outputs": [],
|
|
25
|
-
"execution_count": 1
|
|
20
|
+
]
|
|
26
21
|
},
|
|
27
22
|
{
|
|
28
23
|
"cell_type": "code",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"start_time": "2025-02-25T21:48:33.686305Z"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
24
|
+
"execution_count": null,
|
|
25
|
+
"id": "2",
|
|
26
|
+
"metadata": {},
|
|
27
|
+
"outputs": [],
|
|
36
28
|
"source": [
|
|
37
29
|
"import builtins\n",
|
|
38
30
|
"from demo_catalog import create_demo_catalog, DemoML\n",
|
|
39
31
|
"from deriva.core.utils.globus_auth_utils import GlobusNativeLogin\n",
|
|
40
32
|
"from IPython.display import display, Markdown, HTML, IFrame\n"
|
|
41
|
-
]
|
|
42
|
-
"outputs": [],
|
|
43
|
-
"execution_count": 2
|
|
33
|
+
]
|
|
44
34
|
},
|
|
45
35
|
{
|
|
46
36
|
"cell_type": "markdown",
|
|
47
|
-
"id": "
|
|
37
|
+
"id": "3",
|
|
48
38
|
"metadata": {},
|
|
49
39
|
"source": [
|
|
50
40
|
"Set the details for the catalog we want and authenticate to the server if needed."
|
|
@@ -52,13 +42,10 @@
|
|
|
52
42
|
},
|
|
53
43
|
{
|
|
54
44
|
"cell_type": "code",
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"start_time": "2024-11-29T21:26:57.868191Z"
|
|
60
|
-
}
|
|
61
|
-
},
|
|
45
|
+
"execution_count": null,
|
|
46
|
+
"id": "4",
|
|
47
|
+
"metadata": {},
|
|
48
|
+
"outputs": [],
|
|
62
49
|
"source": [
|
|
63
50
|
"hostname = 'dev.eye-ai.org'\n",
|
|
64
51
|
"domain_schema = 'demo-schema'\n",
|
|
@@ -69,26 +56,14 @@
|
|
|
69
56
|
"else:\n",
|
|
70
57
|
" gnl.login([hostname], no_local_server=True, no_browser=True, refresh_tokens=True, update_bdbag_keychain=True)\n",
|
|
71
58
|
" print(\"Login Successful\")\n"
|
|
72
|
-
]
|
|
73
|
-
"outputs": [
|
|
74
|
-
{
|
|
75
|
-
"name": "stdout",
|
|
76
|
-
"output_type": "stream",
|
|
77
|
-
"text": [
|
|
78
|
-
"You are already logged in.\n"
|
|
79
|
-
]
|
|
80
|
-
}
|
|
81
|
-
],
|
|
82
|
-
"execution_count": 6
|
|
59
|
+
]
|
|
83
60
|
},
|
|
84
61
|
{
|
|
85
|
-
"metadata": {
|
|
86
|
-
"ExecuteTime": {
|
|
87
|
-
"end_time": "2025-02-25T21:55:24.227032Z",
|
|
88
|
-
"start_time": "2025-02-25T21:55:24.201465Z"
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
62
|
"cell_type": "code",
|
|
63
|
+
"execution_count": null,
|
|
64
|
+
"id": "5",
|
|
65
|
+
"metadata": {},
|
|
66
|
+
"outputs": [],
|
|
92
67
|
"source": [
|
|
93
68
|
"import json\n",
|
|
94
69
|
"import os\n",
|
|
@@ -116,112 +91,56 @@
|
|
|
116
91
|
"# Usage\n",
|
|
117
92
|
"notebook_file = get_notebook_filename()\n",
|
|
118
93
|
"print(f\"Current Notebook: {notebook_file}\")"
|
|
119
|
-
]
|
|
120
|
-
"id": "94d9b590bc04d3fa",
|
|
121
|
-
"outputs": [
|
|
122
|
-
{
|
|
123
|
-
"name": "stdout",
|
|
124
|
-
"output_type": "stream",
|
|
125
|
-
"text": [
|
|
126
|
-
"23f783f8\n",
|
|
127
|
-
"{'message': 'Forbidden', 'reason': None}\n",
|
|
128
|
-
"message\n",
|
|
129
|
-
"Current Notebook: Error: string indices must be integers\n"
|
|
130
|
-
]
|
|
131
|
-
}
|
|
132
|
-
],
|
|
133
|
-
"execution_count": 8
|
|
94
|
+
]
|
|
134
95
|
},
|
|
135
96
|
{
|
|
136
97
|
"cell_type": "code",
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
"start_time": "2024-11-29T21:27:01.353095Z"
|
|
142
|
-
}
|
|
143
|
-
},
|
|
98
|
+
"execution_count": null,
|
|
99
|
+
"id": "6",
|
|
100
|
+
"metadata": {},
|
|
101
|
+
"outputs": [],
|
|
144
102
|
"source": [
|
|
145
103
|
"test_catalog = create_demo_catalog(hostname, domain_schema)\n",
|
|
146
104
|
"ml_instance = DemoML(hostname, test_catalog.catalog_id)"
|
|
147
|
-
]
|
|
148
|
-
"outputs": [],
|
|
149
|
-
"execution_count": 7
|
|
105
|
+
]
|
|
150
106
|
},
|
|
151
107
|
{
|
|
152
108
|
"cell_type": "markdown",
|
|
153
|
-
"id": "
|
|
109
|
+
"id": "7",
|
|
154
110
|
"metadata": {},
|
|
155
111
|
"source": [
|
|
156
112
|
"Now using TestFeatureClass, we can create some instances of the feature and add it. We must have a exeuction_rid in order to define the feature."
|
|
157
113
|
]
|
|
158
114
|
},
|
|
159
115
|
{
|
|
160
|
-
"metadata": {
|
|
161
|
-
"ExecuteTime": {
|
|
162
|
-
"end_time": "2024-11-29T21:44:32.359769Z",
|
|
163
|
-
"start_time": "2024-11-29T21:44:32.301145Z"
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
116
|
"cell_type": "code",
|
|
167
|
-
"
|
|
168
|
-
"id": "
|
|
169
|
-
"
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
],
|
|
175
|
-
"text/html": [
|
|
176
|
-
"\n",
|
|
177
|
-
" <iframe\n",
|
|
178
|
-
" width=\"500\"\n",
|
|
179
|
-
" height=\"500\"\n",
|
|
180
|
-
" src=\"https://dev.eye-ai.org/chaise/recordset/#631/www%3APage\"\n",
|
|
181
|
-
" frameborder=\"0\"\n",
|
|
182
|
-
" allowfullscreen\n",
|
|
183
|
-
" \n",
|
|
184
|
-
" ></iframe>\n",
|
|
185
|
-
" "
|
|
186
|
-
]
|
|
187
|
-
},
|
|
188
|
-
"metadata": {},
|
|
189
|
-
"output_type": "display_data"
|
|
190
|
-
}
|
|
191
|
-
],
|
|
192
|
-
"execution_count": 21
|
|
117
|
+
"execution_count": null,
|
|
118
|
+
"id": "8",
|
|
119
|
+
"metadata": {},
|
|
120
|
+
"outputs": [],
|
|
121
|
+
"source": [
|
|
122
|
+
"display(IFrame(ml_instance.chaise_url('Page'), 500, 500))\n"
|
|
123
|
+
]
|
|
193
124
|
},
|
|
194
125
|
{
|
|
195
|
-
"metadata": {
|
|
196
|
-
"ExecuteTime": {
|
|
197
|
-
"end_time": "2024-11-29T21:49:30.725063Z",
|
|
198
|
-
"start_time": "2024-11-29T21:49:29.753350Z"
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
126
|
"cell_type": "code",
|
|
202
|
-
"
|
|
203
|
-
"id": "
|
|
204
|
-
"
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
]
|
|
210
|
-
},
|
|
211
|
-
"execution_count": 23,
|
|
212
|
-
"metadata": {},
|
|
213
|
-
"output_type": "execute_result"
|
|
214
|
-
}
|
|
215
|
-
],
|
|
216
|
-
"execution_count": 23
|
|
127
|
+
"execution_count": null,
|
|
128
|
+
"id": "9",
|
|
129
|
+
"metadata": {},
|
|
130
|
+
"outputs": [],
|
|
131
|
+
"source": [
|
|
132
|
+
"ml_instance.chaise_url('Page')"
|
|
133
|
+
]
|
|
217
134
|
},
|
|
218
135
|
{
|
|
219
|
-
"metadata": {},
|
|
220
136
|
"cell_type": "code",
|
|
221
|
-
"
|
|
222
|
-
"id": "
|
|
137
|
+
"execution_count": null,
|
|
138
|
+
"id": "10",
|
|
139
|
+
"metadata": {},
|
|
223
140
|
"outputs": [],
|
|
224
|
-
"
|
|
141
|
+
"source": [
|
|
142
|
+
"test_catalog.delete_ermrest_catalog(really=True)"
|
|
143
|
+
]
|
|
225
144
|
}
|
|
226
145
|
],
|
|
227
146
|
"metadata": {
|