Skip to content

Commit 59303fa

Browse files
author
Igor Rukhovich
committed
Applying mypy
1 parent 523df30 commit 59303fa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

datasets/loader_classification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ def gisette(dataset_dir: Path) -> bool:
405405
for data, name in zip((x_train, x_test, y_train, y_test),
406406
('x_train', 'x_test', 'y_train', 'y_test')):
407407
filename = f'{dataset_name}_{name}.npy'
408-
np.save(os.path.join(dataset_dir, filename), data)
408+
np.save(os.path.join(dataset_dir, filename), data.to_numpy())
409409
logging.info('dataset gisette is ready.')
410410
return True
411411

utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def parse_lscpu_lscl_info(command_output: str) -> Dict[str, str]:
7575
return res
7676

7777

78-
def get_hw_parameters() -> Union[bool, Dict[Any, Any]]:
78+
def get_hw_parameters() -> Dict[str, Union[Dict[str, Any], float]]:
7979
if 'Linux' not in platform.platform():
8080
return {}
8181

0 commit comments

Comments
 (0)