Skip to content

Commit

Permalink
fix all tutorials
Browse files Browse the repository at this point in the history
  • Loading branch information
BalzaniEdoardo committed Dec 4, 2024
1 parent fb3dd75 commit 892c412
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/tutorials/plot_03_grid_cells.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ Now we can "evaluate" the basis for each position of the animal


```{code-cell} ipython3
position_basis = basis_2d(position["x"], position["y"])
position_basis = basis_2d.compute_features(position["x"], position["y"])
```

Now try to make sense of what it is
Expand Down
4 changes: 2 additions & 2 deletions docs/tutorials/plot_05_place_cells.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ The object basis only tell us how each basis covers the feature space. For each


```{code-cell} ipython3
X = basis(position, theta, speed)
X = basis.compute_features(position, theta, speed)
```

`X` is our design matrix. For each timestamps, it contains the information about the current position,
Expand Down Expand Up @@ -455,7 +455,7 @@ predicted_rates = {}
for m in models:
print("1. Evaluating basis : ", m)
X = models[m](*features[m])
X = models[m].compute_features(*features[m])
print("2. Fitting model : ", m)
glm.fit(
Expand Down

0 comments on commit 892c412

Please sign in to comment.