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=X, # comment out if using built-in data
y=y, # comment out if using built-in data
scoring='accuracy', # metric to optimize
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.8.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.8.tar.gz.
File metadata
- Download URL: phyto_nas_tsc-0.1.8.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 |
d963e5c3b56c666f4bfb3690939cab46b1caecc4f894d86528d70a7d766b5f2d
|
|
| MD5 |
93b40f88e2b8a024442f9dc8294494f6
|
|
| BLAKE2b-256 |
14a5229aa94579185aab172823bad28f053c8aa6e05b37d4bea4c79e39e55584
|
File details
Details for the file phyto_nas_tsc-0.1.8-py3-none-any.whl.
File metadata
- Download URL: phyto_nas_tsc-0.1.8-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 |
2654e843e80c9a91f5ac53955dea80b121bb8912f9c20fd2d6b0c51a32a8d702
|
|
| MD5 |
77c4d840a55894b7470e75c148f7bf1a
|
|
| BLAKE2b-256 |
53c0ab73bdc4f13257dab8194204d76985a94c4f514cfe41ef685b046f04de33
|