Downloads · 30 days
0
kaushanighosh14/fintech
fintech is a machine learning model from kaushanighosh14. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
data = { "text": ["Suspicious transaction detected", "Unauthorized access to account", ...], "label": [1, 1, ...] 1 for fraud, 0 for legitimate }
Downloads · 30 days
0
Access
Public
Updated Mar 1, 2024
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 77%
From the Hugging Face model README
data = { "text": ["Suspicious transaction detected", "Unauthorized access to account", ...], "label": [1, 1, ...] # 1 for fraud, 0 for legitimate }
dataset = Dataset.from_dict(data)
train_dataset = dataset.train_test_split(test_size=0.2)['train'] test_dataset = dataset.train_test_split(test_size=0.2)['test']