Skip to content

Commit

Permalink
fix: Example update
Browse files Browse the repository at this point in the history
  • Loading branch information
fabclmnt committed Oct 15, 2020
1 parent 7787def commit 9960f95
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
4 changes: 3 additions & 1 deletion examples/cgan_example.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from models import CGAN
from ydata_synthetic.synthesizers import CGAN
from ydata_synthetic.preprocessing.credit_fraud import transformations

import pandas as pd
from sklearn import cluster

#Read the original data and have it preprocessed
Expand Down
19 changes: 17 additions & 2 deletions examples/gan_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,21 @@
}
}
},
{
"cell_type": "code",
"execution_count": null,
"outputs": [],
"source": [
"#Install ydata-synthetic lib\n",
"#! pip install pip install git+https://github.com/ydataai/ydata-synthetic.git"
],
"metadata": {
"collapsed": false,
"pycharm": {
"name": "#%%\n"
}
}
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -42,8 +57,8 @@
"import sklearn.cluster as cluster\n",
"import matplotlib.pyplot as plt\n",
"\n",
"from models import VanilllaGAN\n",
"from preprocessing.credit_fraud import *\n",
"from ydata_synthetic.synthesizers import VanilllaGAN\n",
"from ydata_synthetic.preprocessing.credit_fraud import *\n",
"\n",
"model = VanilllaGAN"
],
Expand Down

0 comments on commit 9960f95

Please sign in to comment.