🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

modelify

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modelify

New Version of MLOps Platforms.

0.0.2.8
PyPI
Maintainers
1

Modelify

Modelify takes over all devops jobs from data scientists and machine learning practitioners and brings their models to production.

Install

pip install modelify

Usage

Deploying LightGBM Model

import pandas as pd
from sklearn.datasets import load_iris
from lightgbm import LGBMClassifier, Dataset, train as train_lgbm
import modelify
from modelify import ModelInference
from modelify.helpers import create_schema

# import data
iris = load_iris()
df= pd.DataFrame(data= np.c_[iris['data'], iris['target']],
                     columns= iris['feature_names'] + ['target'])

# train test split
train, test = train_test_split(df, test_size=0.2 )
y_train = df["target"]
X_train = df.drop(columns=["target"])

# build your model
clr = LGBMClassifier()
clr.fit(X_train, y_train)

# deployment
inference = ModelInference(model=model, framework="LIGHTGBM", inputs=create_schema(X_train))

modelify.connect("YOUR_API_KEY")

modelify.deploy(inference, app_uid="YOUR_APP_UID")

Keywords

mlops

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts