mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 09:21:13 +08:00
Improved readability (#1615)
* improved readability * further readability improvements * removed csv file and added f
This commit is contained in:

committed by
Christian Clauss

parent
938dd0bbb5
commit
9eb50cc223
@ -331,9 +331,7 @@ def read_data_sets(
|
||||
|
||||
if not 0 <= validation_size <= len(train_images):
|
||||
raise ValueError(
|
||||
"Validation size should be between 0 and {}. Received: {}.".format(
|
||||
len(train_images), validation_size
|
||||
)
|
||||
f"Validation size should be between 0 and {len(train_images)}. Received: {validation_size}."
|
||||
)
|
||||
|
||||
validation_images = train_images[:validation_size]
|
||||
|
Reference in New Issue
Block a user