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 | |
| from IPython.display import display | |
| class SISOAnalysis: | |
| def __init__(self, input_df, option='equal_volume'): | |
| """ | |
| Initializes the SISOAnalysis class with the given input dataframe and option. | |
| Args: |
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 matplotlib.pyplot as plt | |
| def gini(y_pred, y_true): | |
| # casting | |
| y_pred = np.array(y_pred) | |
| y_true = np.array(y_true) |