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 pandas as pd | |
| import numpy as np | |
| def find_correlation(df, thresh=0.9): | |
| """ | |
| Given a numeric pd.DataFrame, this will find highly correlated features, | |
| and return a list of features to remove | |
| params: | |
| - df : pd.DataFrame |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| An example where effecting jittering of triggers occurs when | |
| downsampling before epoching. | |
| """ | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| # 1 sec of data @ 1000 Hz | |
| fs = 1000. # Hz |
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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """Implements Partial Directed Coherence and Direct Transfer Function | |
| using MVAR processes. | |
| Reference | |
| --------- | |
| Luiz A. Baccala and Koichi Sameshima. Partial directed coherence: | |
| a new concept in neural structure determination. |