Giter VIP home page Giter VIP logo

cane's People

Contributors

haoxizhong avatar tucunchao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cane's Issues

关于cane.py 代码中的compute_loss函数设置有些疑问

  1. 从代码中看temp_loss=rho1*(p1+p2)+rho2*(p3+p4)+rho3*(p5+p6)+rho3*(p7+p8)
    应该是rho1Ltt + rho2Lss + rho3*(Lst + Lts),论文里面超参似乎不是这么设置的,复现应该以哪个为准呢?

不知道理解的对不对,请指教,谢谢!

bug produced on data 'wiki'

when i ran on the 'wiki', it said that, IndexError: index 2330 is out of bounds for axis 0 with size 2317.

Thanks
Wei

关于相互关注向量

您好!请问在代码里,生成了每个节点的相互关注表示,但是最后求了平均,写入了embed,txt文件,并求出AUC,但是论文里最后进行节点分类时,却说求平均操作是为了获得context-free embedding,请问,这是什么原因呢,是不是代码里的嵌入是为了算分类的嵌入?还是我理解错了?

您好,在运行zhihu数据时,出现以下错误。

1000000
start training.......
Traceback (most recent call last):
File "train.py", line 39, in
text1,text2,text3=data.text[node1],data.text[node2],data.text[node3]
IndexError: index 10000 is out of bounds for axis 0 with size 10000
但是将graph.txt中带有10000的数据去掉之后就不会报错。请问这是什么原因。

How do I reproduce the results in the paper?

When I am running your code for cora dataset with 15% sampled edges and rho1=1.0, rho2=1.0 & rho3=0.3 I am getting an AUC of 0.8495803744351195 which doesn't matches the paper. What should I do?

关于得到的表示向量

论文中提到最后的节点表示向量应该是结构嵌入与文本嵌入相结合的形式,但代码中在train.py进行写入时只写入了TA,TB代表的结构嵌入,而没有写入文本嵌入,所以导致即使设定了最后的表示向量是200维,但写入后的文件仍然只有100维。不知道我说的对吗,或者我哪块理解有问题。

Data source problem

Please check the effect of temp/test_graph.txt and temp/embed. TXT files can be added?

关于参数设置的一些问题

请问代码中的参数设置是怎么对应的?文中关于cora数据集的设置是1.0, 0.3, 0.3 这个是和代码中的rho1 rho2 rho3对应的吗?感谢~

遇到以下几个问题,不是很懂。

1.zhihu数据集中的graph.txt是怎么构建的。
2.感觉每个节点生成的embedding是多个,程序运行完是一个节点一个embedding,不是很明白,求解。
3. 运行Hepth数据集报错:
Traceback (most recent call last):
File "train.py", line 77, in
convA,convB,TA,TB = sess.run([model.convA,model.convB,model.N_A,model.N_B],feed_dict=feed_dict)
File "/home/cyh/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 766, in run
run_metadata_ptr)
File "/home/cyh/anaconda2/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 943, in _run
% (np_val.shape, subfeed_t.name, str(subfeed_t.get_shape())))
ValueError: Cannot feed value of shape (39,) for Tensor u'read_inputs/n2:0', which has shape '(64,)'

代码复现中,存在的疑惑

您好~凃学长,想请问您关于您在GitHub上提交的代码是否仅仅是基于文本嵌入的那部分,并未涉及到基于结构的嵌入呢?

some tensorflow api were changed in latest version

tf.batch_matmul() function was removed in latest version of tensorflow?
tf.mul() was replaced by tf.multiply()
tf.pack was replaced by tf.stack()
so if latest version tensorflow was used, these functions should be replaced
changing tf.batch_matmul() to tf.matmul() may be complicated, parameters are different,
cane.py at line 51
r1=tf.batch_matmul(ha_mul_rand,hB,adj_y=True) was replaced by
r1=tf.matmul(ha_mul_rand, bB, transpose_a=False, transpose_b = True)

could you please post the intermediate running time outputs to the repo?

how to run the train.py?

after I git-clone this repo and run the command python train.py
some errors report:
Traceback (most recent call last):
File "train.py", line 14, in
data=dataSet(text_path,graph_path)
File "/home/ldl/acl17-CANE/code/DataSet.py", line 12, in init
text_file,graph_file=self.load(text_path,graph_path)
File "/home/ldl/acl17-CANE/code/DataSet.py", line 21, in load
text_file=open(text_path,'rb').readlines()
IOError: [Errno 2] No such file or directory: 'data.txt'

and when I copy the datasets/zhihu/* to the code folder and run again
also:
Traceback (most recent call last):
File "train.py", line 14, in
data=dataSet(text_path,graph_path)
File "/home/ldl/acl17-CANE/code/DataSet.py", line 14, in init
self.edges=self.load_edges(graph_file)
File "/home/ldl/acl17-CANE/code/DataSet.py", line 29, in load_edges
edges.append(map(int,i.strip().split('\t')))
ValueError: invalid literal for int() with base 10: '1 2'

so I want to know how to run the code.

我想问下AUC指标计算时数据集划分问题

您在论文中提到,对于数据集划分使用百分比,您对比算法也提到了node2vec,我想问下在数据集划分过程中考虑了训练集中包含所有的顶点吗,能否给出这部分划分的代码,我一直很迷惑

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.