Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Argument Name in load_molecules Function for removing error from training code #16

Open
wants to merge 1 commit into
base: archive
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions training_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def generate_z_values(batch_size=32, z_dim=32, vertexes=32, b_dim=32, m_dim=32,
# return drug_graphs, real_graphs, a_tensor, x_tensor, drugs_a_tensor, drugs_x_tensor


def load_molecules(batch=None, b_dim=32, m_dim=32, device=None, batch_size=32):
def load_molecules(data=None, b_dim=32, m_dim=32, device=None, batch_size=32):
data = data.to(device)
a = geoutils.to_dense_adj(
edge_index = data.edge_index,
Expand All @@ -90,4 +90,4 @@ def load_molecules(batch=None, b_dim=32, m_dim=32, device=None, batch_size=32):
x_tensor_vec = x_tensor.reshape(batch_size,-1)
real_graphs = torch.concat((x_tensor_vec,a_tensor_vec),dim=-1)

return real_graphs, a_tensor, x_tensor
return real_graphs, a_tensor, x_tensor