Skip to content

Evaluation metrics weights and normalization #84

Answered by fohrloop
fohrloop asked this question in Q&A
Discussion options

You must be logged in to vote

Perfect, thanks a lot! So to summarize, the final cost is calculated as:

final_cost = weight1*normalized_metric1 + weight2*normalized_metric2 + .... weightN*normalized_metricN

each metric is calculated as:

normalized_metric =  value*(metric/N)

where:

  • value is the value from the normalization dictionary from the evaluation configuration
  • metric is the calculated metric, as output by the chosen metric function (usually from the same name .rs file as the metric name)
  • N depends on the normalization.type, and is
    • 1 if type is fixed
    • total number of ngrams (1-grams, 2-grams or 3-grams depending on which type of metric it is), if type is weight_all
    • the number of ngrams which may be typed with t…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@fohrloop
Comment options

Answer selected by fohrloop
@dariogoetz
Comment options

@fohrloop
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants