Skip to content

Commit

Permalink
add chosen column
Browse files Browse the repository at this point in the history
  • Loading branch information
lacava committed Dec 21, 2023
1 parent e7da3d0 commit f02616a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fomo/estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,10 +369,14 @@ def _get_signed_F(self, F=None):

def get_pareto_points(self):
"""Return a Pandas dataframe of the Pareto archive points"""
F = self._get_signed_F()
I = self.I_
archive = pd.DataFrame(
self._get_signed_F(),
F,
columns=self.accuracy_metrics_ + self.fairness_metrics_
)
chosen = [f==F[I] for f in F]
archive['chosen'] = chosen
return archive

class FomoClassifier(FomoEstimator, ClassifierMixin, BaseEstimator):
Expand Down

0 comments on commit f02616a

Please sign in to comment.