Skip to main content

Client for the Polaris Hub.

Project description

Polaris

So many stars in the sky, yet one is enough to guide you home.



🟆 Polaris Hub | 🛈 Client Doc


PyPI Conda PyPI - Downloads Conda PyPI - Python Version Code license GitHub Repo stars GitHub Repo stars

test release code-check doc

Polaris establishes a novel, industry‑certified standard to foster the development of impactful methods in AI-based drug discovery.

This library is a Python client to interact with the Polaris Hub. It allows you to:

  • Download Polaris datasets and benchmarks.
  • Evaluate a custom method against a Polaris benchmark.
  • Create and upload new datasets and benchmarks.

[!WARNING] The Polaris Hub is currently released as a closed, private beta. We hope to officially release it early 2024.

Quick API Tour

import polaris as po

# Download a benchmark (the associated dataset will be transparently downloaded)
benchmark = po.load_benchmark("org_or_user/name")

# Retrieve the splits
train, test = benchmark.get_train_test_split()

# Work your magic!
y_pred = ...

# Run the evaluation procedure
results = benchmark.evaluate(y_pred)

# Upload your results to the hub
results.upload_to_hub()

Documentation

Please refer to the documentation, which contains tutorials for getting started with polaris and detailed descriptions of the functions provided.

Installation

You can install polaris using conda/mamba/micromamba:

conda install -c conda-forge polaris

You can also use pip:

pip install polaris-lib

Development lifecycle

Setup dev environment

conda env create -n polaris -f env.yml
conda activate polaris

pip install --no-deps -e .

Tests

You can run tests locally with:

pytest

License

Under the Apache-2.0 license. See LICENSE.

Download files

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

Source Distribution

polaris-lib-0.2.1.tar.gz (374.0 kB view details)

Uploaded Source

Built Distribution

polaris_lib-0.2.1-py3-none-any.whl (63.2 kB view details)

Uploaded Python 3

File details

Details for the file polaris-lib-0.2.1.tar.gz.

File metadata

  • Download URL: polaris-lib-0.2.1.tar.gz
  • Upload date:
  • Size: 374.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for polaris-lib-0.2.1.tar.gz
Algorithm Hash digest
SHA256 59ada1d2e54d8a6368820312583aafb64b877bb7da706a043230ef17afb26c36
MD5 2efda1faa9bc20221902e2e3b085a51a
BLAKE2b-256 283d74e9ad3d41820a17b483d07ec05c4becf5500dfffabf5d1b454d0224d76d

See more details on using hashes here.

File details

Details for the file polaris_lib-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: polaris_lib-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 63.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for polaris_lib-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a1bf031697bb6ae24b2ff5a1cfaf9f2537f113d7ff7a6caa8f403d9a6d338564
MD5 4924a809e5d14845fa3bec19215fd697
BLAKE2b-256 726b0da915360e800e3b318076f29f687fc976249e10cf0018b234b98fe9cc9b

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