Downloads · 30 days
0
uyen1109/elliptic-fraud-deploy
elliptic-fraud-deploy is a machine learning model from uyen1109. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
0
Access
Public
Updated Sep 30, 2025
Repo size
—
Likes
0
Public
Click a slice to open those files.
.py8.7 KB · 68%
From the Hugging Face model README
This repo supports two payload schemas:
{
"features": {
"tx_value": 0.23,
"in_degree": 4,
"out_degree": 1,
"age_days": 12.0
}
}
feature_config.json to fix the key order (recommended). If not set, keys are sorted alphabetically.{
"x": [[0.23,4,1,12.0], [0.5,2,3,30.0], ...], // [N,F]
"edge_index": [[0, 1, 2, ...], [1, 2, 0, ...]] // [2,E], row indices into x
}
MODEL_TYPE=graphsage and torch_geometric is available, uses GNN; otherwise falls back to MLP over x.IN_FEATURES: default feature dim for model init (will auto-rebuild if input F differs)MODEL_TYPE: mlp | graphsageCKPT_PATH: optional path inside repo, e.g. /repository/weights.ptpip install -r requirements.txt
python inference.py --input-json example_node.json
python inference.py --input-json example_graph.json --model-type mlp
See top-level instructions in your project README or follow the CLI snippet:
pip install -U huggingface_hub
huggingface-cli login
python - << 'PY'
from huggingface_hub import HfApi, upload_folder
api = HfApi()
REPO_ID = "YOUR_NS/elliptic-fraud"
api.create_repo(REPO_ID, repo_type="model", exist_ok=True)
upload_folder(repo_id=REPO_ID, folder_path=".", path_in_repo=".", commit_message="init graph-ready scaffold")
PY