holographic-embeddings icon indicating copy to clipboard operation
holographic-embeddings copied to clipboard

Problem happens when set parameter "mode" = lp

Open MingGuangShao opened this issue 8 years ago • 2 comments

Hi Maximilian,

I was trying to run your project holographic-embeddings with mode=lp to get the AUC score. At first, I got the error message that

AttributeError: 'PairwiseStochasticTrainer' object has no attribute '_scores'

I only found the '_score' function is belong to the member 'model' of class 'PairwiseStochasticTrainer', so I changed the line 232 of base.py from

scores = mdl._scores(self.ss, self.ps, self.os)

to

scores = mdl.model._scores(self.ss, self.ps, self.os)

It works now, but I still want to make sure whether it is the right way to do that! Thank for your kindly help and looking forward to your reply.

Best, Daye SHAO

MingGuangShao avatar Dec 26 '16 15:12 MingGuangShao

Hi Maximilian, I'm also trying to run the project on model "lp". I get the error message: self.ev_test = self.evaluator(data['test_subs'], data['test_labels']) KeyError: 'test_labels' and KeyError: 'valid_labels' As far as I understood, the dataset should contain two more keys, but they aren't present. Could you explain what "labels" exactly mean and how it could be fixed? Are "labels" relationships? Thanks! Leonardo

leonardomra avatar Feb 01 '17 12:02 leonardomra

@leonardomra Did you find the exact label ? I'm trying to used labels as 1assuming all edges are true, but that gives me error in AUC curve

grv1207 avatar Dec 07 '17 12:12 grv1207