WARNING:tensorflow:sample_weight modes were coerced from … to ['…']

前端 未结 4 1147
遥遥无期
遥遥无期 2021-02-01 00:29

Training an image classifier using .fit_generator() or .fit() and passing a dictionary to class_weight= as an argument.

I never go

4条回答
  •  北海茫月
    2021-02-01 01:00

    instead of providing a dictionary

    weights = {'0': 42.0, '1': 1.0}
    

    i tried a list

    weights = [42.0, 1.0]
    

    and the warning disappeared.

提交回复
热议问题