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
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.5.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.5.tar.gz.
File metadata
- Download URL: phyto_nas_tsc-0.1.5.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 |
043ab7526eb847b726a836e75b80677af230c24bb016929358aca76ffc989ecd
|
|
| MD5 |
a6545a7c4d20f47360271b0032974dd9
|
|
| BLAKE2b-256 |
20b0f2fcc4830ef717f9169cbe7154c673eb36942724b704e74603b62f5bc35d
|
File details
Details for the file phyto_nas_tsc-0.1.5-py3-none-any.whl.
File metadata
- Download URL: phyto_nas_tsc-0.1.5-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 |
c747a8640525703f9adb944365a301731d903630b0596c8e97ca83bb78fcb12f
|
|
| MD5 |
1858d044b932021eca9114d0dafd47ce
|
|
| BLAKE2b-256 |
40af2913aa3204b4513e673ef2c6cea4f7ef8099d1a83e501deffb4ed000f3d0
|