Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttackEvaluator classes give back empty dictionary #241

Open
foesine opened this issue Nov 22, 2023 · 0 comments
Open

AttackEvaluator classes give back empty dictionary #241

foesine opened this issue Nov 22, 2023 · 0 comments

Comments

@foesine
Copy link

foesine commented Nov 22, 2023

Hello,

I am facing problems with the AttackEvaluator class.
When running any of the inheriting classes, it always gives back an empty dict.

I am running:

evaluators = [DataLeakageLinear(), DataLeakageMLP(), DataLeakageXGB()]

for evaluator in evaluators:
  evaluator_name = type(evaluator).__name__
  score_dict[evaluator_name] = []

  for loader in loaders_syndata:
    score = evaluator.evaluate(X_gt=loader_cps, X_syn=loader)
    score_dict[evaluator_name].append(score)

DataLeakage_scores = pd.DataFrame(score_dict)
DataLeakage_scores = DataLeakage_scores.T
DataLeakage_scores.columns = [df.name for df in gen_data]
DataLeakage_scores.index.name = "Evaluator"

This produces a data frame which contains a bunch of empty dicts instead of scores.
Bildschirmfoto 2023-11-22 um 11 53 53

Using the same loaders for other evaluation metrics gives me valid results, so I don't think they are the problem.

I'd be very thankful for suggestions or solutions!

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

No branches or pull requests

1 participant