Skip to content

Commit a9159f2

Browse files
committed
Replace dtype to be more memory eficient
1 parent 3f9cb7f commit a9159f2

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

docs/source/api/utilities.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,6 @@ F-score
9595
Datasets
9696
----------
9797

98-
Platypus diseases dataset
99-
^^^^^^^^^^^^^^^^^^^^^^^^^^
100-
101-
.. autofunction:: datasets.load_platypus
102-
103-
..................................
104-
10598
Hierarchical text classification dataset
10699
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
107100

hiclass/datasets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def load_hierarchical_text_classification(test_size=0.3, random_state=42):
8282

8383
data = [row for row in csv.reader(open(cached_file_path))]
8484
data.pop(0)
85-
data = np.array(data)
85+
data = np.array(data, dtype=object)
8686
X = data[:, 1]
8787
y = data[:, 7:]
8888

0 commit comments

Comments
 (0)