MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / train

Method train

tensorpack/train/base.py:300–317  ·  view source on GitHub ↗

Implemented by three lines: .. code-block:: python self.setup_callbacks(callbacks, monitors) self.initialize(session_creator, session_init) self.main_loop(steps_per_epoch, starting_epoch, max_epoch) You can call those methods by yoursel

(self,
              callbacks, monitors,
              session_creator, session_init,
              steps_per_epoch, starting_epoch=1, max_epoch=9999999)

Source from the content-addressed store, hash-verified

298 self.hooked_sess.close()
299
300 def train(self,
301 callbacks, monitors,
302 session_creator, session_init,
303 steps_per_epoch, starting_epoch=1, max_epoch=9999999):
304 """
305 Implemented by three lines:
306
307 .. code-block:: python
308
309 self.setup_callbacks(callbacks, monitors)
310 self.initialize(session_creator, session_init)
311 self.main_loop(steps_per_epoch, starting_epoch, max_epoch)
312
313 You can call those methods by yourself to have better control on details if needed.
314 """
315 self.setup_callbacks(callbacks, monitors)
316 self.initialize(session_creator, session_init)
317 self.main_loop(steps_per_epoch, starting_epoch, max_epoch)
318
319 def train_with_defaults(
320 self, _sentinel=None,

Callers 1

train_with_defaultsMethod · 0.95

Calls 3

setup_callbacksMethod · 0.95
initializeMethod · 0.95
main_loopMethod · 0.95

Tested by

no test coverage detected