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="pytorch",
    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.6.tar.gz (6.3 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.6-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pstorch-0.1.6.tar.gz
Algorithm Hash digest
SHA256 652324fc1239092084220800c2e6dcb4e47743e68cf14bc3a5e2e804b9bc1f98
MD5 ba5e380dee08e5ad04fd7ba7f51b2838
BLAKE2b-256 127aced8d647920afe69b94c5dd30789b1097fef3587595983e17c86b7fcdfa4

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pstorch-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a5d9df0a7d87c1c36ca75bb114ff2274fe4cc73844039eae14e0abc61c267300
MD5 b436a8a054e62a1b8af656a00ee62958
BLAKE2b-256 ac751876715c0a2f79f2bbd743313b4273d43a11cbca1412743f04be659aac4a

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