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 itertools import count | |
| import pandas as pd | |
| import numpy as np | |
| def cyclical_encoder(data: pd.DataFrame, | |
| time_column: str, | |
| time_unit: str, | |
| normalize_val: float, | |
| label_suffix: str) -> 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
| import numpy as np | |
| from scipy import stats | |
| def permutation_t_test(sample1: list, sample2: list, n: int =10000) -> float: | |
| """ | |
| Conduct a permutation T-test using n iterations and p-value. The higher the p-value, the more likely that sample1 | |
| and sample2 are sampled from the same distribution | |
| :param sample1: Sample of continuous observations |
NewerOlder