Git Product home page Git Product logo

Comments (3)

classicsong avatar classicsong commented on June 12, 2024

dglke_emb_sim accepts embedding files, i.e., --emb_file instead of --model_path

from dgl-ke.

Maristela-de-Jesus avatar Maristela-de-Jesus commented on June 12, 2024

Thank you for your answer, @classicsong :)

I changed to --emb_file. However, the score_func seems to be not an acceptable args.

I also tried --score_func logsigmoid, but it still didn't work.

Updated code:

!DGLBACKEND=pytorch dglke_emb_sim --emb_file ./wikimedia/TransE_l2_wikimedia_0/wikimedia_TransE_l2_entity.npy \
--format 'h_*_*' --data_files head.list \
--score_func none --topK 10

Result:

usage: dglke_emb_sim [-h] [--mfile MFILE] [--emb_file EMB_FILE]
                     [--format FORMAT]
                     [--data_files DATA_FILES [DATA_FILES ...]] [--raw_data]
                     [--exec_mode EXEC_MODE] [--topK TOPK]
                     [--sim_func SIM_FUNC] [--output OUTPUT] [--gpu GPU]
dglke_emb_sim: error: unrecognized arguments: --score_func none

Thank you :)

from dgl-ke.

classicsong avatar classicsong commented on June 12, 2024

You do not need to specify score_func as this is for entity embedding similarity.

from dgl-ke.

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.