cadcad_machine_search/visualizations/sensitivity.py
def param_sensitivity_plot(df: pd.DataFrame,
                           control_params: set,
                           target: str,
                           label: str = 'target'):
    """
    Plot the sensivity of the 'target' column vs
    a list of control parameters, which are data frame columns.
    """
    features = set(control_params) - {target}
    X = df.loc[:, features]
    y = (df[target] > 0)
    # Visualize
    fig, axes = plt.subplots(nrows=2,
                             figsize=(36, 12),
                             dpi=100,
                             gridspec_kw={'height_ratios': [3, 1]})
    f(X, y, 'target', axes[0], axes[1], label)
    return None

    Plot the sensivity of the 'target' column vs
    a list of control parameters, which are data frame columns.
    
Plot the sensivity of the 'target' column vs
a list of control parameters, which are data frame columns.
Plot the sensivity of the ' target ' column vs a list of control parameters which are data frame columns .
def param_sensitivity_plot(df: pd.DataFrame,
                           control_params: set,
                           target: str,
                           label: str = 'target'):
    features = set(control_params) - {target}
    X = df.loc[:, features]
    y = (df[target] > 0)
    fig, axes = plt.subplots(nrows=2,
                             figsize=(36, 12),
                             dpi=100,
                             gridspec_kw={'height_ratios': [3, 1]})
    f(X, y, 'target', axes[0], axes[1], label)
    return None
def param_sensitivity_plot ( df : pd . DataFrame , control_params : set , target : str , label : str = 'target' ) : features = set ( control_params ) - { target } X = df . loc [ : , features ] y = ( df [ target ] > 0 ) fig , axes = plt . subplots ( nrows = 2 , figsize = ( 36 , 12 ) , dpi = 100 , gridspec_kw = { 'height_ratios' : [ 3 , 1 ] } ) f ( X , y , 'target' , axes [ 0 ] , axes [ 1 ] , label ) return None
Plot the sensivity of the 'target' column vs
a list of control parameters, which are data frame columns.
Plot the sensivity of the ' target ' column vs a list of control parameters which are data frame columns .
"""
    Plot the sensivity of the 'target' column vs
    a list of control parameters, which are data frame columns.
    """ # Visualize
df
pd.DataFrame
control_params
set
target
str
label
str