Options

Convert multiple class data to two class data

sangihisangihi Member Posts: 5 Contributor II
edited November 2018 in Help
I have some data with multiple labels (e.g. "normal", "anomaly type 2", "anomaly type 3", ..., "anomaly type N").
how can I convert this to two class data (e.g. "normal", "anomaly")?

Answers

  • Options
    sangihisangihi Member Posts: 5 Contributor II
    I just found the solution.

    I can use regex "^((?!normal).)*$" just to replace everything rather than "normal" to "anomaly"
Sign In or Register to comment.