saifhmb/social-network-ads
Viewer โข Updated โข 400 โข 52
Run saifhmb/social-network-ads-logit-model 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:
Use HF Jobs to fine-tune https://huggingface.co/saifhmb/social-network-ads-logit-model. 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.
Use HF Jobs to run batch inference with https://huggingface.co/saifhmb/social-network-ads-logit-model 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.
How to use saifhmb/social-network-ads-logit-model with Scikit-learn:
from huggingface_hub import hf_hub_download
import joblib
model = joblib.load(
hf_hub_download("saifhmb/social-network-ads-logit-model", "skops-p4kjaf3p.pkl")
)
# only load pickle files from sources you trust
# read more about it here https://skops.readthedocs.io/en/stable/persistence.htmlThis is a logistic regression classifier trained on social network ads dataset (https://huggingface.co/datasets/saifhmb/social-network-ads).
The preprocesing steps include using a train/test split ratio of 80/20 and applying feature scaling on all the features.
| Hyperparameter | Value |
|---|---|
| C | 1.0 |
| class_weight | |
| dual | False |
| fit_intercept | True |
| intercept_scaling | 1 |
| l1_ratio | |
| max_iter | 100 |
| multi_class | auto |
| n_jobs | |
| penalty | l2 |
| random_state | |
| solver | lbfgs |
| tol | 0.0001 |
| verbose | 0 |
| warm_start | False |
LogisticRegression()In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
LogisticRegression()
| Metric | Value |
|---|---|
| accuracy | 0.925 |
| precision | 0.944444 |
| recall | 0.772727 |
SHAP was used to determine the important features that helps the model make decisions
This model card is written by following authors: Seifullah Bello