-
Notifications
You must be signed in to change notification settings - Fork 7
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
Conversation
There was a problem hiding this 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
hoi/simulation/simulation_hois.py
Outdated
############################################################################### | ||
|
||
|
||
def simulation_hois_beh( |
There was a problem hiding this comment.
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
hoi/simulation/simulation_hois.py
Outdated
return cov_ | ||
|
||
|
||
def simulate_hois_gauss( |
There was a problem hiding this comment.
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
?
hoi/simulation/simulation_hois.py
Outdated
n_trials=1000, | ||
n_nodes=12, | ||
n_times=None, | ||
data_type="array", |
There was a problem hiding this comment.
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
hoi/simulation/simulation_hois.py
Outdated
can be conducted for a specified number of trials and nodes, | ||
with an optional time component. | ||
|
||
Parameters: |
There was a problem hiding this comment.
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.
hoi/simulation/simulation_hois.py
Outdated
|
||
simulated_data = sim_rand | ||
|
||
return [simulated_data[:, :12, :], sim_hois[:, 12, 0]] |
There was a problem hiding this comment.
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
...
No description provided.