Skip to content

Commit

Permalink
update example for multmodal
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnWangDataAnalyst committed Jan 17, 2024
1 parent e2b46dc commit bebbce0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/eg002r__multimodal_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def loss(self, simData, empData = None, returnLossComponents = False):
# Model Simulation
# ---------------------------------------------------
#
F.simulate(u = 0, numTP = randTS1.length)
F.evaluate(u=0, empRec=randTS1, TPperWindow=TPperWindow , base_window_num=2, transient_num: int = 10)


# %%
Expand Down Expand Up @@ -234,7 +234,7 @@ def loss(self, simData, empData = None, returnLossComponents = False):
# Plots of BOLD FC
#

sim_FC = np.corrcoef(F.lastRec['bold'].npTS()[:,skip_trans:])
"""sim_FC = np.corrcoef(F.lastRec['bold'].npTS()[:,skip_trans:])
plt.figure(figsize = (8, 8))
plt.title("Simulated BOLD FC: After Training")
Expand Down Expand Up @@ -296,4 +296,4 @@ def loss(self, simData, empData = None, returnLossComponents = False):
plt.figure(figsize = (8, 8))
plt.title("Simulated BOLD FC: After Training")
mask = np.eye(num_regions)
sns.heatmap(sim_FC, mask = mask, center=0, cmap='RdBu_r', vmin=-1.0, vmax = 1.0)
sns.heatmap(sim_FC, mask = mask, center=0, cmap='RdBu_r', vmin=-1.0, vmax = 1.0)"""

0 comments on commit bebbce0

Please sign in to comment.