You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* CU-869805t7e: Move getting of applicable category name to the config
* CU-869805t7e: Use alternative category names in eval method
* CU-869805t7e: Reduce indentation
* CU-869805t7e: Reduce indentation (again)
* CU-869805t7e: Some comment fixing due to rearrangements before
* CU-869805t7e: Fix usage of matched class name when encoding category values
* CU-869805t7e: Avoid duplicating exception message
logger.info("The category name provided in the config - '%s' is not present in the data. However, the corresponding name - '%s' from the category_name_mapping has been found. Updating the category name...",category_name,*category_matching)
252
-
g_config['category_name'] =category_matching[0]
253
-
category_name=g_config['category_name']
254
-
else:
255
-
raiseException(
256
-
"The category name does not exist in this json file. You've provided '{}', while the possible options are: {}. Additionally, ensure the populate the 'alternative_category_names' attribute to accommodate for variations.".format(
logger.info("Class name '%s' does not exist in the data; however a variation of it '%s' is present; updating it...",_class,class_name_matched)
206
-
else:
207
-
raiseException(
208
-
f"The classes set in the config are not the same as the one found in the data. The classes present in the config vs the ones found in the data - {set(category_value2id.keys())}, {category_values}. Additionally, ensure the populate the 'alternative_class_names' attribute to accommodate for variations.")
209
-
else:
210
-
raiseException(f"The classes set in the config are not the same as the one found in the data. The classes present in the config vs the ones found in the data - {set(category_value2id.keys())}, {category_values}. Additionally, ensure the populate the 'alternative_class_names' attribute to accommodate for variations.")
f"The classes set in the config are not the same as the one found in the data. The classes present in the config vs the ones found in the data - {set(category_value2id.keys())}, {category_values}. Additionally, ensure the populate the 'alternative_class_names' attribute to accommodate for variations.")
0 commit comments