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
DRMPN
changed the title
[Bug]: Target column of type bool is not correctly preprocessed
[Bug]: Invalid fitness after objective evaluation. Skipping the graph: (/n_scaling;)/n_rf_{'n_jobs':32}
Mar 27, 2024
DRMPN
linked a pull request
Apr 1, 2024
that will
close
this issue
Expected Behavior
The method calculates the Roc Auc score for a target column of type bool in a tabular data classification problem.
Current Behavior
For some reason
![image](https://private-user-images.githubusercontent.com/61294398/312410934-3a01c620-e515-4d4a-b8e1-411f42e2276b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5NjM3NzcsIm5iZiI6MTcyMzk2MzQ3NywicGF0aCI6Ii82MTI5NDM5OC8zMTI0MTA5MzQtM2EwMWM2MjAtZTUxNS00ZDRhLWI4ZTEtNDExZjQyZTIyNzZiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE4VDA2NDQzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTljMWJlMmYzZDNjNDAwNjFhN2MzZTI3ZjI2MzJlN2E0YzhiYzc3ZTk3MGFlMzhlOTAxZGYwZmE1ZWQ5ZTk0NzUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.d9ChrI_TGnYcYZjUaLZY7KA9B264KdHyceFVvvneaAw)
get_metrics()
method fails after successfully fitting the data.There seems to be a problem with the tabular data preprocessing in the target, surprisingly it's an empty array.
![image](https://private-user-images.githubusercontent.com/61294398/312411579-05b3bb86-7b96-4c56-8c9b-a11f44709645.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5NjM3NzcsIm5iZiI6MTcyMzk2MzQ3NywicGF0aCI6Ii82MTI5NDM5OC8zMTI0MTE1NzktMDViM2JiODYtN2I5Ni00YzU2LThjOWItYTExZjQ0NzA5NjQ1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE4VDA2NDQzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJjZGYzMmEwNWI5ZWE5NDE3NDlhODhhYjAyYTU3NDJlZDFhODNmODFiZjE2YmZjYjQ1N2U5NTRhY2IyM2JkZTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.7z-6WVAG_Szdstd-QNe5OFI02CMaAvXbtsVldgmDvrU)
This is likely just the tip of the iceberg, as the `num_classes' method is already parameterized with an empty array:
![image](https://private-user-images.githubusercontent.com/61294398/312414184-df496d6b-935b-4ba8-8fe5-dfa17c09a008.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5NjM3NzcsIm5iZiI6MTcyMzk2MzQ3NywicGF0aCI6Ii82MTI5NDM5OC8zMTI0MTQxODQtZGY0OTZkNmItOTM1Yi00YmE4LThmZTUtZGZhMTdjMDlhMDA4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE4VDA2NDQzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWM0MWYwNDE0YjIzNDk2ZGE1MGRiMTg2N2Y0ZWQyZmMxNzAxNjlmODkwOTljMjVkNDk0YmJmMDc0YTY3NWMxNjEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.OJ_yznA7-7N3wDxZPg0y1MAyDPkfqZDEmb6QAjfMe3Y)
Possible Solution
Steps to Reproduce
Context [OPTIONAL]
The target column is loaded as a bool type.
![image](https://private-user-images.githubusercontent.com/61294398/312410702-6cf74048-f36e-4e52-9327-74d6e7e71dad.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5NjM3NzcsIm5iZiI6MTcyMzk2MzQ3NywicGF0aCI6Ii82MTI5NDM5OC8zMTI0MTA3MDItNmNmNzQwNDgtZjM2ZS00ZTUyLTkzMjctNzRkNmU3ZTcxZGFkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE4VDA2NDQzN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYzOGM2ZmVmOWFiNGMzN2QyY2E5OGYwYjUzODNhNzVlNWZjZDA3MDgyMTMyYjEyNWRjMGJlZTBkYTI5NDE1OTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Cutv999z7NJ5V51NTmaZs9X12VVQRRwoqUz3du57zWU)
Documentation References:
https://fedot.readthedocs.io/en/latest/introduction/fedot_features/main_features.html
https://fedot.readthedocs.io/en/latest/advanced/data_preprocessing.html
The text was updated successfully, but these errors were encountered: