Login / Sign up
> > > Score calculation in item search engine


Messages in topic: Score calculation in item search engine
Bjorg
Registered User

Nbr post: 8
Register: 10/30/02
Posted: 4/26/13, 5:53 AM

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
Admin

Nbr post: 11385
Register: 5/4/01
Posted: 4/26/13, 9:38 AM

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
Admin

Nbr post: 11385
Register: 5/4/01
Posted: 4/26/13, 10:49 AM

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
Registered User

Nbr post: 8
Register: 10/30/02
Posted: 4/29/13, 4:11 AM

Thank you for explanation.