Instructions to use YASHR2002/fraudlens-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use YASHR2002/fraudlens-model with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("YASHR2002/fraudlens-model", "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
File size: 1,613 Bytes
657f638 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 | {
"dataframe_split": {
"columns": [
"amt",
"log_amt",
"category",
"hour",
"day_of_week",
"is_night",
"age_at_txn",
"log_city_pop",
"distance_km",
"card_txn_count_1h",
"card_txn_count_24h",
"card_txn_count_7d",
"card_amt_sum_24h",
"card_avg_amt_prior",
"amt_to_card_avg_ratio",
"secs_since_last_txn",
"is_new_category_for_card",
"card_txn_number"
],
"data": [
[
118.81,
4.785907154651808,
"food_dining",
0.0,
3.0,
1.0,
57.0,
8.799360083179907,
82.28855389276828,
0.0,
2.0,
21.0,
93.32,
66.7779896526237,
1.7791790471388047,
15295.0,
0.0,
1353.0
],
[
91.66,
4.528936879988502,
"gas_transport",
0.0,
3.0,
1.0,
29.0,
6.212606095751519,
119.45421155194228,
1.0,
4.0,
29.0,
292.64,
61.098279452054804,
1.5002059112307355,
1636.0,
0.0,
1825.0
],
[
4.55,
1.713797927758343,
"shopping_pos",
0.0,
3.0,
1.0,
55.0,
7.748460023899697,
71.93096354821488,
0.0,
7.0,
27.0,
332.94,
66.40704683195585,
0.06851682490133693,
6114.0,
0.0,
1815.0
]
]
}
} |