Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
glibesyck committed Aug 20, 2024
1 parent b4d0660 commit acfccba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tutorials/W2D2_NeuroSymbolicMethods/W2D2_Tutorial1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1873,10 +1873,10 @@
"###################################################################\n",
"\n",
"set_seed(42)\n",
"encoder = sspspace.RandomSSPSpace(domain_dim=1, ssp_dim=1024)\n",
"new_encoder = sspspace.RandomSSPSpace(domain_dim=1, ssp_dim=1024)\n",
"\n",
"xs = np.linspace(-4,4,401)[:,None] #we expect the encoded values to be two-dimensional in `encoder.encode()` so we add extra dimension\n",
"phis = encoder.encode(xs)\n",
"phis = new_encoder.encode(xs)\n",
"\n",
"#`0` element is right in the middle of phis array! notice that we have 401 samples inside it\n",
"real_line_sims = phis[..., :] @ phis.T"
Expand Down

0 comments on commit acfccba

Please sign in to comment.