Skip to content

Commit

Permalink
Update mnsf-tutorial-mouse.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yiwang12 authored Nov 17, 2024
1 parent 8a78a62 commit 7982a40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tutorial/mnsf-tutorial-mouse.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,9 @@ for ksample in range(nsample):
Setting up induced points:
- Induced points are a subset of spatial locations used to reduce computational complexity while maintaining model accuracy.
- For each sample:
- `ninduced = round(list_D[ksample]['X'].shape[0] * 0.15)`: Calculates the number of induced points as 15% of total spots.
- `ninduced = round(list_Dlist_D_chunked['X'].shape[0] * 0.15)`: Calculates the number of induced points as 15% of total spots.
- `rd_ = random.sample(...)`: Randomly selects the induced points.
- `list_D[ksample]["Z"] = list_D[ksample]['X'][rd_, :]`: Stores the selected points in the data structure.
- `list_D_chunked[ksample]["Z"] = list_D_chunked[ksample]['X'][rd_, :]`: Stores the selected points in the data structure.

The number of induced points (15% here) is a trade-off between computational efficiency and accuracy. You might need to adjust this percentage based on your dataset size and available computational resources.

Expand Down

0 comments on commit 7982a40

Please sign in to comment.