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

Simulation hoi script #26

Merged
merged 7 commits into from
Oct 18, 2023
Merged

Simulation hoi script #26

merged 7 commits into from
Oct 18, 2023

Conversation

aopy
Copy link
Contributor

@aopy aopy commented Sep 19, 2023

No description provided.

Copy link
Collaborator

@EtienneCmb EtienneCmb left a comment

Choose a reason for hiding this comment

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

Hi @aopy,

Please find a changes that should be made before merging.

Thanks a lot, let me know if you need help or a feedback

###############################################################################


def simulation_hois_beh(
Copy link
Collaborator

Choose a reason for hiding this comment

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

If I understood correctly, this one uses a dynamic behavioral variable. Since it's not used here, you can remove it

return cov_


def simulate_hois_gauss(
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you replace the simul_hois by the name simulate_hois_gauss?

n_trials=1000,
n_nodes=12,
n_times=None,
data_type="array",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Some inputs are not used. You can remove them :

  • data_type
  • target_frites
  • amplitude

can be conducted for a specified number of trials and nodes,
with an optional time component.

Parameters:
Copy link
Collaborator

Choose a reason for hiding this comment

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

For the documentation, can you please follow the Numpydoc convention? For example

One line description (<79 chars).

Several lines description.

Parameters
-----------------
x: type
    Description
y: type
    Description

Returns
-----------
o: type
    Description
p: type
    Description

And same for other functions.


simulated_data = sim_rand

return [simulated_data[:, :12, :], sim_hois[:, 12, 0]]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Output list is not necessary. Just simulated_data[:, :12, :], sim_hois[:, 12, 0]. Btw, it's a bit weird to have hard-coded variables like 12...

@EtienneCmb
Copy link
Collaborator

Hi @aopy and @Mattehub,

Thanks for the code and sorry about the delayed PR review.

See you,

@EtienneCmb EtienneCmb merged commit eb1a8a8 into brainets:main Oct 18, 2023
8 checks passed
@EtienneCmb EtienneCmb mentioned this pull request Nov 6, 2023
6 tasks
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.

2 participants