Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing bug for metacat #474

Merged
merged 1 commit into from
Aug 9, 2024
Merged

Fixing bug for metacat #474

merged 1 commit into from
Aug 9, 2024

Commits on Aug 8, 2024

  1. Fixing bug for metacat

    Fix issues with compute_class_weights JSON serialization and enforce fc2 usage when fc3 is enabled
    
    * Resolved an issue where compute_class_weights returns a NumPy array, causing an error when saving the configuration as JSON (since JSON does not support NumPy arrays). The fix ensures compatibility by converting the NumPy array to a JSON-serializable format.
    
    * Added a safeguard in the model_architecture_config for meta_cat_config. The current architecture assumes fc3 is only used when fc2 is enabled. If fc2 is set to False and fc3 is True, the model would fail due to a mismatch in hidden layer sizes. The fix automatically enables fc2 if fc3 is set to True, preventing potential errors.
    shubham-s-agarwal committed Aug 8, 2024
    Configuration menu
    Copy the full SHA
    267cd4f View commit details
    Browse the repository at this point in the history