Convert multiple class data to two class data

sangihi
sangihi New Altair Community Member
edited November 5 in Community Q&A
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")?
Tagged:

Answers

  • sangihi
    sangihi New Altair Community Member
    I just found the solution.

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