Skip to content

Commit fa3401c

Browse files
itearslShvets Kirill
authored and
Shvets Kirill
committed
fixed bug with JSON parsing
1 parent d262328 commit fa3401c

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

bench.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -503,11 +503,10 @@ def gen_basic_dict(library, algorithm, stage, params, data, alg_instance=None,
503503
alg_instance_params = dict(alg_instance.attributes())
504504
else:
505505
alg_instance_params = dict(alg_instance.get_params())
506-
# if ('min_samples_split' in alg_instance_params
507-
# and 'handle' in alg_instance_params
508-
# and 'cuml' in str(alg_instance_params['handle'])):
509-
# print(str(alg_instance_params['dtype']))
510-
# alg_instance_params['dtype'] = str(alg_instance_params['dtype'])
506+
if ('min_samples_split' in alg_instance_params
507+
and 'handle' in alg_instance_params
508+
and 'cuml' in str(alg_instance_params['handle'])):
509+
alg_instance_params['dtype'] = str(alg_instance_params['dtype'])
511510
result['algorithm_parameters'].update(alg_instance_params)
512511
if alg_params is not None:
513512
result['algorithm_parameters'].update(alg_params)

configs/testing/sklearn.json

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@
244244
"n_features": 10,
245245
"training": {
246246
"n_samples": 1000
247-
}
247+
}
248248
}
249249
],
250250
"include-y": "",
@@ -323,6 +323,23 @@
323323
}
324324
}
325325
]
326+
},
327+
{
328+
"algorithm": "tsne",
329+
"dataset": [
330+
{
331+
"source": "synthetic",
332+
"type": "classification",
333+
"n_classes": 5,
334+
"n_features": 10,
335+
"training": {
336+
"n_samples": 1000
337+
},
338+
"testing": {
339+
"n_samples": 20
340+
}
341+
}
342+
]
326343
}
327344
]
328345
}

0 commit comments

Comments
 (0)