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

moving common methods from models to abstract #173

Merged
merged 9 commits into from
Feb 3, 2024

Conversation

JohnWangDataAnalyst
Copy link
Collaborator

setModelparams()
untoch andrew' code
I ran through his two examples but not sure the figures are shown... no errors either

@Davi1990
Copy link
Collaborator

Waiting @JohnGriffiths to approve this

Copy link
Collaborator

@JohnGriffiths JohnGriffiths left a comment

Choose a reason for hiding this comment

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

Approving this review, I have left comments about things removed from the code that need to be re-introduced (more cleanly) at some point soon, and have created (currently empty) issues for these.

self.sc = sc # matrix node_size x node_size structure connectivity
self.sc_fitted = torch.tensor(sc, dtype=torch.float32) # placeholder
self.use_fit_gains = use_fit_gains # flag for fitting gains
self.use_Laplacian = use_Laplacian
Copy link
Collaborator

Choose a reason for hiding this comment

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

use_Laplacian is being removed here

I've discussed this with @JohnWangDataAnalyst. We will revisit this in the future. For present purposes I think it makes sense to remove for the sake of having consistent model structure, and also that these features aren't currently used. But this does need to be revisited. Have created issue #174

Copy link
Collaborator

Choose a reason for hiding this comment

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

This is the argument being removed, but it looks like the use_Laplacian feature is permanently on. It is important that users are aware of this.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yep.

self.sc = sc # matrix node_size x node_size structure connectivity
self.sc_fitted = torch.tensor(sc, dtype=torch.float32) # placeholder
self.use_fit_gains = use_fit_gains # flag for fitting gains
self.use_Laplacian = use_Laplacian
self.use_Bifurcation = use_Bifurcation
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same as #174, #175 is a to-do issue flagging that we need to put the bifurcation analysis component back into the code. Minimally, because this is used in the biorxiv paper draft that needs to be completed and submitted and reproducible within whobpyt.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@Andrew-Clappison unless you have any objections I will go ahead and merge

Copy link
Collaborator

@Andrew-Clappison Andrew-Clappison Feb 1, 2024

Choose a reason for hiding this comment

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

Glad to see a trend towards simplification of the model and objective function. Didn’t look too closely, but here are some additional non-critical things I noticed that can be considered later:

  • Argument type checking has been removed
  • The RWWEI2 model is no longer a subclass of AbstractNMM

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok thanks @Andrew-Clappison for the additional notes. We will refer to this discussion thread moving forward as we get to these points.

Going ahead with merge now.

@JohnGriffiths JohnGriffiths merged commit fe40096 into GriffithsLab:dev Feb 3, 2024
1 check passed
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.

4 participants