-
Notifications
You must be signed in to change notification settings - Fork 537
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
RegressionPerfomanceTab not working ! #43
Comments
Hi @pratikchhapolika ! The reason of this error is a misspelling in the Tab name. Instead of the “RegressionPerfomanceTab” there should be the “RegressionPerformanceTab”. I believe if you fix the name everything will be fine. p.s. It is also important to make sure, that you imported this Tab earlier in your code correctly: |
The second part looks like you do not have either target or prediction (or both). To evaluate Categorical Target Drift it is necessary to have one of the target or prediction columns presented in both reference and current datasets. And if you do not provide the column mapping, then target column is expected to called ‘target’, prediction columns is expected to called ‘prediction’. It looks like you might fix the second issue by adding target column to your dataframes, for example like this: Hope it will help! |
Closing this issue. Thank you! |
NameError Traceback (most recent call last)
/usr/local/bin/kernel-launchers/python/scripts/launch_ipykernel.py in
----> 1 regression_model_performance = Dashboard(tabs=[RegressionPerfomanceTab])
2 regression_model_performance.calculate(reference_data, current_data, column_mapping = column_mapping)
NameError: name 'RegressionPerfomanceTab' is not defined
iris_data_and_target_drift_report = Dashboard(tabs=[DataDriftTab, CatTargetDriftTab])
iris_data_and_target_drift_report.calculate(iris_frame[:100], iris_frame[100:], column_mapping = None)
iris_data_and_target_drift_report.save("reports/my_report_with_2_tabs.html")
The text was updated successfully, but these errors were encountered: