aspect-data 0.0.2__tar.gz → 0.0.3__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.
- {aspect_data-0.0.2 → aspect_data-0.0.3}/PKG-INFO +6 -6
- {aspect_data-0.0.2 → aspect_data-0.0.3}/README.md +5 -5
- {aspect_data-0.0.2 → aspect_data-0.0.3}/aspect/data.py +9 -5
- {aspect_data-0.0.2 → aspect_data-0.0.3}/aspect/transform/base.py +1 -1
- {aspect_data-0.0.2 → aspect_data-0.0.3}/aspect_data.egg-info/PKG-INFO +6 -6
- {aspect_data-0.0.2 → aspect_data-0.0.3}/pyproject.toml +1 -1
- {aspect_data-0.0.2 → aspect_data-0.0.3}/LICENSE +0 -0
- {aspect_data-0.0.2 → aspect_data-0.0.3}/aspect/__init__.py +0 -0
- {aspect_data-0.0.2 → aspect_data-0.0.3}/aspect/checkpoint_utils.py +0 -0
- {aspect_data-0.0.2 → aspect_data-0.0.3}/aspect/cli_module/__init__.py +0 -0
- {aspect_data-0.0.2 → aspect_data-0.0.3}/aspect/cli_module/cli.py +0 -0
- {aspect_data-0.0.2 → aspect_data-0.0.3}/aspect/cli_module/featurize.py +0 -0
- {aspect_data-0.0.2 → aspect_data-0.0.3}/aspect/cli_module/io.py +0 -0
- {aspect_data-0.0.2 → aspect_data-0.0.3}/aspect/io.py +0 -0
- {aspect_data-0.0.2 → aspect_data-0.0.3}/aspect/package_data.py +0 -0
- {aspect_data-0.0.2 → aspect_data-0.0.3}/aspect/transform/__init__.py +0 -0
- {aspect_data-0.0.2 → aspect_data-0.0.3}/aspect/transform/deep_functions.py +0 -0
- {aspect_data-0.0.2 → aspect_data-0.0.3}/aspect/transform/functions.py +0 -0
- {aspect_data-0.0.2 → aspect_data-0.0.3}/aspect/transform/registry.py +0 -0
- {aspect_data-0.0.2 → aspect_data-0.0.3}/aspect/typing.py +0 -0
- {aspect_data-0.0.2 → aspect_data-0.0.3}/aspect_data.egg-info/SOURCES.txt +0 -0
- {aspect_data-0.0.2 → aspect_data-0.0.3}/aspect_data.egg-info/dependency_links.txt +0 -0
- {aspect_data-0.0.2 → aspect_data-0.0.3}/aspect_data.egg-info/entry_points.txt +0 -0
- {aspect_data-0.0.2 → aspect_data-0.0.3}/aspect_data.egg-info/requires.txt +0 -0
- {aspect_data-0.0.2 → aspect_data-0.0.3}/aspect_data.egg-info/top_level.txt +0 -0
- {aspect_data-0.0.2 → aspect_data-0.0.3}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aspect-data
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.3
|
|
4
4
|
Summary: General purpose, chemistry, and taxonomic featurization of tabular data with caching.
|
|
5
5
|
Author-email: Eachan Johnson <eachan.johnson@crick.ac.uk>
|
|
6
6
|
License: MIT License
|
|
@@ -234,7 +234,7 @@ pip install "aspect-data[bio]"
|
|
|
234
234
|
Install transformer support if you want Hugging Face model embeddings:
|
|
235
235
|
|
|
236
236
|
```bash
|
|
237
|
-
pip install "aspect[deep]"
|
|
237
|
+
pip install "aspect-data[deep]"
|
|
238
238
|
```
|
|
239
239
|
|
|
240
240
|
### Development installation
|
|
@@ -507,7 +507,7 @@ pipe = DataPipeline({
|
|
|
507
507
|
Require:
|
|
508
508
|
|
|
509
509
|
```bash
|
|
510
|
-
pip install "aspect[chem]"
|
|
510
|
+
pip install "aspect-data[chem]"
|
|
511
511
|
```
|
|
512
512
|
|
|
513
513
|
| Transform | Input | Output |
|
|
@@ -542,7 +542,7 @@ features = pipe(data, drop_unused_columns=True)
|
|
|
542
542
|
Require:
|
|
543
543
|
|
|
544
544
|
```bash
|
|
545
|
-
pip install "aspect[bio]"
|
|
545
|
+
pip install "aspect-data[bio]"
|
|
546
546
|
```
|
|
547
547
|
|
|
548
548
|
| Transform | Input | Output |
|
|
@@ -577,7 +577,7 @@ features = pipe(data)
|
|
|
577
577
|
Require:
|
|
578
578
|
|
|
579
579
|
```bash
|
|
580
|
-
pip install "aspect[deep]"
|
|
580
|
+
pip install "aspect-data[deep]"
|
|
581
581
|
```
|
|
582
582
|
|
|
583
583
|
| Transform | Input | Output |
|
|
@@ -620,7 +620,7 @@ The model will be loaded through Hugging Face `transformers`, so the first run m
|
|
|
620
620
|
Require:
|
|
621
621
|
|
|
622
622
|
```bash
|
|
623
|
-
pip install "aspect[chemprop]"
|
|
623
|
+
pip install "aspect-data[chemprop]"
|
|
624
624
|
```
|
|
625
625
|
|
|
626
626
|
`chemprop-mol` is intended for converting SMILES into Chemprop-style molecular datapoints, with optional labels and extra dense features.
|
|
@@ -172,7 +172,7 @@ pip install "aspect-data[bio]"
|
|
|
172
172
|
Install transformer support if you want Hugging Face model embeddings:
|
|
173
173
|
|
|
174
174
|
```bash
|
|
175
|
-
pip install "aspect[deep]"
|
|
175
|
+
pip install "aspect-data[deep]"
|
|
176
176
|
```
|
|
177
177
|
|
|
178
178
|
### Development installation
|
|
@@ -445,7 +445,7 @@ pipe = DataPipeline({
|
|
|
445
445
|
Require:
|
|
446
446
|
|
|
447
447
|
```bash
|
|
448
|
-
pip install "aspect[chem]"
|
|
448
|
+
pip install "aspect-data[chem]"
|
|
449
449
|
```
|
|
450
450
|
|
|
451
451
|
| Transform | Input | Output |
|
|
@@ -480,7 +480,7 @@ features = pipe(data, drop_unused_columns=True)
|
|
|
480
480
|
Require:
|
|
481
481
|
|
|
482
482
|
```bash
|
|
483
|
-
pip install "aspect[bio]"
|
|
483
|
+
pip install "aspect-data[bio]"
|
|
484
484
|
```
|
|
485
485
|
|
|
486
486
|
| Transform | Input | Output |
|
|
@@ -515,7 +515,7 @@ features = pipe(data)
|
|
|
515
515
|
Require:
|
|
516
516
|
|
|
517
517
|
```bash
|
|
518
|
-
pip install "aspect[deep]"
|
|
518
|
+
pip install "aspect-data[deep]"
|
|
519
519
|
```
|
|
520
520
|
|
|
521
521
|
| Transform | Input | Output |
|
|
@@ -558,7 +558,7 @@ The model will be loaded through Hugging Face `transformers`, so the first run m
|
|
|
558
558
|
Require:
|
|
559
559
|
|
|
560
560
|
```bash
|
|
561
|
-
pip install "aspect[chemprop]"
|
|
561
|
+
pip install "aspect-data[chemprop]"
|
|
562
562
|
```
|
|
563
563
|
|
|
564
564
|
`chemprop-mol` is intended for converting SMILES into Chemprop-style molecular datapoints, with optional labels and extra dense features.
|
|
@@ -401,11 +401,15 @@ class DataPipeline:
|
|
|
401
401
|
def _unsqueeze(
|
|
402
402
|
x: Mapping[str, ArrayLike]
|
|
403
403
|
) -> Dict[str, np.ndarray]:
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
404
|
+
def _unsqueeze(x, columns=None):
|
|
405
|
+
columns = columns or x.keys()
|
|
406
|
+
for key in columns:
|
|
407
|
+
vals = x[key]
|
|
408
|
+
if not isinstance(vals, dict):
|
|
409
|
+
vals = np.asarray(x[key])
|
|
410
|
+
if vals.ndim == 1 and np.issubdtype(vals.dtype, np.number):
|
|
411
|
+
x[key] = vals[:, None]
|
|
412
|
+
return x
|
|
409
413
|
|
|
410
414
|
def __call__(
|
|
411
415
|
self,
|
|
@@ -166,7 +166,7 @@ class ColumnTransform:
|
|
|
166
166
|
inputs: Mapping[str, Iterable]
|
|
167
167
|
) -> np.ndarray:
|
|
168
168
|
result = self.function(inputs, self.input_column)
|
|
169
|
-
if result.ndim == 1:
|
|
169
|
+
if hasattr(result, "ndim") and result.ndim == 1:
|
|
170
170
|
result = result[:, None]
|
|
171
171
|
return result
|
|
172
172
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: aspect-data
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.3
|
|
4
4
|
Summary: General purpose, chemistry, and taxonomic featurization of tabular data with caching.
|
|
5
5
|
Author-email: Eachan Johnson <eachan.johnson@crick.ac.uk>
|
|
6
6
|
License: MIT License
|
|
@@ -234,7 +234,7 @@ pip install "aspect-data[bio]"
|
|
|
234
234
|
Install transformer support if you want Hugging Face model embeddings:
|
|
235
235
|
|
|
236
236
|
```bash
|
|
237
|
-
pip install "aspect[deep]"
|
|
237
|
+
pip install "aspect-data[deep]"
|
|
238
238
|
```
|
|
239
239
|
|
|
240
240
|
### Development installation
|
|
@@ -507,7 +507,7 @@ pipe = DataPipeline({
|
|
|
507
507
|
Require:
|
|
508
508
|
|
|
509
509
|
```bash
|
|
510
|
-
pip install "aspect[chem]"
|
|
510
|
+
pip install "aspect-data[chem]"
|
|
511
511
|
```
|
|
512
512
|
|
|
513
513
|
| Transform | Input | Output |
|
|
@@ -542,7 +542,7 @@ features = pipe(data, drop_unused_columns=True)
|
|
|
542
542
|
Require:
|
|
543
543
|
|
|
544
544
|
```bash
|
|
545
|
-
pip install "aspect[bio]"
|
|
545
|
+
pip install "aspect-data[bio]"
|
|
546
546
|
```
|
|
547
547
|
|
|
548
548
|
| Transform | Input | Output |
|
|
@@ -577,7 +577,7 @@ features = pipe(data)
|
|
|
577
577
|
Require:
|
|
578
578
|
|
|
579
579
|
```bash
|
|
580
|
-
pip install "aspect[deep]"
|
|
580
|
+
pip install "aspect-data[deep]"
|
|
581
581
|
```
|
|
582
582
|
|
|
583
583
|
| Transform | Input | Output |
|
|
@@ -620,7 +620,7 @@ The model will be loaded through Hugging Face `transformers`, so the first run m
|
|
|
620
620
|
Require:
|
|
621
621
|
|
|
622
622
|
```bash
|
|
623
|
-
pip install "aspect[chemprop]"
|
|
623
|
+
pip install "aspect-data[chemprop]"
|
|
624
624
|
```
|
|
625
625
|
|
|
626
626
|
`chemprop-mol` is intended for converting SMILES into Chemprop-style molecular datapoints, with optional labels and extra dense features.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|