Skip to content

Instantly share code, notes, and snippets.

@mplatzer
Created July 19, 2024 06:50
Show Gist options
  • Save mplatzer/2178234402ce3ab986775660e87fb5bf to your computer and use it in GitHub Desktop.
Save mplatzer/2178234402ce3ab986775660e87fb5bf to your computer and use it in GitHub Desktop.
from mostlyai import MostlyAI
# initialize client
mostly = MostlyAI()
# train generator for BERKA dataset
config = {
"name": "berka",
"tables": [
{
"name": "account",
"data": "https://github.com/mostly-ai/public-demo-data/raw/dev/berka/data/account.csv.gz",
"primaryKey": "account_id"
},
{
"name": "transaction",
"data": "https://github.com/mostly-ai/public-demo-data/raw/dev/berka/data/trans.csv.gz",
"primaryKey": "trans_id",
"foreignKeys": [{"column": "account_id", "referencedTable": "account", "isContext": True}]
}
]
}
g = mostly.train(config=config)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment