This file contains hidden or 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 hidden or 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 hidden or 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")) |
NewerOlder