Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a27b4a5

Browse files
mjacquem1fchollet
authored andcommittedDec 1, 2017
Added missing space in multi-line warning strings (#8654)
* Corrected 3 small typos in training.py error messages. * Added missing space in multi-line warning strings
1 parent d956d19 commit a27b4a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎keras/preprocessing/image.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -536,15 +536,15 @@ def standardize(self, x):
536536
x -= self.mean
537537
else:
538538
warnings.warn('This ImageDataGenerator specifies '
539-
'`featurewise_center`, but it hasn\'t'
539+
'`featurewise_center`, but it hasn\'t '
540540
'been fit on any training data. Fit it '
541541
'first by calling `.fit(numpy_data)`.')
542542
if self.featurewise_std_normalization:
543543
if self.std is not None:
544544
x /= (self.std + 1e-7)
545545
else:
546546
warnings.warn('This ImageDataGenerator specifies '
547-
'`featurewise_std_normalization`, but it hasn\'t'
547+
'`featurewise_std_normalization`, but it hasn\'t '
548548
'been fit on any training data. Fit it '
549549
'first by calling `.fit(numpy_data)`.')
550550
if self.zca_whitening:
@@ -554,7 +554,7 @@ def standardize(self, x):
554554
x = np.reshape(whitex, x.shape)
555555
else:
556556
warnings.warn('This ImageDataGenerator specifies '
557-
'`zca_whitening`, but it hasn\'t'
557+
'`zca_whitening`, but it hasn\'t '
558558
'been fit on any training data. Fit it '
559559
'first by calling `.fit(numpy_data)`.')
560560
return x

0 commit comments

Comments
 (0)
Please sign in to comment.