Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion conditional-generation/conditional-generation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@
" 'tables': [{\n",
" 'name': 'AirBnB',\n",
" 'data': df,\n",
" 'model_configuration': {'max_training_time': 2},\n",
" 'tabular_model_configuration': {'max_training_time': 2},\n",
" 'columns': [\n",
" {'name': 'neighbourhood_group', 'included': True, 'model_encoding_type': 'TABULAR_CATEGORICAL'},\n",
" {'name': 'neighbourhood', 'included': True, 'model_encoding_type': 'TABULAR_CATEGORICAL'},\n",
Expand Down
13 changes: 10 additions & 3 deletions smart-imputation/smart-imputation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,14 @@
"mostly = MostlyAI(local=True) # or: MostlyAI(local=False, api_key='xxx')\n",
"\n",
"# train a generator on the original training data\n",
"g = mostly.train(data=tgt, name='Smart Imputation Tutorial - Census')"
"g = mostly.train(config={\n",
" 'name': 'Smart Imputation Tutorial - Census',\n",
" 'tables': [{\n",
" 'name': 'data',\n",
" 'data': tgt,\n",
" 'tabular_model_configuration': {'max_training_time': 1}\n",
" }]\n",
"})"
]
},
{
Expand All @@ -131,7 +138,7 @@
" 'tables': [\n",
" {'name': 'data',\n",
" 'configuration': {\n",
" 'imputation': ['age']\n",
" 'imputation': {'columns': ['age']},\n",
" }\n",
" }\n",
" ]\n",
Expand All @@ -148,7 +155,7 @@
"id": "97058dc7-b791-4674-b028-9599384b9d7f",
"metadata": {},
"source": [
"If you want to, you can now switch to the UI and check the distribution based on the Model QA and Data QA reports. The Model QA reports on the accuracy and privacy of the trained Generative AI model. As one can see, the distributiosn are faithfully learned, and also include the right share of missing values. The Data QA visualizes then the distributions of the delivered Synthetic dataset. And there we can see, that the share of missing values (`N/A`) has dropped to 0%, and that the distribution has been shifted towards older age buckets."
"If you want to, you can now check the distribution based on the Model QA and Data QA reports (`sd.reports()`). The Model QA reports on the accuracy and privacy of the trained Generative AI model. As one can see, the distributiosn are faithfully learned, and also include the right share of missing values. The Data QA visualizes then the distributions of the delivered Synthetic dataset. And there we can see, that the share of missing values (`N/A`) has dropped to 0%, and that the distribution has been shifted towards older age buckets."
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion synthetic-text/synthetic-text.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
" 'name': 'Synthetic Text Tutorial AirBnB',\n",
" 'tables': [{\n",
" 'name': 'airBnB', 'data': tgt,\n",
" 'model_configuration': {'max_training_time': 10},\n",
" 'tabular_model_configuration': {'max_training_time': 10},\n",
" 'language_model_configuration': {'max_training_time': 10},\n",
" 'columns': [\n",
" {'name': 'host_name', 'included': True, 'model_encoding_type': 'LANGUAGE_TEXT'},\n",
Expand Down