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

# Load the benchmark from the Hub
benchmark = po.load_benchmark("polaris/hello_world_benchmark")

# Get the train and test data-loaders
train, test = benchmark.get_train_test_split()

# Use the training data to train your model
# Get the input as an array with 'train.inputs' and 'train.targets'  
# Or simply iterate over the train object.
for x, y in train:
    ...

# Work your magic to accurately predict the test set
predictions = [0.0 for x in test]

# Evaluate your predictions
results = benchmark.evaluate(predictions)

# Submit your results
results.upload_to_hub(owner="dummy-user")

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.2.tar.gz (375.4 kB view details)

Uploaded Source

Built Distribution

polaris_lib-0.2.2-py3-none-any.whl (64.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: polaris-lib-0.2.2.tar.gz
  • Upload date:
  • Size: 375.4 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.2.tar.gz
Algorithm Hash digest
SHA256 bee7149f2b5cc7d9775b8d21c3de331eece856ac1e7bb518308da2793b0b48a9
MD5 e6069562f6431ba8e8acae206c05a6ad
BLAKE2b-256 db7ecc844aba41b7920decbf7b1c18038d78e82ca6fbb440ed9bf445e87172d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: polaris_lib-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 64.4 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b15addadef5585cce9bf6cb284046c87e4118879d707adcac5c21106b8650475
MD5 19489d1990ea2c10bf09dc3e31db15ab
BLAKE2b-256 fba5aafbf8d1878f9d4c992927320b4911344d47e5a6d5996bcbbbe4cacf311f

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