Skip to content

Commit 13aaeac

Browse files
itearslShvets Kirill
authored and
Shvets Kirill
committed
fix pep8
1 parent 9926f3d commit 13aaeac

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

bench.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -504,9 +504,9 @@ def gen_basic_dict(library, algorithm, stage, params, data, alg_instance=None,
504504
else:
505505
alg_instance_params = dict(alg_instance.get_params())
506506
print(alg_instance_params)
507-
if 'min_samples_split' in alg_instance_params \
508-
and 'handle' in alg_instance_params \
509-
and 'cuml' in str(alg_instance_params['handle']):
507+
if ('min_samples_split' in alg_instance_params
508+
and 'handle' in alg_instance_params
509+
and 'cuml' in str(alg_instance_params['handle'])):
510510
print(str(alg_instance_params['dtype']))
511511
alg_instance_params['dtype'] = str(alg_instance_params['dtype'])
512512
result['algorithm_parameters'].update(alg_instance_params)

configs/testing/sklearn.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
},
2525
{
2626
"algorithm": "df_clsf",
27+
"dtype": "float32",
2728
"dataset": [
2829
{
2930
"source": "synthetic",
@@ -42,6 +43,7 @@
4243
},
4344
{
4445
"algorithm": "df_regr",
46+
"dtype": "float32",
4547
"dataset": [
4648
{
4749
"source": "synthetic",

cuml_bench/tsne.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
parser.add_argument('--n-components', type=int, default=2,
88
help='Dimension of the embedded space.')
99
parser.add_argument('--early-exaggeration', type=float, default=12.0,
10-
help='Controls how tight natural clusters in the original space are in the embedded space'
11-
'and how much space will be between them.')
10+
help='Controls how tight natural clusters in the '
11+
'original space are in the embedded space and how much space will be between them.')
1212
parser.add_argument('--learning-rate', type=float, default=200.0,
1313
help='The learning rate for t-SNE is usually in the range [10.0, 1000.0].')
1414
parser.add_argument('--angle', type=float, default=0.5,

datasets/loader_regression.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,7 @@ def yolanda(dataset_dir: Path) -> bool:
260260
logging.info(f'dataset {dataset_name} is ready.')
261261
return True
262262

263+
263264
def airline_regression(dataset_dir: Path) -> bool:
264265
"""
265266
yolanda x train dataset (8500000, 9)

sklearn_bench/tsne.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ def main():
5353
parser.add_argument('--n-components', type=int, default=2,
5454
help='Dimension of the embedded space.')
5555
parser.add_argument('--early-exaggeration', type=float, default=12.0,
56-
help='Controls how tight natural clusters in the original space are in the embedded space'
57-
'and how much space will be between them.')
56+
help='Controls how tight natural clusters in the'
57+
'original space are in the embedded space and how much space will be between them.')
5858
parser.add_argument('--learning-rate', type=float, default=200.0,
5959
help='The learning rate for t-SNE is usually in the range [10.0, 1000.0].')
6060
parser.add_argument('--angle', type=float, default=0.5,

0 commit comments

Comments
 (0)