Skip to content

Commit

Permalink
Merge pull request crillab#13 from gildasmorvan/main
Browse files Browse the repository at this point in the history
Solution to issue 10
  • Loading branch information
szczepanskiNicolas authored Dec 5, 2023
2 parents 55cee0c + eaf79b8 commit 24bd84e
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 24bd84e

Please sign in to comment.