Skip to main content

torch-model

Keras-like torch module wrapper

Tested with Torch 1.8.0

Install

$ pip install torch-model

Usage

from torch_model import Model
from torch_model.callbacks import EarlyStopping

model = Model(MyPyTorchModule())

model.compile(
    loss='mse',
    optimizer='adam',
    metrics=['mae', 'mape']
)

history = model.fit(
    train_ds,
    validation_data=val_ds,
    callbacks=[
        EarlyStopping(monitor='val_loss', patience=5)
    ]
)

# The original torch module
model.module

License

MIT

Metadata

Release files for torch-model 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for torch-model 0.0.1
File Size Uploaded Provenance
torch-model-0.0.1.tar.gz 2.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for torch-model 0.0.1
File Interpreter ABI Platform
torch_model-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.2 kB

Release files / torch-model-0.0.1.tar.gz

Download URL torch-model-0.0.1.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
cb4774000ea52af2e8cc80db25482759b924138ed7a467b0048862da30487f1f
BLAKE2b-256 checksum
How to use checksums
da822f0b5a023bea6c38b42c22210d2dce7491a7f546842436b294d63f73d056
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release files / torch_model-0.0.1-py3-none-any.whl

Download URL torch_model-0.0.1-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b47c480cd7bda632b0192ac8a8b1a72d2fa881ad52811f8c90942dcf3a86b8a
BLAKE2b-256 checksum
How to use checksums
5048a2125e0c239afe0d6885a7722edbb53bea24e7b3b7c3b659d8b69236aab6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Security for torch-model 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page