Git Product home page Git Product logo

kge_nfm's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

kge_nfm's Issues

bug in using BioKG dataset

Hello, I have a few questions about the KGE_NFM model. Have you ever run this code with datasets other than yamanishi_08 (such as BioKG, hetionet, luo's_dataset or other unmentioned datasets )?
Now,I'm trying to run the kge_nfm.py code using the BioKG dataset, but I have encountered the following problems in the process of changing the dataset. I would be happy to provide more details. Could you have a look at your convenience? Thank you.

Traceback (most recent call last):
File "kge_nfm.py", line 366, in
roc,pr,roc_s,pr_s,re_train_all,train_label,re_test_all,test_label,pred_y = train(i,10,10,50,200,True,10)
File "kge_nfm.py", line 314, in train
train_dense_features,test_dense_features = get_scaled_embeddings(model,re_train_all,re_test_all,False,n_components)
File "kge_nfm.py", line 168, in get_scaled_embeddings
[train_obj_embeddings,test_obj_embeddings] = [model.get_embeddings(x['tail'].values, embedding_type='entity') for x in [train_triples,test_triples]]
File "kge_nfm.py", line 168, in
[train_obj_embeddings,test_obj_embeddings] = [model.get_embeddings(x['tail'].values, embedding_type='entity') for x in [train_triples,test_triples]]
File "/home/zwc/anaconda3/envs/kge_nfm/lib/python3.6/site-packages/ampligraph/latent_features/models/EmbeddingModel.py", line 444, in get_embeddings
idxs = np.vectorize(lookup_dict.get)(entities)
File "/home/zwc/anaconda3/envs/kge_nfm/lib/python3.6/site-packages/numpy/lib/function_base.py", line 2108, in call
return self._vectorize_call(func=func, args=vargs)
File "/home/zwc/anaconda3/envs/kge_nfm/lib/python3.6/site-packages/numpy/lib/function_base.py", line 2195, in _vectorize_call
res = array(outputs, copy=False, subok=True, dtype=otypes[0])
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

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.