Exemplo n.º 1
0
 async def train(self, sources: Sources):
     async for record in sources.records():
         self.trained_on[record.key] = record
Exemplo n.º 2
0
 async def accuracy(self, sources: Sources) -> Accuracy:
     accuracy: int = 0
     async for record in sources.records():
         accuracy += int(record.key)
     return Accuracy(accuracy)