scale-nucleus 0.1.17__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.
- scale-nucleus-0.1.17/LICENSE +21 -0
- scale-nucleus-0.1.17/PKG-INFO +85 -0
- scale-nucleus-0.1.17/README.md +61 -0
- scale-nucleus-0.1.17/nucleus/__init__.py +1281 -0
- scale-nucleus-0.1.17/nucleus/annotation.py +329 -0
- scale-nucleus-0.1.17/nucleus/constants.py +96 -0
- scale-nucleus-0.1.17/nucleus/dataset.py +439 -0
- scale-nucleus-0.1.17/nucleus/dataset_item.py +195 -0
- scale-nucleus-0.1.17/nucleus/errors.py +53 -0
- scale-nucleus-0.1.17/nucleus/job.py +77 -0
- scale-nucleus-0.1.17/nucleus/model.py +83 -0
- scale-nucleus-0.1.17/nucleus/model_run.py +211 -0
- scale-nucleus-0.1.17/nucleus/payload_constructor.py +128 -0
- scale-nucleus-0.1.17/nucleus/prediction.py +206 -0
- scale-nucleus-0.1.17/nucleus/scene.py +241 -0
- scale-nucleus-0.1.17/nucleus/slice.py +170 -0
- scale-nucleus-0.1.17/nucleus/upload_response.py +86 -0
- scale-nucleus-0.1.17/nucleus/url_utils.py +22 -0
- scale-nucleus-0.1.17/nucleus/utils.py +175 -0
- scale-nucleus-0.1.17/pyproject.toml +60 -0
- scale-nucleus-0.1.17/setup.py +37 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Scale AI
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: scale-nucleus
|
|
3
|
+
Version: 0.1.17
|
|
4
|
+
Summary: The official Python client library for Nucleus, the Data Platform for AI
|
|
5
|
+
Home-page: https://scale.com/nucleus
|
|
6
|
+
License: MIT
|
|
7
|
+
Author: Scale AI Nucleus Team
|
|
8
|
+
Author-email: nucleusapi@scaleapi.com
|
|
9
|
+
Requires-Python: >=3.6.2,<4.0.0
|
|
10
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.7
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
+
Requires-Dist: aiohttp (>=3.7.4,<4.0.0)
|
|
16
|
+
Requires-Dist: dataclasses (>=0.7,<0.8); python_version >= "3.6.1" and python_version < "3.7"
|
|
17
|
+
Requires-Dist: nest-asyncio (>=1.5.1,<2.0.0)
|
|
18
|
+
Requires-Dist: requests (>=2.23.0,<3.0.0)
|
|
19
|
+
Requires-Dist: tqdm (>=4.41.0,<5.0.0)
|
|
20
|
+
Project-URL: Documentation, https://dashboard.scale.com/nucleus/docs/api
|
|
21
|
+
Project-URL: Repository, https://github.com/scaleapi/nucleus-python-client
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
|
|
24
|
+
# Nucleus
|
|
25
|
+
|
|
26
|
+
https://dashboard.scale.com/nucleus
|
|
27
|
+
|
|
28
|
+
Aggregate metrics in ML are not good enough. To improve production ML, you need to understand their qualitative failure modes, fix them by gathering more data, and curate diverse scenarios.
|
|
29
|
+
|
|
30
|
+
Scale Nucleus helps you:
|
|
31
|
+
|
|
32
|
+
- Visualize your data
|
|
33
|
+
- Curate interesting slices within your dataset
|
|
34
|
+
- Review and manage annotations
|
|
35
|
+
- Measure and debug your model performance
|
|
36
|
+
|
|
37
|
+
Nucleus is a new way—the right way—to develop ML models, helping us move away from the concept of one dataset and towards a paradigm of collections of scenarios.
|
|
38
|
+
|
|
39
|
+
## Installation
|
|
40
|
+
|
|
41
|
+
`$ pip install scale-nucleus`
|
|
42
|
+
|
|
43
|
+
## Common issues/FAQ
|
|
44
|
+
|
|
45
|
+
### Outdated Client
|
|
46
|
+
|
|
47
|
+
Nucleus is iterating rapidly and as a result we do not always perfectly preserve backwards compatibility with older versions of the client. If you run into any unexpected error, it's a good idea to upgrade your version of the client by running
|
|
48
|
+
```
|
|
49
|
+
pip install --upgrade scale-nucleus
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Usage
|
|
53
|
+
|
|
54
|
+
For the most up to date documentation, reference: https://dashboard.scale.com/nucleus/docs/api?language=python.
|
|
55
|
+
|
|
56
|
+
## For Developers
|
|
57
|
+
|
|
58
|
+
Clone from github and install as editable
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
git clone git@github.com:scaleapi/nucleus-python-client.git
|
|
62
|
+
cd nucleus-python-client
|
|
63
|
+
pip3 install poetry
|
|
64
|
+
poetry install
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Please install the pre-commit hooks by running the following command:
|
|
68
|
+
|
|
69
|
+
```python
|
|
70
|
+
poetry run pre-commit install
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
**Best practices for testing:**
|
|
74
|
+
(1). Please run pytest from the root directory of the repo, i.e.
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
poetry run pytest tests/test_dataset.py
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
(2) To skip slow integration tests that have to wait for an async job to start.
|
|
81
|
+
|
|
82
|
+
```
|
|
83
|
+
poetry run pytest -m "not integration"
|
|
84
|
+
```
|
|
85
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Nucleus
|
|
2
|
+
|
|
3
|
+
https://dashboard.scale.com/nucleus
|
|
4
|
+
|
|
5
|
+
Aggregate metrics in ML are not good enough. To improve production ML, you need to understand their qualitative failure modes, fix them by gathering more data, and curate diverse scenarios.
|
|
6
|
+
|
|
7
|
+
Scale Nucleus helps you:
|
|
8
|
+
|
|
9
|
+
- Visualize your data
|
|
10
|
+
- Curate interesting slices within your dataset
|
|
11
|
+
- Review and manage annotations
|
|
12
|
+
- Measure and debug your model performance
|
|
13
|
+
|
|
14
|
+
Nucleus is a new way—the right way—to develop ML models, helping us move away from the concept of one dataset and towards a paradigm of collections of scenarios.
|
|
15
|
+
|
|
16
|
+
## Installation
|
|
17
|
+
|
|
18
|
+
`$ pip install scale-nucleus`
|
|
19
|
+
|
|
20
|
+
## Common issues/FAQ
|
|
21
|
+
|
|
22
|
+
### Outdated Client
|
|
23
|
+
|
|
24
|
+
Nucleus is iterating rapidly and as a result we do not always perfectly preserve backwards compatibility with older versions of the client. If you run into any unexpected error, it's a good idea to upgrade your version of the client by running
|
|
25
|
+
```
|
|
26
|
+
pip install --upgrade scale-nucleus
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Usage
|
|
30
|
+
|
|
31
|
+
For the most up to date documentation, reference: https://dashboard.scale.com/nucleus/docs/api?language=python.
|
|
32
|
+
|
|
33
|
+
## For Developers
|
|
34
|
+
|
|
35
|
+
Clone from github and install as editable
|
|
36
|
+
|
|
37
|
+
```
|
|
38
|
+
git clone git@github.com:scaleapi/nucleus-python-client.git
|
|
39
|
+
cd nucleus-python-client
|
|
40
|
+
pip3 install poetry
|
|
41
|
+
poetry install
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Please install the pre-commit hooks by running the following command:
|
|
45
|
+
|
|
46
|
+
```python
|
|
47
|
+
poetry run pre-commit install
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
**Best practices for testing:**
|
|
51
|
+
(1). Please run pytest from the root directory of the repo, i.e.
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
poetry run pytest tests/test_dataset.py
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
(2) To skip slow integration tests that have to wait for an async job to start.
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
poetry run pytest -m "not integration"
|
|
61
|
+
```
|