1. Olivier Grisel
  2. gumby


Olivier Grisel  committed f5d27b8

make Layer.build_training_set() public

  • Participants
  • Parent commits 354a8e6
  • Branches sgd

Comments (0)

Files changed (1)

File src/gumby/brain.py

View file
  • Ignore whitespace
         t0 = time()
         # collect data to build the training set
-        m_inputs, m_outputs = self._build_training_set(
+        m_inputs, m_outputs = self.build_training_set(
             max_sample_size, do_shuffle, **kw)
         # perform the actual model training
         self.logger.info("training on layer %d on %d data points [%0.3fs]",
                          id(self), len(m_inputs), time()-t0)
-    def _build_training_set(self, max_sample_size=None, do_shuffle=True, **kw):
+    def build_training_set(self, max_sample_size=None, do_shuffle=True, **kw):
         """Train build the training set out of the recorded histories