Traceback (most recent call last):
File "main.py", line 34, in
helper.exec()
File "/content/drive/MyDrive/Function-level-metric/src/helper.py", line 285, in exec
class_weight = class_weights)
File "/usr/local/lib/python3.7/dist-packages/keras/utils/traceback_utils.py", line 67, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/usr/local/lib/python3.7/dist-packages/keras/engine/data_adapter.py", line 1416, in _make_class_weight_map_fn
class_ids = list(sorted(class_weight.keys()))
AttributeError: 'numpy.ndarray' object has no attribute 'keys'
Traceback (most recent call last): File "main.py", line 34, in
helper.exec()
File "/content/drive/MyDrive/Function-level-metric/src/helper.py", line 285, in exec
class_weight = class_weights)
File "/usr/local/lib/python3.7/dist-packages/keras/utils/traceback_utils.py", line 67, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/usr/local/lib/python3.7/dist-packages/keras/engine/data_adapter.py", line 1416, in _make_class_weight_map_fn
class_ids = list(sorted(class_weight.keys()))
AttributeError: 'numpy.ndarray' object has no attribute 'keys'