Skip to content

Commit 8acb449

Browse files
itearslShvets Kirill
authored and
Shvets Kirill
committed
fix bench.py
1 parent bac85b5 commit 8acb449

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

cuml_bench/tsne.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
parser = argparse.ArgumentParser(description='cuml tsne')
66

77
parser.add_argument('--n-components', type=int, default=2,
8-
help='Dimension of the embedded space.')
8+
help='The dimension of the embedded space.')
99
parser.add_argument('--early-exaggeration', type=float, default=12.0,
1010
help='This factor increases the attractive forces between points '
1111
'and allows points to move around more freely, '
@@ -16,7 +16,7 @@
1616
help='Angular size. This is the trade-off between speed and accuracy.')
1717
parser.add_argument('--min-grad-norm', type=float, default=1e-7,
1818
help='If the gradient norm is below this threshold,'
19-
'the optimization will be stopped.')
19+
'the optimization is stopped.')
2020
parser.add_argument('--random-state', type=int, default=1234)
2121
params = bench.parse_args(parser)
2222

datasets/load_datasets.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ def try_load_dataset(dataset_name: str, output_directory: Path) -> bool:
8585
if __name__ == '__main__':
8686
parser = argparse.ArgumentParser(
8787
description='Use \'-d\' or \'--datasets\' option to enumerate '
88-
'dataset(s) which should be downloaded')
88+
'dataset(s) that should be downloaded')
8989
parser.add_argument('-l', '--list', action='store_const',
90-
const=True, help='list of available datasets')
90+
const=True, help='The list of available datasets')
9191
parser.add_argument('-d', '--datasets', type=str, nargs='*',
92-
help='datasets which should be downloaded')
92+
help='The datasets that should be downloaded.')
9393
args = parser.parse_args()
9494

9595
if args.list:
@@ -104,4 +104,4 @@ def try_load_dataset(dataset_name: str, output_directory: Path) -> bool:
104104
val(root_dir)
105105
else:
106106
logging.warning(
107-
'Warning: Enumerate dataset(s) which should be downloaded')
107+
'Warning: Enumerate dataset(s) that should be downloaded')

sklearn_bench/tsne.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def main():
5151
'regression benchmark')
5252

5353
parser.add_argument('--n-components', type=int, default=2,
54-
help='Dimension of the embedded space.')
54+
help='The dimension of the embedded space.')
5555
parser.add_argument('--early-exaggeration', type=float, default=12.0,
5656
help='This factor increases the attractive forces between points '
5757
'and allows points to move around more freely, '
@@ -62,7 +62,7 @@ def main():
6262
help='Angular size. This is the trade-off between speed and accuracy.')
6363
parser.add_argument('--min-grad-norm', type=float, default=1e-7,
6464
help='If the gradient norm is below this threshold,'
65-
'the optimization will be stopped.')
65+
'the optimization is stopped.')
6666
parser.add_argument('--random-state', type=int, default=1234)
6767

6868
params = bench.parse_args(parser)

0 commit comments

Comments
 (0)