Giter Site home page Giter Site logo

Comments (4)

zty2009 avatar zty2009 commented on August 19, 2024

In drugnet_and_feature.R :'catename=as.character(a[which(a[,2]>100),1])'
means that The drug category can be used as a feature if it repeats more than 100 times.
In this demo, the number of drugs is too small, so sd_drugfeature46.txt can not be generated. You can use st_drugfeature27.txt to replace it.
The 25/27 categories used in this paper could be found in supplementary file.

from gcn-dnn.

hzjsxu avatar hzjsxu commented on August 19, 2024

In drugnet_and_feature.R :'catename=as.character(a[which(a[,2]>100),1])'
means that The drug category can be used as a feature if it repeats more than 100 times.
In this demo, the number of drugs is too small, so sd_drugfeature46.txt can not be generated. You can use st_drugfeature27.txt to replace it.
The 25/27 categories used in this paper could be found in supplementary file.

Do you mean using the st_drugfeature27.txt to replace sd_drugfeature46.txt ? If so, In the sd_demo.R, I met the problem:
image

from gcn-dnn.

HuangXun-code avatar HuangXun-code commented on August 19, 2024

In drugnet_and_feature.R :'catename=as.character(a[which(a[,2]>100),1])'
means that The drug category can be used as a feature if it repeats more than 100 times.
In this demo, the number of drugs is too small, so sd_drugfeature46.txt can not be generated. You can use st_drugfeature27.txt to replace it.
The 25/27 categories used in this paper could be found in supplementary file.

Do you mean using the st_drugfeature27.txt to replace sd_drugfeature46.txt ? If so, In the sd_demo.R, I met the problem:
image

I tried to use the st_drugfeature27.txt to replace sd_drugfeature46.txt then I met the same problem as the one above. In addtion, I try to use the Yamanishi_08 data' s data to replace demodata.txt, and I met the new problem:
image

from gcn-dnn.

zty2009 avatar zty2009 commented on August 19, 2024

I just tested my code and found both sp_demo and st_demo can be run. Since the dimension of drugs features in SD test is different from SP and ST, slight change in code is needed. However, the process and method are the same for the three tests. Therefore, you can ignore this problem and use the core part of our method to test on your datasets.
I took a look at your error message, which is a programming problem. Obviously, I can't guide you line by line to write code under different data sets. When you try to use GCN-DTI on another datasets, slight change in code is necessary.
If you come across problems about algorithm(GCN-DTI), please contact me with no hesitate.

from gcn-dnn.

Related Issues (5)

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.