Skip to main content

A lightweight module for Multi-Task Learning in pytorch

Project description

alt text
A lightweight module for Multi-Task Learning in pytorch.

torchmtl tries to help you composing modular multi-task architectures with minimal effort. All you need is a list of dictionaries in which you define your layers and how they build on each other. From this, torchmtl constructs a meta-computation graph which is executed in each forward pass of the created MTLModel. To combine outputs from multiple layers, simple wrapper functions are provided.

Installation

torchmtl can be installed via pip:

pip install torchmtl

Quickstart

Assume you want to use two different embeddings of your input, combine them and then solve different prediction tasks.

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

torchmtl-0.1.4.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

torchmtl-0.1.4-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: torchmtl-0.1.4.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.7.4 Linux/3.13.0-144-generic

File hashes

Hashes for torchmtl-0.1.4.tar.gz
Algorithm Hash digest
SHA256 8e50eb2b2f1a385f65ea61767c2d9f5432316581fb62ce27080d139e05513496
MD5 b6648896f225d5cb9a2fb7316e16c812
BLAKE2b-256 d816a65768f6d30d91b7c3b492514d0ab7e163a39929c52e6023be33ae9afa7e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: torchmtl-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.7.4 Linux/3.13.0-144-generic

File hashes

Hashes for torchmtl-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 263d1958e885806a2ad4a863517c4b6c6bf806fc8532d31fae8a8d3946fc4ccb
MD5 30fb9b7ee0e01b4159e0309634629fd9
BLAKE2b-256 064a0629205d0c0e59b626c6057539ad5901ae86c68ce7861af45d75cd2b716c

See more details on using hashes here.

Supported by

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