GithubHelp home page GithubHelp logo

Comments (2)

albernar avatar albernar commented on June 21, 2024

Hello! This is actually not a bug, but an intended behaviour. Indeed, it may happen (especially when the dataset is too small or the test_size is too big w.r.t. the dataset) that you cannot split triples in such a way that you have all the same entities present in the training set also in the test set.
Most of KGE methods are transductive, which means that entities in the test set have to be a subset of the entities of the training set and when train_test_split_no_unseen raise that error is precisely because, given those triples and that test_size, you cannot create train and test sets with overlapping entities.

from ampligraph.

albernar avatar albernar commented on June 21, 2024

For what it concerns the allow_duplication=True case, that argument is used to allow duplicating triples within the test set at random, but since there is not even a triple in the test set (since all your triples have different subjects), there is nothing to duplicate (and that's where your error comes from).

I hope this helps. If not, feel free to reopen.

from ampligraph.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.