Example #1
0
def main_comp_csp(df):
    return restrict(restrict_or_unset(df,
                                      standardize=False,
                                      standardize_filt_cnt=False,
                                      standardize_epo=False,
                                      standardize_cnt=False),
                    low_bound=0)
Example #2
0
def shallow_main_comp(df):
    df = restrict(df,
                  layers='cnt_shallow_square',
                  first_nonlin='square',
                  post_pool_nonlin='safe_log',
                  pool_mode='average_exc_pad')
    df = restrict_or_unset(
        df,
        drop_p=0.5,
        batch_modifier='null',
    )
    return df
Example #3
0
def merged_main_comp(df):
    return restrict(df,
                    batch_norm_before_merge=True,
                    nonlin_before_merge='elu',
                    num_filters_spat=25)
Example #4
0
def shallow_cnt_main_comp(df):
    df = shallow_main_comp(df)
    df = restrict(df, loss_expression='tied_neighbours')
    return df
Example #5
0
def main_comp_csp(df):
    return restrict(restrict_or_unset(df, standardize=False, standardize_filt_cnt=False,
                  standardize_epo=False, standardize_cnt=False),
                  low_bound=0)
Example #6
0
def shallow_main_comp(df):
    df = restrict(df, layers='cnt_shallow_square', first_nonlin='square', post_pool_nonlin='safe_log', 
                  pool_mode='average_exc_pad')
    df = restrict_or_unset(df, drop_p=0.5, batch_modifier='null',)
    return df
Example #7
0
def shallow_cnt_main_comp(df):
    df = shallow_main_comp(df)
    df = restrict(df, loss_expression='tied_neighbours')
    return df
Example #8
0
def merged_main_comp(df):
    return restrict(df, batch_norm_before_merge=True,
                     nonlin_before_merge='elu',
                     num_filters_spat=25)