- Thread starter
- #11
ok; i had a short chat about this today with Bavarian. We haven´t come up with much yet, but afterwards, besides watching Schalke vs. Mailand in the champions league, I have tried to come up with a formula for the algorythm:
So, we have three parameters for the calculation:
S = Number of times you have seen a certain show, genre, etc. on live tv
R = Number of times you have recorded a certain show, genre, etc.
W = weight that you have given to a keyword on your "Wishlist" (Range 1 to 5)
Points a show, genre, actor scores:
10 Points x ( 1 + W / 10) x ( 2 - (S + 2R) / (S + 2R)² )
What does this formula do?
( 1 + W / 10) is the weight on you put on the different keywords which you entered in the list manually. With every entry you can specify the importance of the keyword, let´s say from 1 to 5.
So if a show with your keyword, like "Simpsons" is on and you gave this keyword the maximum weight of "5", the show will earn 10 points x (1 + 5/10) = 10 points x 1,5 = 15 points. Plus it is multiplicated with the rest of the formula which represents how often you watched and/or recorded such a show.
( 2 - (S + 2R) / (S + 2R)² ) is how often you have seen (S) and/or recorded (R) a show. Why is the formula so complicated? it is a hyperbolic function, that means that with the first couple of times you watch a show, the score increases much, later it still increases but less. And this part of the formula has a maximum of 2, which is important.
Example: If you have seen a show
1x the result is (2 - (1 + 2x0)/(1 + 2x0)²) = (2 - 1 / 1) = 1,0
2x the result is (2 - (2 + 2x0)/(2 + 2x0)²) = (2 - 2 / 4) = 1,5
4x the result is (2 - (4 + 2x0)/(4 + 2x0)²) = (2 - 4 / 16) = 1,75
20x the result is (2 - (20 + 2x0)/(20 + 2x0)²) = (2 - 20 / 400) = 1,95
100x the result is (2 - (100 + 2x0)/(100 + 2x0)²) = (2 - 100 / 10000) = 1,99
The example is without recordings, but as you see in the (S+2R)-expression, a recording is valued twice in comparison to a watched show.
So, the maximum that can be reached with watching and recording shows is 2. In this way the weight is a bit dependend on the times you have seen it, but it does not overweigh your preferences from the keywords.
Another point is, if how often you have seen a show would result in ever rising scores, you would not get a tv program of your liking: Example: If you watch everyday "the night news" from the genre "news", news shows would have an immense high score and the whole personal epg would consist of news shows.
And finally keyword weight and watching and recording shows containing the keywords multiply. So the maximum is 10 points x 1,5 (weight 5) x 2 (seen/recorded it very often). So this show would have 30 points.
You will have to catch the case that S and R equal Zero, so that the expression doesn´t get invalid.
The relations between keyword weight, seen and recorded shows can easily be changed, but I think the basic formula could be a start.
Uuuhhh, certainly not a post for everyone, but somehow the logic has to be programmed :shock:
tomtom
So, we have three parameters for the calculation:
S = Number of times you have seen a certain show, genre, etc. on live tv
R = Number of times you have recorded a certain show, genre, etc.
W = weight that you have given to a keyword on your "Wishlist" (Range 1 to 5)
Points a show, genre, actor scores:
10 Points x ( 1 + W / 10) x ( 2 - (S + 2R) / (S + 2R)² )
What does this formula do?
( 1 + W / 10) is the weight on you put on the different keywords which you entered in the list manually. With every entry you can specify the importance of the keyword, let´s say from 1 to 5.
So if a show with your keyword, like "Simpsons" is on and you gave this keyword the maximum weight of "5", the show will earn 10 points x (1 + 5/10) = 10 points x 1,5 = 15 points. Plus it is multiplicated with the rest of the formula which represents how often you watched and/or recorded such a show.
( 2 - (S + 2R) / (S + 2R)² ) is how often you have seen (S) and/or recorded (R) a show. Why is the formula so complicated? it is a hyperbolic function, that means that with the first couple of times you watch a show, the score increases much, later it still increases but less. And this part of the formula has a maximum of 2, which is important.
Example: If you have seen a show
1x the result is (2 - (1 + 2x0)/(1 + 2x0)²) = (2 - 1 / 1) = 1,0
2x the result is (2 - (2 + 2x0)/(2 + 2x0)²) = (2 - 2 / 4) = 1,5
4x the result is (2 - (4 + 2x0)/(4 + 2x0)²) = (2 - 4 / 16) = 1,75
20x the result is (2 - (20 + 2x0)/(20 + 2x0)²) = (2 - 20 / 400) = 1,95
100x the result is (2 - (100 + 2x0)/(100 + 2x0)²) = (2 - 100 / 10000) = 1,99
The example is without recordings, but as you see in the (S+2R)-expression, a recording is valued twice in comparison to a watched show.
So, the maximum that can be reached with watching and recording shows is 2. In this way the weight is a bit dependend on the times you have seen it, but it does not overweigh your preferences from the keywords.
Another point is, if how often you have seen a show would result in ever rising scores, you would not get a tv program of your liking: Example: If you watch everyday "the night news" from the genre "news", news shows would have an immense high score and the whole personal epg would consist of news shows.
And finally keyword weight and watching and recording shows containing the keywords multiply. So the maximum is 10 points x 1,5 (weight 5) x 2 (seen/recorded it very often). So this show would have 30 points.
You will have to catch the case that S and R equal Zero, so that the expression doesn´t get invalid.
The relations between keyword weight, seen and recorded shows can easily be changed, but I think the basic formula could be a start.
Uuuhhh, certainly not a post for everyone, but somehow the logic has to be programmed :shock:
tomtom