Skip to main content

Tangram for Python

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for tangram, version 0.7.0
Filename, size File type Python version Upload date Hashes
Filename, size tangram-0.7.0-cp36-abi3-macosx_11_0_universal2.whl (4.3 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size tangram-0.7.0-cp36-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_24_aarch64.whl (2.5 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size tangram-0.7.0-cp36-abi3-manylinux_2_24_x86_64.whl (2.6 MB) File type Wheel Python version cp36 Upload date Hashes View
Filename, size tangram-0.7.0-cp36-abi3-win_amd64.whl (1.9 MB) File type Wheel Python version cp36 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page