Start the background thread to replace training items for every epoch.
(self)
| 1137 | return False if self._replace_mgr is None else self._replace_mgr.is_alive() |
| 1138 | |
| 1139 | def start(self): |
| 1140 | """ |
| 1141 | Start the background thread to replace training items for every epoch. |
| 1142 | |
| 1143 | """ |
| 1144 | if not self.is_started(): |
| 1145 | self._restart() |
| 1146 | |
| 1147 | def _restart(self): |
| 1148 | """ |