Skip to content

Instantly share code, notes, and snippets.

@robintibor
robintibor / bcic_iv_2a_config.py
Created October 24, 2023 18:08
BCIC IV 2a and HGD code
import torch.backends.cudnn as cudnn
import torch
from hyperoptim.parse import cartesian_dict_of_lists_product, \
product_of_list_of_lists_of_dicts
import logging
import time
import os
os.sys.path.insert(0, '/home/schirrmr/code/invertible-reimplement/')
@robintibor
robintibor / Standardizer_Weights_Decayed.ipynb
Created January 21, 2022 15:45
Standardized Weights and Weight Decay
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@robintibor
robintibor / OutOfBoundsTUH.ipynb
Created September 14, 2021 13:21
Out of Bounds +-800 TUH Dataset
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@robintibor
robintibor / Waveguard2dpos.csv
Created June 15, 2021 12:01
Sensor Positions High Gamma Dataset
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Fp1 : 82.7 32.28
Fpz : 90 -0.1
Fp2 : 82.7 -32.38
F7 : 53.6 91.92
F3 : 39.1 48
Fz : 35.5 -0.1
F4 : 39.8 -49.2
F8 : 53.8 -91.56
FC5 : 16.1 84.6
FC1 : 9.9 27.6
@robintibor
robintibor / TemporalFiltersAsConv.ipynb
Created June 11, 2021 13:39
Temporal Filters as Convolutions - different options
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@robintibor
robintibor / Most_Activating_Windows.ipynb
Last active May 19, 2021 17:37
Most activating windows
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@robintibor
robintibor / ecog_trajs_v31_visu_reps_trained.py
Last active May 18, 2021 16:12
ecog_trajs_v31_visu_reps_trained.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 4 11:02:45 2019
visualization script (amplitude and phase perturbations) for change speed paradigm (car game)
works only for test set (last xval fold)
source data: v9_realTime (see exportData_4DNN_v9_realTime.m)
based on: ecog_trajs_v9_visu.py
NEW: saves individual repetitions of perturbations for further stat. signif. tests
- limits freq range to enable more repetitions (else results take too much space)
@robintibor
robintibor / config_decoding.py
Last active January 15, 2024 10:16
HGD Reproduction HBM 2017
import torch.backends.cudnn as cudnn
import torch
from hyperoptim.parse import cartesian_dict_of_lists_product, \
product_of_list_of_lists_of_dicts
import logging
import time
import os
os.sys.path.insert(0, '/home/schirrmr/code/invertible-reimplement/')
@robintibor
robintibor / AnalyzeFreqGradWithCAR.ipynb
Last active February 26, 2021 10:27
Analyze Frequency Gradients HBM 2017 reproduction with Common Average Reference
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@robintibor
robintibor / AnalyzeFreqGrad.ipynb
Last active February 4, 2021 14:06
High Gamma Decoding and Gradient Visualization
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.