saifhmb/social-network-ads
Viewer • Updated • 400 • 24
How to use saifhmb/social-network-ads-logit-model with Scikit-learn:
import joblib
from skops.hub_utils import download
download("saifhmb/social-network-ads-logit-model", "path_to_folder")
model = joblib.load(
"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