Skip to content

Commit 35315db

Browse files
authored
Merge pull request #117 from iryna-kondr/mlc_fix
fixed mlc labels collection
2 parents 261f501 + 186d9c4 commit 35315db

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies = [
1111
"google-cloud-aiplatform[pipelines]>=1.27.0,<2.0.0"
1212
]
1313
name = "scikit-llm"
14-
version = "1.4.0"
14+
version = "1.4.1"
1515
authors = [
1616
{ name="Oleh Kostromin", email="[email protected]" },
1717
{ name="Iryna Kondrashchenko", email="[email protected]" },

skllm/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version__ = '1.4.0'
1+
__version__ = '1.4.1'
22
__author__ = 'Iryna Kondrashchenko, Oleh Kostromin'

skllm/models/_base/classifier.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,11 @@ def _extract_labels(self, y) -> List[str]:
137137
"""
138138
labels = []
139139
for l in y:
140-
for j in l:
141-
labels.append(j)
140+
if isinstance(l, list):
141+
for j in l:
142+
labels.append(j)
143+
else:
144+
labels.append(l)
142145
return labels
143146

144147

0 commit comments

Comments
 (0)