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 | |
| import nannyml as nml | |
| import pandas as pd | |
| class DriftSignalsModel: | |
| def __init__( | |
| self, | |
| y_pred_proba, | |
| y_pred, |
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 | |
| import pandas as pd | |
| import nannyml as nml | |
| import matplotlib.pyplot as plt | |
| reference_df = pd.DataFrame({'feature': np.random.normal(0, 0.1, 3000)}) | |
| analysis_df = pd.DataFrame({'feature': np.random.normal(0, 0.12, 3000)}) | |
| calc = nml.UnivariateDriftCalculator( |
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
| """ | |
| Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
| BSD License | |
| """ | |
| import numpy as np | |
| # data I/O | |
| data = open('input.txt', 'r').read() # should be simple plain text file | |
| chars = list(set(data)) | |
| data_size, vocab_size = len(data), len(chars) |