Skip to main content

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

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

import pandas as pd
import numpy as np
from sklearn.ensemble import RandomForestRegressor
from jaqpotpy import Jaqpot
from jaqpotpy.datasets import JaqpotTabularDataset
from jaqpotpy.models import SklearnModel

# Creating a Simulated Dataset for Model Training
np.random.seed(42)
X1 = np.random.rand(100)
X2 = np.random.rand(100)
ACTIVITY = 2 * X1 + 3 * X2 + np.random.randn(100) * 0.1
df = pd.DataFrame({"X1": X1, "X2": X2, "ACTIVITY": ACTIVITY})
y_cols = ["ACTIVITY"]
x_cols = ["X1", "X2"]

# Step 1: Create a Jaqpotpy dataset
dataset = JaqpotTabularDataset(df=df, y_cols=y_cols, x_cols=x_cols, task=ModelTask.REGRESSION)

# Step 2: Build a model
rf = RandomForestRegressor(random_state=42)
myModel = SklearnModel(dataset=dataset, model=rf)
myModel.fit()

# Step 3: Upload the model on Jaqpot
jaqpot = Jaqpot()
jaqpot.login()  # log in to Jaqppt
myModel.deploy_on_jaqpot(
    jaqpot=jaqpot,
    name="Demo: Regression",
    description="This is a description",
    visibility=ModelVisibility.PRIVATE
)

Once your model is successfully deployed on the Jaqpot platform, the function will provide you with the model ID that you can use to manage your model through the user interface and API.

Console Output:

<DATE> - INFO - Model has been successfully uploaded. The url of the model is https://app.jaqpot.org/dashboard/models/<ModelID>

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.

Metadata

Release files for jaqpotpy 7.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jaqpotpy 7.1.0
File Size Uploaded Provenance Actions
jaqpotpy-7.1.0.tar.gz 98.0 kB Without provenance Details for jaqpotpy-7.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jaqpotpy 7.1.0
File Interpreter ABI Platform Actions
jaqpotpy-7.1.0-py3-none-any.whl Python 3 none any Details for jaqpotpy-7.1.0-py3-none-any.whl

Total release size: 253.3 kB

Release files / jaqpotpy-7.1.0.tar.gz

Download URL jaqpotpy-7.1.0.tar.gz
Size 98.0 kB
Tags Source
SHA-256 checksum
How to use checksums
afac52e2c10805b7fc8843f6c106c757051e61643a2a1e1716eb23740e02bbe8
BLAKE2b-256 checksum
How to use checksums
9063e864565e52ffa1c7112b92b946ec592baaa9cef994a05063e1bb69b23f67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / jaqpotpy-7.1.0-py3-none-any.whl

Download URL jaqpotpy-7.1.0-py3-none-any.whl
Size 155.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f976e5b5065735d37cafcdcead570a07bf46265e9a016c5060130b3e619a683d
BLAKE2b-256 checksum
How to use checksums
e8f4fa070ccde5b0fd70a95e4b3807c6b03b962b1f203f9de6a307c4620e3fd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for jaqpotpy 7.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

7.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page