gipa_wide_deep's People
gipa_wide_deep's Issues
some question about trans_edge_fea_to_sparse
hello author, I am a beginner in GNN and have some questions about GIPA code implementation. Can you explain the process for transforming sparse tensors, how do you get interval list parameters? thanks a lot :)
interval_0_1 = [0.001, 1]
interval_3 = [0.001, 0.7, 1]
interval_4 = [0.001, 0.1, 0.2, 1]
interval_12 = [0.001, 0.07, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.5, 0.7, 1]
interval_15 = [0.001, 0.07, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.6, 0.7, 0.8, 1]
simple_inter = [interval_0_1, interval_4, interval_0_1, interval_4, interval_12, interval_12, interval_3, interval_15]
def trans_edge_fea_to_sparse(raw_edge_fea, graph, interval: list, is_log=False):
edge_fea_list = []
for i in range(8):
print("Process edge feature == %d " % i)
res = torch.reshape((raw_edge_fea[:, i] == 0.001).float(), [-1, 1])
edge_fea_list.append(res)
for j in range(1, len(interval[i])):
small, big = float(interval[i][j - 1]), float(interval[i][j])
print("process interval %0.3f < x <= %0.3f " % (small, big))
cond = torch.logical_and((raw_edge_fea[:, i] > small), (raw_edge_fea[:, i] <= big))
edge_fea_list.append(torch.reshape(cond.float(), [-1, 1]))
sparse = torch.concat(edge_fea_list, dim=-1)
print(sparse.size())
graph.edata.update({"sparse": sparse})
graph.update_all(fn.copy_e("sparse", "sparse_c"), fn.sum("sparse_c", "sparse_f" if is_log else "sparse"))
if is_log:
graph.apply_nodes(lambda nodes: {"sparse": torch.log2(nodes.data['sparse_f'] + 1)})
del graph.ndata["sparse_f"]
return sparse
默认参数问题
请问您run_deep_wide.sh是取得0.89指标的参数设置吗?如果是的话有几个问题想问一下,为什么edge-att-act 是"none",按照论文中的描述,这里不应该是softPlus吗?
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.