def __flushPredictionCache(self):
if not self.__predictionCache:<EOL><INDENT>return<EOL><DEDENT>if self._predictionLogger is None:<EOL><INDENT>self._createPredictionLogger()<EOL><DEDENT>startTime = time.time()<EOL>self._predictionLogger.writeRecords(self.__predictionCache,<EOL>progressCB=self.__writeRecordsCallback)<EOL>self._logger.info("<STR_LIT>",<EOL>len(self.__predictionCache), time.time() - startTime)<EOL>self.__predictionCache.clear()<EOL>
Writes the contents of this model's in-memory prediction cache to a permanent
store via the prediction output stream instance