Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ExpWeightByTime #1110

Merged
merged 5 commits into from
Nov 14, 2022
Merged

Conversation

qoo332001
Copy link
Collaborator

為了要使用exponentially weighted moving average來計算一段時間內的加權平均值(時間愈久權重愈小),新增ExpWeightByTime來實作Stat

@chia7712
Copy link
Contributor

#1103 (comment)

@qoo332001 @chinghongfang 麻煩看一下這個討論,以及加上這隻PR,我們接下來要進一步讓metrics 的使用更加方便,例如如何讓各個cost function可以方便地取得各種“加工後”的統計值?究竟是要在MetricsCollector上埋更多邏輯,讓它可以一邊收集一邊統計?或者是在每次從MetricsCollector取得ClusterBean之後(這個還沒做,也需要一隻PR),在ClusterBean上埋邏輯讓cost function可以“即時”的算出需要的統計值?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants