Skip to content

Shouldn't the autopilot with several heuristics use the Harmonic mean instead of the Arithmetic one? #2665

Closed
@renepickhardt

Description

@renepickhardt

I found this line in your autopilot which combines several heuristics for the autopilot:

score.Score += h.Weight * sub.Score

As far as I understand the scores are always supposed to be normalized which should mean that we are talking about rates. According to the Wikipedia article about the Harmonic mean this seems to be a better candidate than the arithmetic mean that is currently being used:

In mathematics, the harmonic mean [...] is appropriate for situations when the average of rates is desired.

The formula for a weighted harmonic mean can also be found in the wikipedia article:

codecogseqn

If you agree I would implement the weighted harmonic mean and exchange the current average and issue a pull request.

fyi: @alexbosworth @halseth

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions