muhaochen / on2vec Goto Github PK
View Code? Open in Web Editor NEWCode and dataset of On2Vec.
Home Page: https://epubs.siam.org/doi/abs/10.1137/1.9781611975321.36
Code and dataset of On2Vec.
Home Page: https://epubs.siam.org/doi/abs/10.1137/1.9781611975321.36
Hi, I am reading your code and trying to regenerate the result in your paper these days and here are some questions I met. Thanks for answering!
35 more_filt = ['../../../onto2vec-dataset/Yago/yagoFactsFiltCDTTest.tsv']
46 for f in more_filt:
this_data.record_more_data(f)
25 test_data = '../../../onto2vec-dataset/Yago/yagoFactsFiltCDTTest.tsv'
I suppose it will cause a quite high accuracy if a test file is used as training data. In fact, I used 'yagoFactsFilt15kTest.tsv' in your zip file and run a result as follws:
1.0_test_yago_rel.txt:
Rel
0.9984560455466563
trsym
1.0
hier
0.9969272133666218
There must be something wrong :-(
Could you please tell me the reason?
Thanks a lot !
mldl@ub1604:/ub16_prj/on2vec/yago_wohm$ PYTHONPATH=../src python training_yago.py/ub16_prj/on2vec/yago_wohm$
/usr/local/lib/python2.7/dist-packages/h5py/init.py:36: FutureWarning: Conversion of the second argument of issubdtype from float
to np.floating
is deprecated. In future, it will be treated as np.float64 == np.dtype(float).type
.
from ._conv import register_converters as _register_converters
Loaded ../on2vec-yg60k/Yago/yagoFactsFilt15kTest.tsv to triples_record.
Traceback (most recent call last):
File "training_yago.py", line 53, in
m_train.build(this_data, dim=100, batch_size=500, save_path = model_path, data_save_path = data_path, L1=False)
File "/home/mldl/ub16_prj/on2vec/src/trainer.py", line 36, in build
L1=self.L1)
File "/home/mldl/ub16_prj/on2vec/src/model.py", line 44, in init
self.build()
File "/home/mldl/ub16_prj/on2vec/src/model.py", line 146, in build
A_loss_matrix = tf.sub(
AttributeError: 'module' object has no attribute 'sub'
mldl@ub1604:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.