Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

refact

  • Loading branch information...
commit 7130ad3696fc84759e04ca0d4d43936687fa5c99 1 parent b093fac
@ultraist authored
Showing with 3,414 additions and 3,440 deletions.
  1. +2 −2 ensemble_recommender.pl
  2. +0 −26 popular_recommender.pl
  3. +3,412 −3,412 results.txt
View
4 ensemble_recommender.pl
@@ -22,13 +22,13 @@
},
{
file => "./results_author.txt",
- weight => 0.55,
+ weight => 0.60,
K => 40,
score => sub { 1.0 / (1.5 + $_[0]); }
},
{
file => "./results_name.txt",
- weight => 0.3,
+ weight => 0.35,
K => 30,
score => sub { 1.0 / (1.5 + $_[0]); }
},
View
26 popular_recommender.pl
@@ -9,19 +9,6 @@
$|=1;
our $e = exp(1);
-sub match_lang
-{
- my($repo, $user) = @_;
-
- if (!$user || scalar(@$user) == 0) {
- return 1;
- }
- if (!$repo || scalar(@$repo) == 0) {
- return undef;
- }
- return Utils::intersection_count($repo, $user) > 0 ? 1:undef;
-}
-
sub lang_score
{
my($lang, $repo, $user) = @_;
@@ -42,19 +29,6 @@ sub lang_score
return $score / ($n1 > $n2 ? $n1:$n2);
}
-sub repo_score
-{
- my ($repo, $id) = @_;
- my $forks = $repo->fork_repos($id);
- my $score = $repo->freq($id);
-
- foreach my $fid (@$forks) {
- $score += $repo->freq($fid);
- }
-
- return $score;
-}
-
popular_recommender:
{
print "$0: loading ..\r";
View
6,824 results.txt
3,412 additions, 3,412 deletions not shown
Please sign in to comment.
Something went wrong with that request. Please try again.