Comments (4)
@jiong-zhu Yeah, that makes sense. I've updated the code as you suggested to avoid confusion. See details in commit 000f86d. Thank you for the advice, Jiong and Mark!
from deeprobust.
Thanks for the suggestion.
Typically self.predict()
is used by self.test()
where we do not specify the arguments features
and adj
. If you hope to pass some features, adj
pair into the function, you can do it outside the predict()
as follows,
prediction1 = model.predict()
processed_adj = model.truncatedSVD(perturbed_adj, k=20)
# prediction2 is the same as prediction1
prediction2 = model.predict(features, processed_adj)
Similarly we can do that in GCNJaccard. I think I am going to keep the original version of predict()
. Thank you again for your suggestions and feel free to let me know if you have other concerns.
from deeprobust.
@ChandlerBang I see your point, but I would still vote to include an overridden version of the predict
function for GCNSVD, just to keep the consistency of interfaces among different models. If kept unchanged, users using the predict()
function for GCNSVD may think they are getting predictions on the GCNSVD, but in fact they are getting results from GCN
.
from deeprobust.
Thank you!
from deeprobust.
Related Issues (20)
- The problem of graph adversarial attacks HOT 4
- why the cora dataset in deeprobust have 2485 nodes,and cora dataset in pyg have 2708 nodes? which one is correct? HOT 1
- How targeted_attack attack a subset of nodes? HOT 2
- The problem of NIPA HOT 1
- Issue With Dataset library in deeprobust for Setting as prognn and for Windows Platform. HOT 2
- Does deeprobust support ImageNet dataset and how to set parameters for attack algorithms when using it?
- AttributeError: 'Dataset' object has no attribute 'root' Dataset of deeprobust HOT 2
- error during installation windows 11 HOT 7
- Dose deeprobust support image segmentation models such as FCN? how to use it
- A source code error when using deeprobust.graph.data.Dataset under windows (have solved) HOT 3
- Custom Dataset HOT 1
- Issues related to graph injection attacks on NIPA HOT 5
- About Random Seeds HOT 2
- Getting scipy error on running test_pgdtraining.py
- Question about PGD graph global attack with CE/CW loss
- Can this support GraphSAGE?
- About the sparse matrix
- An error in the installation process HOT 1
- 关于graph是否使用lcc版本的设置问题 HOT 1
- why the accuracy in pubmed is so high?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deeprobust.