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

fix targets in learn function #3210

Open
wants to merge 2 commits into
base: devel
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
6 changes: 3 additions & 3 deletions Scripts/Examples/Lena Rumelhart script.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,9 +209,9 @@ def gen_input_vals(nouns, relations):
rels_in: rels_onehot[rel_out],
},
targets={out_sig_I: truth_nouns[noun],
out_sig_is: truth_is[noun],
out_sig_has: truth_has[noun],
out_sig_can: truth_can[noun]
out_sig_is: truth_is[noun] if rel_out == 0 else np.zeros(len(is_list)),
out_sig_has: truth_has[noun] if rel_out == 1 else np.zeros(len(has_list)),
out_sig_can: truth_can[noun] if rel_out == 2 else np.zeros(len(can_list)),
},
)

Expand Down
Loading