Run this model with HF Jobs
Run rmaitest/mlmodel2 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/rmaitest/mlmodel2. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/rmaitest/mlmodel2 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use rmaitest/mlmodel2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use rmaitest/mlmodel2 with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("rmaitest/mlmodel2", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
Upload house_price_prediction.py with huggingface_hub
Browse files1234567891011121314151617181920import joblibimport pandas as pd
def predict_price(size, bedrooms, age): """Predicts house price based on input features.""" # Load the model model = joblib.load("house_price_model.pkl")
# Create a DataFrame from user input input_data = pd.DataFrame({ 'Size (sq ft)': [size], 'Number of Bedrooms': [bedrooms], 'Age of House (years)': [age] })
# Predict the price using the trained model predicted_price = model.predict(input_data)[0]
# Return the prediction return {"predicted_price": predicted_price}house_price_prediction.pyAdded+20