Skip to main content

Standardizing molecular modeling

Project description

Build and test Publish to PyPI 📦

Jaqpotpy

The jaqpotpy library enables you to upload and deploy machine learning models to the Jaqpot platform. Once uploaded, you can manage, document, and share your models via the Jaqpot user interface at https://app.jaqpot.org. You can also make predictions online or programmatically using the Jaqpot API.

Getting Started

Prerequisites

Installation

Install jaqpotpy using pip:

pip install jaqpotpy

Logging In

To use jaqpotpy, you need to log in to the Jaqpot platform. You can log in using the login() method

Login with Username and Password

from jaqpotpy import Jaqpot

jaqpot = Jaqpot()
jaqpot.login() # follow the steps here to login through the command line 

Model Training and Deployment

Follow these steps to train and deploy your model on Jaqpot:

1. Train your model using pandas DataFrame as input.
2. Deploy the trained model using the deploy_on_jaqpot function.

Example Code

Note: Ensure you use a pandas DataFrame for training your model.

from jaqpotpy import Jaqpot
import pandas as pd
from sklearn.linear_model import LinearRegression

# Initialize Jaqpot
jaqpot = Jaqpot()

# Load your data
df = pd.read_csv('/path/to/gdp.csv')

# Train your model
lm = LinearRegression()
y = df['GDP']
X = df[['LFG', 'EQP', 'NEQ', 'GAP']]
model = lm.fit(X=X, y=y)

# Deploy the model on Jaqpot
jaqpot.deploy_sklearn(model, X, y, title="GDP Model", description="Predicting GDP based on various factors")

The function will provide you with the model ID that you can use to manage your model through the user interface and API.

Result:

- INFO - Model with ID: <model_id> created. Visit the application to proceed.

Managing Your Models

You can further manage your models through the Jaqpot user interface at https://app.jaqpot.org. This platform allows you to view detailed documentation, share models with your contacts, and make predictions.

Releasing to PyPI

Releasing the latest version of jaqpotpy to PyPI is automated via GitHub Actions. When you create a new release on GitHub, the workflow is triggered to publish the latest version to the PyPI registry.

How to Release

  1. Follow Semantic Versioning: Use the format 1.XX.YY where XX is the minor version and YY is the patch version.

  2. Create a New Release:

  • Navigate to the repository’s Releases section.
  • Click on Draft a new release.
  1. Generate Release Notes:

Use GitHub’s feature to automatically generate release notes or customize them as needed.

  1. Publish the Release:

Once published, the GitHub Action will automatically upload the latest files to the PyPI registry.

After the release is completed, the new version of jaqpotpy will be available on PyPI and ready for users to install.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

jaqpotpy-6.8.0.tar.gz (112.2 kB view details)

Uploaded Source

Built Distribution

jaqpotpy-6.8.0-py3-none-any.whl (220.5 kB view details)

Uploaded Python 3

File details

Details for the file jaqpotpy-6.8.0.tar.gz.

File metadata

  • Download URL: jaqpotpy-6.8.0.tar.gz
  • Upload date:
  • Size: 112.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for jaqpotpy-6.8.0.tar.gz
Algorithm Hash digest
SHA256 3e242f450d036b3c3c63e3cdc7da726b30581a3203d43c5715d9f1ad3173c572
MD5 63717231fda085c127cd9a918728ff33
BLAKE2b-256 a3f924160f042cfdc25063f4189a97ed1f81f6c4c5ef1844cb512c97ae308673

See more details on using hashes here.

File details

Details for the file jaqpotpy-6.8.0-py3-none-any.whl.

File metadata

  • Download URL: jaqpotpy-6.8.0-py3-none-any.whl
  • Upload date:
  • Size: 220.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for jaqpotpy-6.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e66892ad1077acae8f81a04c0d348036547c5c84551a918173d527b8f02d265
MD5 a7e0decd90c8cdf5db0a4110cf0cb2b9
BLAKE2b-256 80cb57a4db34101dc1e2186b790e16a2825a3cac615f8a4ae9f1b64b2ac8ea0e

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