Skip to content

Commit

Permalink
Fix training.py imports
Browse files Browse the repository at this point in the history
  • Loading branch information
fchollet committed Jan 5, 2018
1 parent 8ed57c1 commit 12a79c8
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions keras/engine/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
import warnings
import copy
import numpy as np

from keras.utils import Sequence
from keras.utils import GeneratorEnqueuer
from keras.utils import OrderedEnqueuer
from scipy.sparse import issparse

try:
Expand All @@ -24,6 +20,9 @@
from .. import optimizers
from .. import losses
from .. import metrics as metrics_module
from ..utils.data_utils import Sequence
from ..utils.data_utils import GeneratorEnqueuer
from ..utils.data_utils import OrderedEnqueuer
from ..utils.generic_utils import Progbar
from .. import callbacks as cbks
from ..legacy import interfaces
Expand Down Expand Up @@ -2211,8 +2210,8 @@ def evaluate_generator(self, generator, steps=None,
generator: Generator yielding tuples (inputs, targets)
or (inputs, targets, sample_weights)
or an instance of Sequence (keras.utils.Sequence)
object in order to avoid duplicate data
when using multiprocessing.
object in order to avoid duplicate data
when using multiprocessing.
steps: Total number of steps (batches of samples)
to yield from `generator` before stopping.
Optional for `Sequence`: if unspecified, will use
Expand Down

0 comments on commit 12a79c8

Please sign in to comment.