Skip to content

Commit

Permalink
Correct scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Girod committed Jan 15, 2021
1 parent 41cf250 commit 3365666
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
20 changes: 10 additions & 10 deletions synthetic_data/mia_cli.py → mia_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@
from numpy import arange
from numpy.random import choice

from .utils.datagen import load_local_data_as_df
from .utils.utils import json_numpy_serialzer
from .utils.evaluation_framework import (
from synthetic_data.utils.datagen import load_local_data_as_df
from synthetic_data.utils.utils import json_numpy_serialzer
from synthetic_data.utils.evaluation_framework import (
craft_outlier,
evaluate_mia,
)

from .feature_sets.independent_histograms import HistogramFeatureSet
from .feature_sets.model_agnostic import NaiveFeatureSet, EnsembleFeatureSet
from .feature_sets.bayes import CorrelationsFeatureSet
from synthetic_data.feature_sets.independent_histograms import HistogramFeatureSet
from synthetic_data.feature_sets.model_agnostic import NaiveFeatureSet, EnsembleFeatureSet
from synthetic_data.feature_sets.bayes import CorrelationsFeatureSet

from .generative_models.ctgan import CTGAN
from .generative_models.data_synthesiser import IndependentHistogram, BayesianNet, PrivBayes
from .generative_models.pate_gan import PateGan
from synthetic_data.generative_models.ctgan import CTGAN
from synthetic_data.generative_models.data_synthesiser import IndependentHistogram, BayesianNet, PrivBayes
from synthetic_data.generative_models.pate_gan import PateGan

from .privacy_attacks.membership_inference import (
from synthetic_data.privacy_attacks.membership_inference import (
LABEL_IN,
LABEL_OUT,
MIAttackClassifier,
Expand Down
14 changes: 7 additions & 7 deletions synthetic_data/mleai_cli.py → mleai_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
from numpy import arange
from numpy.random import choice

from .utils.utils import json_numpy_serialzer
from .utils.datagen import load_local_data_as_df
from .utils.evaluation_framework import (
from synthetic_data.utils.utils import json_numpy_serialzer
from synthetic_data.utils.datagen import load_local_data_as_df
from synthetic_data.utils.evaluation_framework import (
craft_outlier,
evaluate_ai,
)
from .utils import evaluation_framework
from synthetic_data.utils import evaluation_framework

from .generative_models.ctgan import CTGAN
from .generative_models.data_synthesiser import IndependentHistogram, BayesianNet, PrivBayes
from .generative_models.pate_gan import PateGan
from synthetic_data.generative_models.ctgan import CTGAN
from synthetic_data.generative_models.data_synthesiser import IndependentHistogram, BayesianNet, PrivBayes
from synthetic_data.generative_models.pate_gan import PateGan

from warnings import filterwarnings
filterwarnings('ignore')
Expand Down

0 comments on commit 3365666

Please sign in to comment.