Skip to content

Commit

Permalink
moving average now 1% instead of 10
Browse files Browse the repository at this point in the history
  • Loading branch information
psy0rz committed Aug 1, 2020
1 parent 7291e34 commit 351786e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion micropython/cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ def ate(self, weight):

def update_weight(self, weight):
'''update weight by moving average'''
self.state.weight=self.state.weight*0.9 + weight*0.1
self.state.weight=self.state.weight*0.99 + weight*0.01

0 comments on commit 351786e

Please sign in to comment.