Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

param

  • Loading branch information...
commit 3b0dd5f02c5f50a76bbea26f6395fc32c1255e5e 1 parent e87c81f
@ultraist authored
Showing with 3,191 additions and 3,201 deletions.
  1. +6 −16 ensemble_recommender.pl
  2. +3,185 −3,185 results.txt
View
22 ensemble_recommender.pl
@@ -5,35 +5,31 @@
use Lang;
use Result;
use Utils;
-use constant {
- DEF_K => 30
-};
$|=1;
-
our @RECOMMENDER = (
{
file => "./results_forkbase.txt",
weight => 2.0,
- K => DEF_K,
+ K => 30,
score => sub { 1.0 / (1.0 + $_[0]); }
},
{
file => "./results_co_occurrence.txt",
weight => 1.5,
- K => DEF_K,
+ K => 30,
score => sub { 1.0 / (1.0 + $_[0]); }
},
{
file => "./results_author.txt",
- weight => 0.6,
- K => DEF_K + 10,
- score => sub { 1.0 / (1.5 + $_[0]) ** 1.2; }
+ weight => 0.65,
+ K => 40,
+ score => sub { 1.0 / (1.5 + $_[0]); }
},
{
file => "./results_name.txt",
weight => 0.3,
- K => DEF_K,
+ K => 30,
score => sub { 1.0 / (1.5 + $_[0]); }
},
{
@@ -44,12 +40,6 @@
}
);
-sub rank_score
-{
- my $rank = shift;
- return (1.0 / (1.5 + $rank));
-}
-
sub load_recommender
{
my $recommender = [];
View
6,370 results.txt
3,185 additions, 3,185 deletions not shown
Please sign in to comment.
Something went wrong with that request. Please try again.