Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'ConvKB' object has no attribute 'corr_batch_size' #260

Open
WarisBunglawala opened this issue Mar 18, 2022 · 1 comment
Open

'ConvKB' object has no attribute 'corr_batch_size' #260

WarisBunglawala opened this issue Mar 18, 2022 · 1 comment
Assignees

Comments

@WarisBunglawala
Copy link

WarisBunglawala commented Mar 18, 2022

Description

After completion of training ConvKB model i tried to predict the score of the triples using the following lines of code :

# predict the score of the triple (116 sha triple with 8 sha and 1 type triple)
triple_score1 = model.predict(np.array(test_triple1))
# print('Triple of interest: \n', test_triple1)
print('Triple Score: \n', triple_score1)

but it throws an error stating the following :

File "/ampligraph/latent_features/models/EmbeddingModel.py", line 1379, in _initialize_eval_graph
    self.corr_batches_count = int(np.ceil(len(corruption_entities) / (self.corr_batch_size)))
AttributeError: 'ConvKB' object has no attribute 'corr_batch_size'

So, i dont understand what i am doing wrong here and same error accurs while evaluation too.
can you help me understand what should i do in order get the scores of triples as well as to evalute them using ranks.

@sumitpai
Copy link
Contributor

I will check this issue and keep you updated

@sumitpai sumitpai self-assigned this Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants