Tangram for Python
The Tangram Python library makes it easy to make predictions with your Tangram machine learning model from Python.
Usage
$ pip install tangram
import tangram
model = tangram.Model.from_path('./heart_disease.tangram')
input = {
'age': 63,
'gender': 'male',
# ...
}
output = model.predict(input)
For more information, read the docs.
Platform Support
Tangram for Python is currently supported on Linux, macOS, and Windows with ARM64 and AMD64 CPUs. Are you interested in another platform? Open an issue or send us an email at help@tangram.dev.
Examples
The source for this package contains a number of examples in the examples directory. Each example has a README.md explaining how to run it.
Notes
- Tangram for Python requires pip 20.3 or later, which includes support for PEP 600. This is necessary to correctly install tangram's native extension. If you are using an earlier python version, you may see the error "Could not find a version that satisfies the requirement tangram" when you attempt to
pip install tangram. To resolve this, you should upgrade pip to version 20.3 or later.
Release files for tangram 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| tangram-0.7.0-cp36-abi3-win_amd64.whl | CPython 3.6 | abi3 | Windows x86-64 | Details |
| tangram-0.7.0-cp36-abi3-manylinux_2_24_x86_64.whl | CPython 3.6 | abi3 | Linux glibc 2.24+ x86-64 | Details |
| tangram-0.7.0-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_24_aarch64.whl | CPython 3.6 | abi3 | Linux glibc 2.17+ ARM64, Linux glibc 2.24+ ARM64 | Details |
| tangram-0.7.0-cp36-abi3-macosx_11_0_universal2.whl | CPython 3.6 | abi3 | macOS 11.0+ universal2 (ARM64, x86-64) | Details |
Total release size: 11.2 MB
Release files / tangram-0.7.0-cp36-abi3-win_amd64.whl
| Download URL | tangram-0.7.0-cp36-abi3-win_amd64.whl |
|---|---|
| Size | 1.9 MB |
| Tags | CPython 3.6 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
7287d2d4e1134dee1271ed572cb2b5c2e256c6c290a3cbe1cc96b4717b3c51c5
|
|
BLAKE2b-256 checksum How to use checksums |
1db3b0ad990ec1827ea7779972757d8a95519cfe258e2da0984a3517ded667ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
|
Release files / tangram-0.7.0-cp36-abi3-manylinux_2_24_x86_64.whl
| Download URL | tangram-0.7.0-cp36-abi3-manylinux_2_24_x86_64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.6 Linux glibc 2.24+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
f720aa66136deb1a709380e7400e44a3f61f775a88987e6f24c35c430fd2d57e
|
|
BLAKE2b-256 checksum How to use checksums |
21e4d5624210d5e6e54d8fd2ee158ce8e993857a99b3fd84c2020cd2509573fe
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
|
Release files / tangram-0.7.0-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_24_aarch64.whl
| Download URL | tangram-0.7.0-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_24_aarch64.whl |
|---|---|
| Size | 2.5 MB |
| Tags | CPython 3.6 Linux glibc 2.17+ ARM64 Linux glibc 2.24+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
a5e8a1a819caaa102cd561ab46d2b0a2d18989640e821f307c749a9e3909a320
|
|
BLAKE2b-256 checksum How to use checksums |
00f906b1ecb6b2e6446da3e782b12b9dacd3fe99faec01eb72b4a45869e533ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
|
Release files / tangram-0.7.0-cp36-abi3-macosx_11_0_universal2.whl
| Download URL | tangram-0.7.0-cp36-abi3-macosx_11_0_universal2.whl |
|---|---|
| Size | 4.3 MB |
| Tags | CPython 3.6 abi3 macOS 11.0+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
b9b11147fca1ffbd5c3810b654c85b853b6e14037b48242c01316cbd2a6c318e
|
|
BLAKE2b-256 checksum How to use checksums |
d1accf2ca8a616e03558ba998b6ced871340c580f856c9fc549633b86e53d456
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
|