Skip to content

Add Elliptic data set dataset - #93

Open
b10claude wants to merge 1 commit into
bitcoin-data:mainfrom
b10claude:add-elliptic-data-set
Open

b10claude wants to merge 1 commit into
bitcoin-data:mainfrom
b10claude:add-elliptic-data-set

Conversation

@b10claude

Copy link
Copy Markdown

Adds datasets/elliptic-data-set.toml.

Sources

Every claim in the entry, and what backs it.

What one record is, and the formats

  • Downloaded all three files and checked them. elliptic_txs_classes.csv has a
    header txId,class and 203,769 rows; the class column is 1 (4,545 rows),
    2 (42,019) or unknown (157,205). elliptic_txs_edgelist.csv has a header
    txId1,txId2 and 234,355 rows. elliptic_txs_features.csv has no header,
    203,769 rows and 167 columns: txId, the time step, then 165 feature
    columns.
  • The time step column takes every integer value from 1 to 49 and no others.
  • The Kaggle description states the same shape: "The graph is made of 203,769
    nodes and 234,355 edges. Two percent (4,545) of the nodes are labelled class1
    (illicit). Twenty-one percent (42,019) are labelled class2 (licit)." It also
    states "166 features associated with each node", which matches the 167
    columns once txId is excluded.
  • A node is a transaction and an edge a payment flow, per the Kaggle
    description: "A node in the graph represents a transaction, an edge can be
    viewed as a flow of Bitcoins between one transaction and the other."

Where it comes from

  • Kaggle owner is the organisation Elliptic; the listed creator is Claudio
    Bellei, a co-author of the paper. Hence author = "Elliptic".
  • The Kaggle description: "The Elliptic Data Set maps Bitcoin transactions to
    real entities belonging to licit categories (exchanges, wallet providers,
    miners, licit services, etc.) versus illicit ones (scams, malware, terrorist
    organizations, ransomware, Ponzi schemes, etc.)."
  • The accompanying benchmark is Weber et al., "Anti-Money Laundering in
    Bitcoin: Experimenting with Graph Convolutional Networks for Financial
    Forensics", KDD '19 workshop, which the Kaggle page asks users to cite.

The caveats

  • Anonymity and withheld semantics, from the Kaggle description: "This
    anonymized data set…" and "Due to intellectual property issues, we cannot
    provide an exact description of all the features in the dataset."
  • Time: "There is a time step associated to each node, representing a measure
    of the time when a transaction was broadcasted… The time steps, running from
    1 to 49, are evenly spaced with an interval of about two weeks." No calendar
    dates are published, which is why the entry carries no period_start or
    period_end rather than a guess.

Licence

  • Kaggle reports licenseName as "Attribution-NonCommercial-NoDerivatives 4.0
    International (CC BY-NC-ND 4.0)", read from
    https://www.kaggle.com/api/v1/datasets/view/ellipticco/elliptic-data-set.
    Note this is more restrictive than anything else in the index: non-commercial
    and no derivatives.

Hosting, and why the download links point at PyTorch Geometric

  • The canonical home is the Kaggle page, which is why it is the website link.
    Kaggle requires an account to download, so it is not usable as a download
    link.
  • PyTorch Geometric distributes the three files unmodified at
    https://data.pyg.org/datasets/elliptic/, which its EllipticBitcoinDataset
    loader uses (see torch_geometric/datasets/elliptic.py, url and
    raw_file_names). All three resolve anonymously: features 150,601,883 bytes,
    edgelist 1,690,631 bytes, classes 925,698 bytes. Verbatim redistribution is
    consistent with the NoDerivatives term.
  • This is the first Kaggle-hosted entry in the index and the first CC BY-NC-ND
    one, so both are worth a maintainer decision rather than my judgement.

Not verified / left out

  • The real-world dates behind the 49 time steps. Widely assumed but not
    published.
  • Whether the PyG copy is byte-identical to the current Kaggle download; I
    could not fetch the Kaggle files to compare. Row and column counts match the
    Kaggle description exactly.
  • What the 165 feature columns mean individually, which Elliptic declines to
    document.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EQFKPv3mB1J6LFakJnjNsd

@github-actions

Copy link
Copy Markdown

Dataset preview (1 changed entry)

How these entries will read once merged, straight from the generator.

Elliptic data set

/datasets/elliptic-data-set/

A Bitcoin transaction graph with one node per transaction and one edge per flow of coins, as three CSV files of features, edges and class labels. Elliptic mapped the transactions to entities it had identified as licit or illicit, and released it with a graph neural network benchmark. Useful as a labelled benchmark for illicit-flow detection; ids are anonymised, feature meanings are withheld and time is only a step number.

Field Value
Category Transactions
Format CSV
License CC BY-NC-ND 4.0
Author Elliptic
Tags forensics, machine-learning, mainnet, transactions
Description 3 sentences, 70 words

Links, in the order they will render:

Generated by ci/preview.py.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants