philschmid:

So the id2label needs to have as key the id and as value the string .
And the label2id needs to have as key the string and as value the id .
id2label = {
        "0": "goodUser",
        "1": "badUserFraud"
    }

label2id = {
        "goodUser": 0,
        "badUserFraud": 1
    }

Easy to remember is the name is always key2Value .


thanks for the awesome information.