Function
loadFile
(self, file, isTest=False)
Source from the content-addressed store, hash-verified
| 49 | self.loadFile(path+"test_batch", True) |
| 50 | |
| 51 | def loadFile(self, file, isTest=False): |
| 52 | fo = open(file, 'rb') |
| 53 | u = pickle._Unpickler(fo) |
| 54 | u.encoding = 'latin1' |
| 55 | dict = u.load() |
| 56 | fo.close() |
| 57 | dict["training_state"] = 0 |
| 58 | |
| 59 | Log("Loaded: "+file) |
| 60 | |
| 61 | if isTest==False: |
| 62 | self.data.append(dict) |
| 63 | else: |
| 64 | self.testData = dict |
| 65 | |
| 66 | def getNextBatch(self): |
| 67 | amount = self.batch_size |
Callers
nothing calls this directly
Tested by
no test coverage detected