Skip to content

Commit

Permalink
fix corrupted notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
agosztolai committed Jun 17, 2024
1 parent 0575515 commit 6183031
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion MARBLE/layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def __init__(self, C, D):

self.O_mat = nn.ModuleList()
for _ in range(C):
self.O_mat.append(nn.Linear(D, D, bias=True))
self.O_mat.append(nn.Linear(D, D, bias=False))

self.reset_parameters()

Expand Down
8 changes: 3 additions & 5 deletions examples/RNN/RNN.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1076,10 +1076,8 @@
" v = pos[j]\n",
"\n",
" n_samples = np.min([len(u), len(v)])\n",
" ind = np.random.choice(len(u), size=(n_samples,), replace=False)\n",
" u = u[np.sort(ind)]\n",
" ind = np.random.choice(len(v), size=(n_samples,), replace=False)\n",
" v = v[np.sort(ind)]\n",
" u = u[:n_samples]\n",
" v = v[:n_samples]\n",
" \n",
" u_score, v_score = cca.fit_transform(u, v)\n",
"\n",
Expand Down Expand Up @@ -1196,7 +1194,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
Expand Down

0 comments on commit 6183031

Please sign in to comment.