src/Naive.py
def apply_NE(fn):
    '''
    return:
      feats: the feature list
      lab: the label list
    '''
    feats, labs = dp.read_csv_file(fn, delimiter=',')
    lens = gl.gen_len(feats)
    transed_feats = naive_encoder(feats,lens)

    return transed_feats, labs

    return:
      feats: the feature list
      lab: the label list
    
the feature list
lab: the label list
the feature list lab : the label list
def apply_NE(fn):
    feats, labs = dp.read_csv_file(fn, delimiter=',')
    lens = gl.gen_len(feats)
    transed_feats = naive_encoder(feats,lens)
    return transed_feats, labs
def apply_NE ( fn ) : feats , labs = dp . read_csv_file ( fn , delimiter = ',' ) lens = gl . gen_len ( feats ) transed_feats = naive_encoder ( feats , lens ) return transed_feats , labs
return:
feats: the feature list
lab: the label list
return : feats : the feature list lab : the label list
'''
    return:
      feats: the feature list
      lab: the label list
    '''
fn