Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ExplainGNNWithHighLevelConcepts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ajay Umakanth
ExplainGNNWithHighLevelConcepts
Commits
f6144c50
There was an error fetching the commit references. Please try again later.
Commit
f6144c50
authored
6 months ago
by
AjUm-HEIDI
Browse files
Options
Downloads
Patches
Plain Diff
update the device type
parent
9ee785aa
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
GNN/HeterogenousGNN.py
+1
-1
1 addition, 1 deletion
GNN/HeterogenousGNN.py
text_based_datasets_experiment.py
+1
-1
1 addition, 1 deletion
text_based_datasets_experiment.py
with
2 additions
and
2 deletions
GNN/HeterogenousGNN.py
+
1
−
1
View file @
f6144c50
...
...
@@ -161,7 +161,7 @@ class GNN(torch.nn.Module):
for
node_type
in
self
.
label_nodes
:
# Here the targets are per-node.
target
=
self
.
data
[
node_type
].
y
target
=
self
.
data
[
node_type
].
y
.
to
(
self
.
device
)
loss
=
F
.
cross_entropy
(
out_dict
[
node_type
],
target
,
...
...
This diff is collapsed.
Click to expand it.
text_based_datasets_experiment.py
+
1
−
1
View file @
f6144c50
...
...
@@ -41,7 +41,7 @@ def run_gnn(structuredDataset: Base, entity_name, datasetName, results_dir):
original_labels
=
structuredDataset
.
dataset
[
entity_name
].
y
predicted_labels
=
model
.
predict_all
()
cm
=
confusion_matrix
(
original_labels
,
predicted_labels
[
entity_name
])
cm
=
confusion_matrix
(
original_labels
.
cpu
().
numpy
()
,
predicted_labels
[
entity_name
]
.
cpu
().
numpy
()
)
print
(
"
Confusion Matrix:
"
)
print
(
cm
)
evaluations
[
"
confusion_matrix
"
]
=
cm
.
tolist
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment