Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/crillab/pyxai
Browse files Browse the repository at this point in the history
  • Loading branch information
szczepanskiNicolas committed Dec 5, 2023
2 parents 12e8946 + 24bd84e commit 8b0348d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyxai/sources/learning/learner.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def load_data(self, dataframe, datasetname, *, encode_labels=True):
dataframe: A pandas.core.frame.DataFrame object.
"""
self.dataset_name = datasetname
self.data = dataframe
self.data = dataframe.copy()
Tools.verbose("data:")
Tools.verbose(self.data)
self.n_instances, self.n_features = self.data.shape
Expand Down Expand Up @@ -737,4 +737,4 @@ def _get_data(self, dataset, possible_indexes, n):
possible_indexes = [i for i in range(len(self.data))]
data = numpy.array([self.data[x] for x in possible_indexes])
labels = numpy.array([self.labels[x] for x in possible_indexes])
return possible_indexes, data, labels
return possible_indexes, data, labels

0 comments on commit 8b0348d

Please sign in to comment.