예제 #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)
예제 #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
예제 #3
0
def merged_main_comp(df):
    return restrict(df,
                    batch_norm_before_merge=True,
                    nonlin_before_merge='elu',
                    num_filters_spat=25)
예제 #4
0
def shallow_cnt_main_comp(df):
    df = shallow_main_comp(df)
    df = restrict(df, loss_expression='tied_neighbours')
    return df
예제 #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)
예제 #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
예제 #7
0
def shallow_cnt_main_comp(df):
    df = shallow_main_comp(df)
    df = restrict(df, loss_expression='tied_neighbours')
    return df
예제 #8
0
def merged_main_comp(df):
    return restrict(df, batch_norm_before_merge=True,
                     nonlin_before_merge='elu',
                     num_filters_spat=25)