keras unbalanced data 1

keras unbalanced data

class_weight = {0: 1.,
                1: 50.,
                2: 2.}
                
                

Here is what the above code is Doing:
1. We are creating a dictionary with the keys being the class labels and the values being the class weights.
2. We are setting the class weight for class 0 to 1.
3. We are setting the class weight for class 1 to 50.
4. We are setting the class weight for class 2 to 2.

Similar Posts