Skip to main content

The goal of this project is to make pytorch easier to use.

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

pstorch

Generate a ready-to-run PyTorch project in seconds.

Install

pip install pstorch

Python

import pstorch

pstorch.generate(
    name="MyClassifier",
    arch="mlp",
    input_dim=784,
    output_dim=10,
    hidden=[256, 128],
    metrics=["accuracy", "loss"],
    prod=False,
)

Then run the boilerplate:

python main.py

CLI

pstorch generate pytorch --input-dim 784 --output-dim 10 --hidden 256,128 --metrics accuracy,loss

Defaults example:

pstorch generate

Named default example:

pstorch generate pytorch

Output:

src/
    __init__.py
    config.py
    models.py
    data.py
    train.py
    predict.py
main.py
requirements.txt

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

pstorch-0.1.4.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

pstorch-0.1.4-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file pstorch-0.1.4.tar.gz.

File metadata

  • Download URL: pstorch-0.1.4.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.19

File hashes

Hashes for pstorch-0.1.4.tar.gz
Algorithm Hash digest
SHA256 63bdbeccf25c6550b93fa33ac27cd71676accc897954c68d7a79a494bfc98794
MD5 abeb2d8ed7a35cbf89221711a641a696
BLAKE2b-256 229dc7cbc905cba69766b0f6f1dcfdfece595dd871810b37869479e50243f5c8

See more details on using hashes here.

File details

Details for the file pstorch-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: pstorch-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.19

File hashes

Hashes for pstorch-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 385ffe3d86b66e228160dae2adcba7642f3f0a74a45f3733e887cd0b36c80d77
MD5 1ba161bb22fcd47cb590b5d8f55fcd73
BLAKE2b-256 4f5d0df509c36121bc72e5f73a4b30e3df10f8800ed78f733f3f9cf605c0b278

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