Вход
> > > Score calculation in item search engine


Сообщений в теме: Score calculation in item search engine
Bjorg
Пользователь

Сообщений: 8
Регистрация: 30.10.02
Отправлено: 26.04.13 5:53

Rift item database.

I can't understand how you calculate score for items depending on weights that I have been defined. Let's look for an example. Cunning Luminous Empyrean Trousers have next stats:
Armor - 2186
Intellenge - 99
Wisdom - 58
Endurance - 62
Spell Power - 19
Crit Power - 47

I define next weights:
spell_power = 1
intelligence = 0.96
wisdom = 0.41
spell_critical_hit = 0.33
crit_power = 0.84

So I expect the final score 19 + 99 * 0.96 + 58 * 0.41 + 0 * 0.33 + 47 * 0.84 = 177.3. But you calculate 50.085. I suggest you to change score calculation so final result will be more clear.
Jelan
Администратор

Сообщений: 10982
Регистрация: 04.05.01
Отправлено: 26.04.13 9:38

Hi Bjorg,

I will get a closer look at our scoring function because it should work as you expect it... Will keep you posted asap !
Jelan
Администратор

Сообщений: 10982
Регистрация: 04.05.01
Отправлено: 26.04.13 10:49

Ha i know what is happening... What we do is that the score is an average function so we compute the score as you have done but at the end, we divide your result by the sum of the weights. So we end up with what is called a weighted average.
Bjorg
Пользователь

Сообщений: 8
Регистрация: 30.10.02
Отправлено: 29.04.13 4:11

Thank you for explanation.