Skip to content

Commit

Permalink
edit mean to 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
tongplw committed Jul 9, 2020
1 parent 6afd7f9 commit f6091f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion muse.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def _adjust_attention(self, att):
if len(self._attention_history) < 10:
return att
atts = self._reject_outliers(self._attention_history)
return (att - np.mean(atts)) / np.std(atts) * 0.2 + np.mean(atts)
return (att - np.mean(atts)) / np.std(atts) * 0.2 + 0.5

def _sigmoid(self, x):
return 1 / (1 + np.exp(-x))
Expand Down
1 change: 0 additions & 1 deletion tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@
atts += [attention]

plt.hist(atts, bins=200)
# plt.hist(headset._attention_history, bins=200)
plt.show()

0 comments on commit f6091f2

Please sign in to comment.