Skip to content

Commit

Permalink
Update resolution.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KarlQu1990 authored Feb 28, 2018
1 parent 3d92911 commit 89e7be6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nel/model/resolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,12 @@ def load(cls, name):
def save(self):
timestamp = datetime.fromtimestamp(time()).strftime('%Y-%m-%d %H:%M:%S')
log.info('Storing classifier model (%s)...', self.name)
ObjectStore.Get(cls.mid).save({
'_id': name,
ObjectStore.Get(self.mid).save({
'_id':self.name,
'data': pickle.dumps({
'name': self.name,
'model': self.model,
'mapper': self.mapper
})
})

0 comments on commit 89e7be6

Please sign in to comment.