modules/utils/notebook_utils/dataframe_helper.py
def create_disc_marginal_df(models, test_data):
    """
    This function is desgined get the predicted marginals from the sklearn models

    models - list of sklearn models that marginals will be generated from

    test_data - the dev set data used to generate testing marginals

    return a dataframe containing marginal probabilities for each sklearn model
    """

    return (
        pd.DataFrame([model.best_estimator_.predict_proba(test_data)[:,1] for model in models])
        .transpose()
        .rename(index=str, columns=columns)
        )

    This function is desgined get the predicted marginals from the sklearn models

    models - list of sklearn models that marginals will be generated from

    test_data - the dev set data used to generate testing marginals

    return a dataframe containing marginal probabilities for each sklearn model
    
This function is desgined get the predicted marginals from the sklearn models
models - list of sklearn models that marginals will be generated from

the dev set data used to generate testing marginals

return a dataframe containing marginal probabilities for each sklearn model
This function is desgined get the predicted marginals from the sklearn models models - list of sklearn models that marginals will be generated from the dev set data used to generate testing marginals return a dataframe containing marginal probabilities for each sklearn model
def create_disc_marginal_df(models, test_data):
    return (
        pd.DataFrame([model.best_estimator_.predict_proba(test_data)[:,1] for model in models])
        .transpose()
        .rename(index=str, columns=columns)
        )
def create_disc_marginal_df ( models , test_data ) : return ( pd . DataFrame ( [ model . best_estimator_ . predict_proba ( test_data ) [ : , 1 ] for model in models ] ) . transpose ( ) . rename ( index = str , columns = columns ) )
This function is desgined get the predicted marginals from the sklearn models
models - list of sklearn models that marginals will be generated from
This function is desgined get the predicted marginals from the sklearn models models - list of sklearn models that marginals will be generated from
"""
    This function is desgined get the predicted marginals from the sklearn models

    models - list of sklearn models that marginals will be generated from

    test_data - the dev set data used to generate testing marginals

    return a dataframe containing marginal probabilities for each sklearn model
    """
models
test_data