Permalink
Browse files

param

  • Loading branch information...
ultraist committed Aug 30, 2009
1 parent 9e445d8 commit f67efd9856b6f5f60012c5e91609bdb7b2de64a9
Showing with 4,121 additions and 4,121 deletions.
  1. +2 −2 ensemble_recommender.pl
  2. +4,119 −4,119 results.txt
View
@@ -86,9 +86,9 @@ sub load_recommender
}
for (my $i = 0; $i < $reco->{K} && $i < @$repos; ++$i) {
if (!exists($reco_repo{$repos->[$i]})) {
- $reco_repo{$repos->[$i]} = 0.0;
+ $reco_repo{$repos->[$i]} = 1.0;
}
- $reco_repo{$repos->[$i]} += &{$reco->{score}}($i) * $reco->{weight};
+ $reco_repo{$repos->[$i]} *= &{$reco->{score}}($i) * $reco->{weight};
}
}
foreach my $rid (keys(%reco_repo)) {
Oops, something went wrong.

0 comments on commit f67efd9

Please sign in to comment.