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
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.7.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.7.tar.gz.
File metadata
- Download URL: phyto_nas_tsc-0.1.7.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 |
525cd3fef22592c164c99220be4476b2c7c075a4321c2ebd0b53591e77881c59
|
|
| MD5 |
35bbba7f29c9586b7c0580b0d680977f
|
|
| BLAKE2b-256 |
8b3c79349d0ad54d0eadfeb0fe048f0ca850b21782d0fbd3903d1d9867ec2837
|
File details
Details for the file phyto_nas_tsc-0.1.7-py3-none-any.whl.
File metadata
- Download URL: phyto_nas_tsc-0.1.7-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 |
a058de3af4752ff4db95923604c6fd00514b8bb04177d6dc9c3142c25f826985
|
|
| MD5 |
9b575c83a8caf153fc5470b7baf1a7a4
|
|
| BLAKE2b-256 |
53688de97358efab845017a2ac182a97a41193d9c200067ef9af1e15d60396ae
|