Closed LckyLke closed 12 hours ago
Yes. Could you fix it ?
Yes. Could you fix it ?
Yes! Ig the same holds for this sampling of named concepts:
if args.ratio_sample_nc:
# (6.1) Subsample if required.
nc = {i for i in random.sample(population=list(nc), k=max(1, int(len(nc) * args.ratio_sample_nc)))}
but are there kgs that dont define classes?
Yes!
ok then i will change that as well :)
Thank you 👍
fixed in #488
https://github.com/dice-group/Ontolearn/blob/90996aa453d1ab3526f308f8ee24eae447cfa26d/examples/retrieval_eval.py#L89-L91
This causes in error if we use a KG with no object properties. (e.g. lymphography.owl) Thus we should change the maximum to
max(0, int(len(nc) * args.ratio_sample_nc)
.