Skip to content

About get_feat in convert_ffm_process.py #13

Description

@Decalogue

Hi, I want to know whether the code below is a general solution for continuous value, such as train_df[field_name] = [-8.9, -7.3, -2, -1.9, -0.1, 0.6, 2, 3, 8.8, 12.8]. Thank you so much!
if val == '': featSet.add(str(key) + '#' + 'absence') else: val = int(float(val)) if val > 2: val = int(math.log(float(val)) ** 2) else: val = 'SP' + str(val)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions