Skip to content

Commit

Permalink
Merge pull request #7 from AGDuran/patch-2
Browse files Browse the repository at this point in the history
Create FB15k_Tri.py
  • Loading branch information
bordesa committed Mar 17, 2015
2 parents afccf9f + a1afe49 commit 40a1838
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions FB15k_Tri.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
from FB15k_exp import *
from FB15k_evaluation import *

savepath='FB15k_Tri'
datapath='data/'
launch(op='Tri', ndim=50, marge=0.25, rhoL=5, lremb=0.01, nbatches=150, dataset='FB',
totepochs=500, test_all=500, neval=1000, savepath=savepath, datapath=datapath)

print "\n##### EVALUATION #####\n"

MR, T10 = RankingEvalFil(datapath=datapath, dataset='FB', op='Tri',
loadmodel=savepath+'/best_valid_model.pkl', Nrel=1345, Nsyn=14951)

print "\n##### MEAN RANK: %s #####\n" % (MR)
print "\n##### HITS@10: %s #####\n" % (T10)

0 comments on commit 40a1838

Please sign in to comment.