Phyto Neural Architecture Search for Time Series Classification
Project description
Phyto-NAS-TSC
An evolutionary approach to automatically design optimal neural network architectures for time series classification tasks.
Installation
pip install phyto-nas-tsc
## Installation directly from source
git clone https://github.com/carmelyr/Phyto-NAS-T.git
cd Phyto-NAS-T
pip install -e .
## Features
- Evolutionary algorithm for architecture search
- Optimized for time series data (1D signals)
- Optimized for LSTM model
- Tracks optimization history and metrics
- GPU-accelerated training
## Quickstart
```python
import numpy as np
from phyto_nas_tsc import fit
# OPTION 1: Use your own data (uncomment)
#X = np.random.randn(100, 1, 10) # 100 samples, 1 timestep, 10 features
#y = np.zeros((100, 2)) # one-hot encoded labels
#y[:50, 0] = 1 # first 50 samples = class 0
#y[50:, 1] = 1 # next 50 samples = class 1
# OPTION 2: Use built-in dataset # let the package load data automatically
# Run optimization
result = fit(
X=None, # X is None, so the package will load data
y=None,
data_dir=None,
scoring='accuracy',
others={
'population_size': 5, # required
'generations': 3, # required
'early_stopping': True # optional
}
)
print(f"Best Accuracy: {result['accuracy']:.4f}")
print("Best Architecture:")
for param, value in result['architecture'].items():
print(f" {param}: {value}")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
phyto_nas_tsc-0.1.6.tar.gz
(1.6 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file phyto_nas_tsc-0.1.6.tar.gz.
File metadata
- Download URL: phyto_nas_tsc-0.1.6.tar.gz
- Upload date:
- Size: 1.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31b26ab6168cb3aa21e29192a0e5c2048d7e13176e5c2f3cc17639a5f6ce0e07
|
|
| MD5 |
ae7cd6189518b163dc52cc0170433037
|
|
| BLAKE2b-256 |
467c840ae7f025faa07bd22ad8123d7eeaddfd935571f04048a649de6885faa1
|
File details
Details for the file phyto_nas_tsc-0.1.6-py3-none-any.whl.
File metadata
- Download URL: phyto_nas_tsc-0.1.6-py3-none-any.whl
- Upload date:
- Size: 1.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1345fc22aba841c7ef66cdfeff90184a3e9d50c6fa0e58d7fbd80ba229fa2794
|
|
| MD5 |
23fed97faa058812179bb1531c19514c
|
|
| BLAKE2b-256 |
10f2966b9481d4438f0d6e5ccc4af0434aa007efe974de75dbbf118b12b28cce
|