Giter VIP home page Giter VIP logo

Comments (2)

cthoyt avatar cthoyt commented on May 25, 2024

Hi @ChristopherMarais, the format is quite simple - you can have a TSV file with three columns corresponding to the head, relation, and tail. Each row should be a single triple.

The tutorial at https://pykeen.readthedocs.io/en/latest/tutorial/byod.html should help you get started with using your own data. If you've got a specific uncertainty with this, I'd be glad to walk you through it and make any updates that will help you and other users!

Happy Friday, greets from Germany

from pykeen.

ChristopherMarais avatar ChristopherMarais commented on May 25, 2024

Hi thank you for the quick response. I managed to figure out the exact format by looking at the incorporated datasets. however I run into an error when using:

tf = TriplesFactory(path=work_path + '/data.txt')
training, testing = tf.split()

I started a new issue with this error as the main topic, I'm not sure why it would give that error so I flagged it as a bug.

The error is the following:

ValueError                                Traceback (most recent call last)
<ipython-input-15-ef15ccdc9011> in <module>
      3 
      4 tf = TriplesFactory(path=work_path + '/eucalyptus_triplets.txt')
----> 5 training, testing = tf.split()
      6 
      7 pipeline_result = pipeline(

~\anaconda3\envs\pykeen\lib\site-packages\pykeen\triples\triples_factory.py in split(self, ratios, random_state, randomize_cleanup)
    419         idx = np.arange(n_triples)
    420         if random_state is None:
--> 421             random_state = np.random.randint(0, 2 ** 32 - 1, dtype=np.int64)
    422             logger.warning(f'Using random_state={random_state} to split {self}')
    423         if isinstance(random_state, int):

mtrand.pyx in numpy.random.mtrand.RandomState.randint()

_bounded_integers.pyx in numpy.random._bounded_integers._rand_int32()

ValueError: high is out of bounds for int32

Issue has been opened at: #92

P.s greetings from South Africa :)

from pykeen.

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.