This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(readr) | |
library(keras) | |
# By Dominik Krzeminski (dokato) | |
#' Data downloaded from https://www.kaggle.com/zalando-research/fashionmnist | |
#' More information is at the ZalandoResearch GitHub: | |
#' https://github.com/zalandoresearch/fashion-mnist | |
train.data <- read_csv("fashion-mnist_train.csv", | |
col_types = cols(.default = "i")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import os | |
import numpy as np | |
from surfer import Brain | |
from mayavi import mlab | |
import nibabel as nib | |
subjects_folder = os.environ["SUBJECTS_DIR"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
def find_closest_orthogonal_matrix(A): | |
''' | |
Find closest orthogonal matrix to *A* using iterative method. | |
Bases on the code from REMOVE_SOURCE_LEAKAGE function from OSL Matlab package. | |
Args: | |
A (numpy.array): array shaped k, n, where k is number of channels, n - data points |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
library(shiny.router) | |
options(shiny.router.debug = T) | |
# This generates menu in user interface with links. | |
menu <- ( | |
tags$ul( | |
tags$li(a(class = "item", href = "/", "Page")), | |
tags$li(a(class = "item", href = route_link("other"), "Other page")) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import mne | |
from mne.datasets.brainstorm import bst_resting | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import scipy.signal as ss | |
folder = os.path.join(bst_resting.data_path(), 'MEG/bst_resting') | |
file = 'subj002_spontaneous_20111102_01_AUX_raw.fif' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import mne | |
from mne.datasets.brainstorm import bst_resting | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import scipy.signal as ss | |
########################## INPUT: | |
folder = os.path.join(bst_resting.data_path(), 'MEG/bst_resting') | |
file = 'subj002_spontaneous_20111102_01_AUX_raw.fif' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(shiny) | |
library(magrittr) | |
library(ggplot2) | |
ui <- fluidPage( | |
checkboxGroupInput("checkbox", "Variables to show:", | |
c("psavert", "uempmed", "unemploy")), | |
plotOutput("plot") | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
__author__ = 'Dominik Krzeminski (dokato)' | |
tau = 2 | |
I_ext = 0.5 | |
a = 0.8 | |
b = 0.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pickle | |
import itertools | |
import numpy as np | |
import tensorflow.keras as keras | |
with open('HackathonMetadata.pkl','rb') as ff: | |
metad = pickle.load(ff) | |
with open('HackathonData_Homology0.pkl','rb') as ff: | |
homol = pickle.load(ff) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/Chart.min.js"></script> | |
</head> | |
<body> | |
<div width="100px" height="100px"> | |
<canvas id="myChart"></canvas> | |
</div> |
OlderNewer