I am working with tf-nightly version.
In the previous version, class weights as the array input works.
But, the nightly version is throwing the error.
weights = np.array([3.4, 10.11, 10.67, 11.52, 0.23, 0.001, 19.86])
model.fit(data, labels, epochs=10,class_weight = weights)
Error Message:
class_ids = list(sorted(class_weight.keys()))
AttributeError: 'list' object has no attribute 'keys'
weights in the dictionary form,
weights = {0: 3.4, 1: 10.11, 2: 10.67, 3: 11.52, 4: 0.23, 5: 0.001, 6: 19.86}