Convert multiple class data to two class data

sangihi
sangihi New Altair Community Member
edited November 2024 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"

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.