Skip to main content

a package of network architecture search

Project description

nas: a package of Network Architecture Search

This package implements the most commonly used Network Architecture Search (NAS) algorithms.

Usage Example

from sklearn.datasets import make_classification
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
import torch

# Generate synthetic dataset
x, y = make_classification(n_samples=1000, n_features=10, n_classes=2)
train_features, validate_features, train_targets, validate_targets = train_test_split(x, y, test_size=0.2)
scaler = StandardScaler()
train_features = scaler.fit_transform(train_features)
validate_features = scaler.transform(validate_features)

# Search
evolutionary_searcher = EvolutionarySearcher(input_dim=10, output_dim=2, population_size=10, mutation_rate=0.1, crossover_rate=0.7, generations=10)
best_architecture = evolutionary_searcher.search(train_features, train_targets, validate_features, validate_targets, verbose=True)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nas-0.1.0.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nas-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file nas-0.1.0.tar.gz.

File metadata

  • Download URL: nas-0.1.0.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for nas-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6885d2ac98c277dc4ee43fe0a67fce972e4fef0c07bdf1625d028e3218c5ab7d
MD5 7aa729e8e38899e01f4626ddea3404a9
BLAKE2b-256 574cc46ba5194d139ef8d06879e2c2c3063b75dcb325bf587b51fc1832b3608b

See more details on using hashes here.

File details

Details for the file nas-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: nas-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for nas-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb43b353f9ff2846a44bee346f888e2815ae0144a0d62220b2340eb38363aece
MD5 d452cd93d78b9db757d0895761febdb9
BLAKE2b-256 25b67b657800f1bf95400892165a86b38ec4745bfd6be0459fad224e7e470ab2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page