Code Monkey home page Code Monkey logo

makino-wang-et-al-2024's Introduction

Distinct Cross-Regional Control of Amygdalar Dynamics Reliably Reflects Fear Memory Age

Code and Demonstrations

  • Analysis for Figures 1-3:

    • Check the Correlation_and_Modulation_Analysis folder for the following demos with expected outputs:
      • PSD_LFP.m: Calculates the power spectral density of LFP (Fig. 1, Supplementary Fig. 1).
      • CFC_Phase_Amp.m: Calculates cross-frequency phase-amplitude coupling of LFP (Fig. 2, Supplementary Fig. 1).
      • Corr_EnvCorr_Env.m: Calculates the correlation of instantaneous amplitude of LFP across 3 regions (Fig. 3, Supplementary Fig. 2).
  • LightGBM Analysis:

    • For non-freezing or freezing data analysis, visit MemoryAge_WinLen_5_Step_0.5/code or MemoryAge_WinLen_5_Step_0.5_FREEZING_ONLY/code. These folders contain files for modeling and analysis notebooks with expected outputs for figure generation (notebooks contain 'Figure' in their names). Follow the STEPS provided.
  • Transformer Analysis:

    • For non-freezing or freezing data analysis, visit MemoryAge_Transformer_xLARGE/code or MemoryAge_Transformer_xLARGE_using_FREEZING_ONLY/code. Key files include:
      • MemoryAge ViT CrossSubject NonFreezing.ipynb: Main file for Transformer training.
      • Using_Attention_to_analyze_Transformer_decision - Comparing Recent Remote in Accurate (or Inaccurate) - BroaderWelch - without Corr - Figure 5_5.ipynb: For attention-guided analysis.
      • Perturbation_results_analysis_Unnormalized - Figure6_2.ipynb: For perturbation analysis.
      • Please also check the analysis in notebooks with the expected outputs (notebooks contain 'Figure' in their names).
    • Note: It is recommended not to rerun the notebooks as the outputs are already displayed.

Reproduction Requirements

  • System Requirements:
    • OS: Windows 10 Professional (Version 22H2)
    • Code Editor: VSCode (Version 1.88.1)
    • Package Manager: Conda (Version 4.10.3)
  • Hardware Requirements:
    • CPU: Intel(R) Core(TM) i5-9400F @ 2.90GHz
    • GPU: Nvidia GeForce 2080Ti
  • Setup:
    • Conda environment installation: Run conda env create -f LFP_TRANS_LOCAL.yml (takes approx. 10 mins).
  • Expected Runtime:
    • LightGBM: Approximately 30 minutes.
    • Transformer: Approximately 12 hours (depending on the hardware).
  • Acknowledgments:
    • We utilize the backbone IO strategy from TorchEEG.

makino-wang-et-al-2024's People

Contributors

brainodyssey2050 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.