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
# from importlib.resources import files # uncomment to use built-in data
# OPTION 1: Use your own data
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 (uncomment below)
# data_dir = str(files('phyto_nas_tsc.data')) # path to included data
# X, y = None, None # let the package load data automatically
# Run optimization
result = fit(
X=X, # comment out if using built-in data
y=y, # comment out if using built-in data
# data_dir=data_dir, # uncomment if using built-in data
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.4.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.4.tar.gz.
File metadata
- Download URL: phyto_nas_tsc-0.1.4.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 |
8278814f40285e5d827957ee6d1c8b46f0922a819ddd88ee0d37bbde5f3b23b5
|
|
| MD5 |
2ba6834c9780963112506dcfc70f3a49
|
|
| BLAKE2b-256 |
883bf4a2ac13d76db7feaf6d1c2bff8a9a16e32edfa63ab397c32f28ddb60eea
|
File details
Details for the file phyto_nas_tsc-0.1.4-py3-none-any.whl.
File metadata
- Download URL: phyto_nas_tsc-0.1.4-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 |
c301b39f8a93ba91daa8770db5156e0bec8b9ca07c21f73f6e8ce25452dfb693
|
|
| MD5 |
fe61ea10b0aee79dee04acee23f59638
|
|
| BLAKE2b-256 |
f24b8fcdb675542978e6f764c2232f84612d31bb9d959e31d79dae874efc003e
|