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

Move overview #227

Merged
merged 46 commits into from
Oct 3, 2024
Merged

Move overview #227

merged 46 commits into from
Oct 3, 2024

Conversation

BalzaniEdoardo
Copy link
Collaborator

@BalzaniEdoardo BalzaniEdoardo commented Sep 16, 2024

In this PR I am streamlining the home page content by

  1. Moving package usage content from the home page to the quickstart.
  2. Using tabs for installation instruction
  3. Wrap disclaimer into a warning admonition

@BalzaniEdoardo BalzaniEdoardo marked this pull request as ready for review September 18, 2024 15:27
@BalzaniEdoardo BalzaniEdoardo requested review from gviejo and billbrod and removed request for gviejo September 18, 2024 15:27
@codecov-commenter
Copy link

codecov-commenter commented Sep 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.24%. Comparing base (32132b1) to head (be585bd).
Report is 382 commits behind head on development.

Additional details and impacted files
@@               Coverage Diff               @@
##           development     #227      +/-   ##
===============================================
- Coverage        97.30%   97.24%   -0.06%     
===============================================
  Files               18       20       +2     
  Lines             1669     1815     +146     
===============================================
+ Hits              1624     1765     +141     
- Misses              45       50       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@billbrod billbrod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general, I think it's worth getting Alex's and Eero's opinion on this bit.

  1. I think the first part doesn't flow into the next. Maybe make it simpler? It feels weird to spend all this text describing non-linear mapping vs. convolution and then barely touch on it in the rest of the text. Also, the first section has a fairly substantial amount of prose, whereas the rest is almost all code. Maybe remove everything from the paragraph that ends "position or spike counts." to the one that starts "On the other hand, the glm module..."

docs/quickstart.md Outdated Show resolved Hide resolved
docs/quickstart.md Outdated Show resolved Hide resolved
docs/quickstart.md Outdated Show resolved Hide resolved

###### Simulate Spike Counts

Let's generate some spikes from a Poisson model.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should point out that most users won't do this -- they'll be getting this data from their experiment.

makes me wonder if we should show this with simulated data (vs. loading in a small example dataset)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for a quickstart I think it is fine to use fake data. I would not use an example data here because explaining it takes more time than actually drawing some samples.
What we should aim for is executable code, the input is not relevant, so I would not go into the load some data route.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the section and added a simulation of the counts in the code; this should give less emphasis to this step

BalzaniEdoardo and others added 2 commits September 19, 2024 09:07
Co-authored-by: William F. Broderick <[email protected]>
Co-authored-by: William F. Broderick <[email protected]>
@BalzaniEdoardo
Copy link
Collaborator Author

  1. position or spike counts

I don't know if I would remove that, it is very important to understand the basis object. We may refer to this modes of operation in the subsequent examples more explicitly to improve the flow of the description

docs/quickstart.md Show resolved Hide resolved
docs/quickstart.md Show resolved Hide resolved

# compute log-likelihood
ll = glm.score(X, spike_counts)
```

### Model Arguments
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would stop here the Quickstart maybe. To me this is more part of the API.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this section but I added a couple of things:

  • Continuous observation: showing how to set up a gamma glm
  • Regularization

observation_model=nmo.observation_models.GammaObservations()
)
```


### Pre-processing with `pynapple`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... and I would keep the remaining in the Quickstart but maybe with an extra title like "Compatibility with other packages". But not sure. This could be a page on its own but not sure where it would fit.

Copy link
Member

@billbrod billbrod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking much better! Most of my comments are pretty small here

docs/assets/glm_features_scheme.svg Outdated Show resolved Hide resolved
docs/quickstart.md Outdated Show resolved Hide resolved
docs/quickstart.md Show resolved Hide resolved
docs/quickstart.md Outdated Show resolved Hide resolved
docs/quickstart.md Show resolved Hide resolved
docs/quickstart.md Show resolved Hide resolved
docs/quickstart.md Outdated Show resolved Hide resolved
docs/quickstart.md Show resolved Hide resolved
docs/quickstart.md Outdated Show resolved Hide resolved
docs/quickstart.md Outdated Show resolved Hide resolved
@BalzaniEdoardo
Copy link
Collaborator Author

Addressed all concerns

@BalzaniEdoardo BalzaniEdoardo merged commit 37c50f2 into development Oct 3, 2024
11 checks passed
@BalzaniEdoardo BalzaniEdoardo deleted the move_overview branch October 3, 2024 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants