robert 2.2.2__tar.gz → 2.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {robert-2.2.2 → robert-2.2.3}/PKG-INFO +2 -2
- {robert-2.2.2 → robert-2.2.3}/robert/_version.py +1 -1
- {robert-2.2.2 → robert-2.2.3}/robert/checkml.py +31 -1
- robert-2.2.3/robert/checkml_results.py +162 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report.py +9 -0
- {robert-2.2.2 → robert-2.2.3}/robert.egg-info/PKG-INFO +2 -2
- {robert-2.2.2 → robert-2.2.3}/robert.egg-info/SOURCES.txt +2 -0
- robert-2.2.3/tests/test_checkml_results.py +156 -0
- {robert-2.2.2 → robert-2.2.3}/LICENSE +0 -0
- {robert-2.2.2 → robert-2.2.3}/README.md +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/__init__.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/__main__.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/_runtime.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/api.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/aqme.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/argument_parser.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/checkml_score.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/curate.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/evaluate_bot_retrieval.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/evaluate_bot_support.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/evaluate_workflow_summaries.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/export_bot_docs_knowledge.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/generate.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/generate_utils.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/__init__.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/assets/gif_easyrob.gif +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/__init__.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/answer_metadata.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/bot_context.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/bot_engine.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/bot_panel.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/bot_rag.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/bot_window.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/bot_worker.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/credential_store.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/error_parser.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/evidence_policy.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/heuristics.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/icons.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/input_csv_audit.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/knowledge/aqme_context.json +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/knowledge/robert_context.json +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/knowledge/ui_context.json +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/knowledge_schema.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/knowledge_sources/aqme_user_guidance.json +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/knowledge_sources/coverage_manifest.json +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/knowledge_sources/robert_user_guidance.json +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/knowledge_sources/ui_user_guidance.json +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/llm_providers.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/online_docs.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/prompt_policy.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/question_intent.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/response_quality.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/result_insights.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/token_usage.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/workflow_results.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/checkml_launcher.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/easyrob.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/easyrob_launcher.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/main/__init__.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/main/window.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/result_navigation.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tabs/__init__.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tabs/advanced_options.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tabs/aqme.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tabs/checkml.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tabs/images.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tabs/interactive_predictions.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tabs/molssi.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tabs/predictions.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tabs/result_catalog.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tabs/results.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tabs/results_workspace.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/test_bot_input_csv_audit.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/test_bot_question_routing.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/test_bot_result_analysis.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/test_bot_retrieval_evaluation.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/test_bot_ui_integration.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/test_checkml_app_mode.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/test_checkml_completion.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/test_checkml_defaults.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/test_checkml_result_summary.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/test_checkml_web_mode.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/test_dialog_layout.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/test_gui_bot_regressions.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/test_molssi_auto.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/test_tutorial_view.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/check_model.md +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/chemdraw.md +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/csv.md +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/descriptors.md +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/overview.md +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/predictions.md +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/robbot.md +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/check_model/check_model_1.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/check_model/check_model_2.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/check_model/check_model_3.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/check_model/check_model_4.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/check_model/check_model_5.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/check_model/check_model_6.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/check_model/check_model_7.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_1.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_10.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_11.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_12.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_13.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_2.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_3.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_4.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_5.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_6.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_7.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_8.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/chemdraw/chemdraw_9.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/csv/csv_1.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/csv/csv_1_1.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/csv/csv_1_2.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/csv/csv_1_3.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/csv/csv_1_4.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/csv/csv_1_5.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/csv/csv_2.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/csv/csv_3.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/csv/csv_4.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/csv/csv_5.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/csv/csv_6.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/csv/csv_7.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/csv/csv_8.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/csv/csv_9.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/descriptors/descriptors_1.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/descriptors/descriptors_2.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/descriptors/descriptors_3.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/descriptors/descriptors_4.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/descriptors/descriptors_5.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/descriptors/descriptors_6.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1_1.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1_2.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1_3.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1_4.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1_5.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1_6.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1_7.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/overview/overview_1_8.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/overview/overview_2.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/overview/overview_3.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/overview/overview_4.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/overview/overview_5.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/overview/overview_5_1.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/overview/overview_5_2.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/overview/overview_5_3.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/overview/overview_6.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/predictions/predictions_1.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/predictions/predictions_1_1.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/predictions/predictions_2.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/predictions/predictions_3.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/predictions/predictions_4.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/predictions/predictions_5.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/predictions/predictions_6.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/robbot/robbot_1.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/robbot/robbot_2.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/robbot/robbot_3.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/robbot/robbot_4.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/robbot/robbot_5.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/robbot/robbot_6.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/robbot/robbot_7.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/tutorials/tutorial_images/robbot/robbot_8.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/utils/__init__.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/utils/aqme_utils.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/utils/molssi_utils.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/utils/predictions_utils.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/utils/utils_gui.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/version.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/web/app.css +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/web/app.html +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/web/app.js +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/web/checkml_brand.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/web/easyrob_background.gif +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/web/easyrob_background.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/web/images.css +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/web/images.html +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/web/images.js +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/web/results.js +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/web/robert_brand.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/web_dialogs.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/web_results.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/web_shell.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/workflow_progress.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/workflow_run_lock.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/icons/CheckML_icon.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/icons/Robert_icon.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/icons/Robert_logo.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/icons/Robert_logo_transparent.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/icons/documentation_icon.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/icons/info_icon.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/icons/pdf_icon.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/icons/play_icon.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/icons/stop_icon.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/icons/youtube_icon.ico +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/predict.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/predict_utils.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/CheckML_logo.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/GENERATE.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/Robert_icon.ico +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/Robert_logo.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/Robert_logo1.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/abbrev.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/adv_anal.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/checkml_pass.svg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/checkml_unclear.svg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/checkml_warning.svg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/features.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/outliers.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/pred.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/repro.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/robust_x.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/robust_y_high.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/robust_y_low.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_0.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_1.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_10.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_2.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_3.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_4.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_5.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_6.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_7.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_8.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_9.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_gray_0.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_gray_1.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_gray_10.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_gray_2.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_gray_3.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_gray_4.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_gray_5.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_gray_6.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_gray_7.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_gray_8.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_gray_9.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_w_1_0.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_w_1_1.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_w_2_0.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_w_2_1.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_w_2_2.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_w_2_gray_0.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_w_2_gray_1.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_w_2_gray_2.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_w_3_0.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_w_3_1.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_w_3_2.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_w_3_3.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_w_4_0.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_w_4_1.JPG +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_w_4_2.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_w_4_3.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/score_w_4_4.jpg +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/transpa.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report/y_distrib.png +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/report_utils.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/reproducibility.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/robert.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/utils.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert/verify.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert.egg-info/dependency_links.txt +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert.egg-info/entry_points.txt +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert.egg-info/requires.txt +0 -0
- {robert-2.2.2 → robert-2.2.3}/robert.egg-info/top_level.txt +0 -0
- {robert-2.2.2 → robert-2.2.3}/setup.cfg +0 -0
- {robert-2.2.2 → robert-2.2.3}/setup.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_1curate.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_2generate.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_3verify.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_4predict.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_5aqme_n_full.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_6checkml.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_7api.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_all_models_completion.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_all_models_option.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_all_models_results.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_aqme_output_paths.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_aqme_workspace.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_bot_compact_core.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_bot_compact_gui.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_checkml_cli.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_checkml_tab_refresh.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_checkml_workflow.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_csv_preflight.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_easyrob.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_full_data_cv.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_images_web.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_images_webengine.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_interactive_prediction_names.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_interactive_predictions.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_linear_model_curation.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_messagebox_modality.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_molssi_utils.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_release_version_gate.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_report_boundary_warnings.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_report_header_layout.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_reproducibility.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_split_selection.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_web_dashboard_webengine.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_web_results.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_web_shell.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_web_shell_csv.py +0 -0
- {robert-2.2.2 → robert-2.2.3}/tests/test_worker_unicode.py +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: robert
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.3
|
|
4
4
|
Summary: Refiner and Optimizer of a Bunch of Existing Regression Tools
|
|
5
5
|
Home-page: https://github.com/TheAlegreGroup/robert
|
|
6
|
-
Download-URL: https://github.com/TheAlegreGroup/robert/archive/refs/tags/2.2.
|
|
6
|
+
Download-URL: https://github.com/TheAlegreGroup/robert/archive/refs/tags/2.2.3.tar.gz
|
|
7
7
|
Author: Juan V. Alegre Requena, David Dalmau
|
|
8
8
|
Author-email: jv.alegre@csic.es
|
|
9
9
|
License: MIT
|
|
@@ -121,6 +121,20 @@ class checkml:
|
|
|
121
121
|
----------
|
|
122
122
|
kwargs : argument class
|
|
123
123
|
Specify any arguments from the CHECKML module (for a complete list of variables, visit the ROBERT documentation)
|
|
124
|
+
|
|
125
|
+
Results (after the run, see checkml_results.py)
|
|
126
|
+
-------
|
|
127
|
+
score_interpolation, score_boundary : float or None
|
|
128
|
+
The CheckML scores (0-10, one decimal; None when the split isn't the calibrated one)
|
|
129
|
+
subscores : Subscores
|
|
130
|
+
Each sub-score of the PDF's radar plots (i.e. subscores.flawed, subscores.cv)
|
|
131
|
+
cv_test : list of dict
|
|
132
|
+
The CV-Test Split Diagnostic
|
|
133
|
+
warnings : Warnings
|
|
134
|
+
warnings.severe and warnings.moderate, as on the PDF's page 2
|
|
135
|
+
results : dict
|
|
136
|
+
{'No PFI': CheckMLResults, 'PFI': CheckMLResults}; the attributes above are No PFI's.
|
|
137
|
+
Also saved as CHECKML/checkml_results.json
|
|
124
138
|
"""
|
|
125
139
|
|
|
126
140
|
@reproducible
|
|
@@ -240,7 +254,23 @@ class checkml:
|
|
|
240
254
|
verify(**options)
|
|
241
255
|
predict(**options)
|
|
242
256
|
print('o Starting REPORT module', flush=True)
|
|
243
|
-
report(**options)
|
|
257
|
+
done = report(**options)
|
|
258
|
+
self._keep_results(getattr(done, 'results', {}))
|
|
259
|
+
|
|
260
|
+
def _keep_results(self, by_model):
|
|
261
|
+
'''
|
|
262
|
+
The scores, sub-scores, CV-Test diagnostic and warnings REPORT put in the PDF, as
|
|
263
|
+
attributes of this object and in CHECKML/checkml_results.json (see checkml_results.py)
|
|
264
|
+
'''
|
|
265
|
+
|
|
266
|
+
from robert.checkml_results import write
|
|
267
|
+
self.results = next(iter(by_model.values()), {})
|
|
268
|
+
main = self.results.get('No PFI') or next(iter(self.results.values()), None)
|
|
269
|
+
for attribute in ('score_interpolation', 'score_boundary', 'score_available',
|
|
270
|
+
'subscores', 'cv_test', 'warnings', 'pdf'):
|
|
271
|
+
setattr(self, attribute, getattr(main, attribute, None))
|
|
272
|
+
if self.results:
|
|
273
|
+
write(self.results)
|
|
244
274
|
|
|
245
275
|
def clean_eval(self):
|
|
246
276
|
'''
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Results of a CHECKML run, for scripts and Jupyter notebooks.
|
|
3
|
+
|
|
4
|
+
from robert.checkml import checkml
|
|
5
|
+
|
|
6
|
+
results_checkml = checkml(csv_name="checkml_example.csv", names="Name", y="Target_values")
|
|
7
|
+
|
|
8
|
+
results_checkml.score_interpolation # 0-10, one decimal (None when not calibrated)
|
|
9
|
+
results_checkml.score_boundary # regression only
|
|
10
|
+
results_checkml.subscores.flawed # each bar of the PDF's radar plots
|
|
11
|
+
results_checkml.cv_test # CV-Test Split Diagnostic, one row per check
|
|
12
|
+
results_checkml.warnings.severe # the warnings listed on the PDF's page 2
|
|
13
|
+
results_checkml.to_dict() # everything as plain JSON-ready values
|
|
14
|
+
|
|
15
|
+
The same values are written to CHECKML/checkml_results.json, so a program that runs CheckML
|
|
16
|
+
as a separate process (i.e. through the command line) can read them without parsing the PDF.
|
|
17
|
+
Every value comes from the same dictionaries REPORT uses to draw the PDF: nothing is
|
|
18
|
+
recalculated here.
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
from __future__ import annotations
|
|
22
|
+
|
|
23
|
+
import json
|
|
24
|
+
import math
|
|
25
|
+
from dataclasses import asdict, dataclass, field
|
|
26
|
+
from pathlib import Path
|
|
27
|
+
|
|
28
|
+
RESULTS_FILE = 'CHECKML/checkml_results.json'
|
|
29
|
+
SCHEMA_VERSION = 1
|
|
30
|
+
|
|
31
|
+
# (attribute, data_score key) of each sub-score, as numbered in the PDF's Section B
|
|
32
|
+
INTERPOLATION_SUBSCORES = (
|
|
33
|
+
('flawed', 'flawed_mod_score'),
|
|
34
|
+
('cv', 'cv_score_combined'),
|
|
35
|
+
('test', 'test_score_combined'),
|
|
36
|
+
('train_val_gap', 'train_val_gap_score'),
|
|
37
|
+
('cv_vs_test', None), # diff_scaled_rmse_score (regression) or diff_mcc_score (classification)
|
|
38
|
+
('stability', 'cv_sd_score'),
|
|
39
|
+
)
|
|
40
|
+
BOUNDARY_SUBSCORES = (
|
|
41
|
+
('high_prediction', 'sorted_cv_high_score'),
|
|
42
|
+
('high_spearman', 'spearman_score_high'),
|
|
43
|
+
('high_degradation', 'degradation_score_high'),
|
|
44
|
+
('low_prediction', 'sorted_cv_low_score'),
|
|
45
|
+
('low_spearman', 'spearman_score_low'),
|
|
46
|
+
('low_degradation', 'degradation_score_low'),
|
|
47
|
+
('leverage', 'applicability_domain_score'),
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def _plain(value):
|
|
52
|
+
"""numpy numbers, NaN and nested containers as values json.dumps() accepts."""
|
|
53
|
+
if isinstance(value, dict):
|
|
54
|
+
return {str(k): _plain(v) for k, v in value.items()}
|
|
55
|
+
if isinstance(value, (list, tuple)):
|
|
56
|
+
return [_plain(v) for v in value]
|
|
57
|
+
if hasattr(value, 'item') and not isinstance(value, (str, bytes)):
|
|
58
|
+
try:
|
|
59
|
+
value = value.item()
|
|
60
|
+
except (TypeError, ValueError):
|
|
61
|
+
return str(value)
|
|
62
|
+
if isinstance(value, float) and not math.isfinite(value):
|
|
63
|
+
return None
|
|
64
|
+
if value is None or isinstance(value, (bool, int, float, str)):
|
|
65
|
+
return value
|
|
66
|
+
return str(value)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
def _one_decimal(value):
|
|
70
|
+
value = _plain(value)
|
|
71
|
+
return None if value is None else round(float(value), 1)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
@dataclass
|
|
75
|
+
class Subscores:
|
|
76
|
+
flawed: float | None = None
|
|
77
|
+
cv: float | None = None
|
|
78
|
+
test: float | None = None
|
|
79
|
+
train_val_gap: float | None = None
|
|
80
|
+
cv_vs_test: float | None = None
|
|
81
|
+
stability: float | None = None
|
|
82
|
+
high_prediction: float | None = None
|
|
83
|
+
high_spearman: float | None = None
|
|
84
|
+
high_degradation: float | None = None
|
|
85
|
+
low_prediction: float | None = None
|
|
86
|
+
low_spearman: float | None = None
|
|
87
|
+
low_degradation: float | None = None
|
|
88
|
+
leverage: float | None = None
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
@dataclass
|
|
92
|
+
class Warnings:
|
|
93
|
+
severe: list = field(default_factory=list)
|
|
94
|
+
moderate: list = field(default_factory=list)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
@dataclass
|
|
98
|
+
class CheckMLResults:
|
|
99
|
+
"""One PDF's results (No PFI, or PFI when the descriptors were filtered)."""
|
|
100
|
+
model_type: str = '' # 'reg' or 'clas'
|
|
101
|
+
model: str = '' # i.e. 'MVL', 'RandomForestRegressor'
|
|
102
|
+
score_available: bool = True # False: user-defined or non-standard split
|
|
103
|
+
score_unavailable_reason: str | None = None
|
|
104
|
+
score_interpolation: float | None = None
|
|
105
|
+
score_boundary: float | None = None # regression only
|
|
106
|
+
subscores: Subscores = field(default_factory=Subscores)
|
|
107
|
+
cv_test: list = field(default_factory=list) # [{'check', 'status', 'difference_pct'}]
|
|
108
|
+
warnings: Warnings = field(default_factory=Warnings)
|
|
109
|
+
pdf: str | None = None
|
|
110
|
+
robert_version: str = ''
|
|
111
|
+
raw: dict = field(default_factory=dict) # every value REPORT computed (data_score)
|
|
112
|
+
|
|
113
|
+
def to_dict(self) -> dict:
|
|
114
|
+
return _plain(asdict(self))
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
def build(data_score: dict, warnings_dict: dict, suffix: str, pred_type: str, model: str = '',
|
|
118
|
+
pdf: str | None = None, robert_version: str = '') -> CheckMLResults:
|
|
119
|
+
"""Collect one PDF's results from REPORT's data_score and warnings dictionaries."""
|
|
120
|
+
from robert.report import report
|
|
121
|
+
|
|
122
|
+
def get(key):
|
|
123
|
+
return data_score.get(f'{key}_{suffix}')
|
|
124
|
+
|
|
125
|
+
available = bool(get('score_available') if get('score_available') is not None else True)
|
|
126
|
+
sub = {}
|
|
127
|
+
for name, key in INTERPOLATION_SUBSCORES:
|
|
128
|
+
if key is None:
|
|
129
|
+
key = 'diff_scaled_rmse_score' if pred_type == 'reg' else 'diff_mcc_score'
|
|
130
|
+
sub[name] = _one_decimal(get(key))
|
|
131
|
+
if pred_type == 'reg':
|
|
132
|
+
for name, key in BOUNDARY_SUBSCORES:
|
|
133
|
+
sub[name] = _one_decimal(get(key))
|
|
134
|
+
|
|
135
|
+
_, _, rows = report.cv_test_diagnostic(data_score, suffix, pred_type)
|
|
136
|
+
cv_test = [{'check': label, 'status': status,
|
|
137
|
+
'difference_pct': None if value in ('unavailable', 'unbounded')
|
|
138
|
+
else float(value.rstrip('%'))}
|
|
139
|
+
for status, _, _, label, value in rows]
|
|
140
|
+
|
|
141
|
+
return CheckMLResults(
|
|
142
|
+
model_type=pred_type, model=model, score_available=available,
|
|
143
|
+
score_unavailable_reason=get('score_unavailable_reason'),
|
|
144
|
+
score_interpolation=_one_decimal(get('interp_score')) if available else None,
|
|
145
|
+
score_boundary=_one_decimal(get('extrap_score')) if available and pred_type == 'reg'
|
|
146
|
+
else None,
|
|
147
|
+
subscores=Subscores(**sub), cv_test=cv_test,
|
|
148
|
+
warnings=Warnings(_plain(warnings_dict.get(f'severe_warnings_{suffix}', [])),
|
|
149
|
+
_plain(warnings_dict.get(f'moderate_warnings_{suffix}', []))),
|
|
150
|
+
pdf=pdf, robert_version=robert_version,
|
|
151
|
+
raw={k[:-len(suffix) - 1]: _plain(v) for k, v in data_score.items()
|
|
152
|
+
if k.endswith(f'_{suffix}')})
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
def write(results: dict, folder: str | Path = '.') -> Path:
|
|
156
|
+
"""{'No PFI': CheckMLResults, 'PFI': ...} as CHECKML/checkml_results.json."""
|
|
157
|
+
path = Path(folder) / RESULTS_FILE
|
|
158
|
+
path.parent.mkdir(parents=True, exist_ok=True)
|
|
159
|
+
path.write_text(json.dumps({'schema_version': SCHEMA_VERSION,
|
|
160
|
+
**{k: v.to_dict() for k, v in results.items()}}, indent=2),
|
|
161
|
+
encoding='utf-8')
|
|
162
|
+
return path
|
|
@@ -340,6 +340,10 @@ class report:
|
|
|
340
340
|
# "best model for Interpolation / Boundary robustness" line in Section F
|
|
341
341
|
self.model_scores = model_scores
|
|
342
342
|
|
|
343
|
+
# each PDF's scores, sub-scores and warnings, for CHECKML's Python results
|
|
344
|
+
# (see checkml_results.py): {model_name: {suffix: CheckMLResults}}
|
|
345
|
+
self.results = {}
|
|
346
|
+
|
|
343
347
|
for model_name in model_names:
|
|
344
348
|
self.model_suffix = f'_{model_name}' if model_name is not None else ''
|
|
345
349
|
|
|
@@ -425,6 +429,11 @@ class report:
|
|
|
425
429
|
|
|
426
430
|
print(f'\no {pdf_name} was created successfully in the working directory!')
|
|
427
431
|
|
|
432
|
+
from robert.checkml_results import build as build_results
|
|
433
|
+
self.results.setdefault(model_name, {})[suffix] = build_results(
|
|
434
|
+
data_score, warnings_dict, suffix, pred_type, self.report_model_name,
|
|
435
|
+
pdf_name, str(robert_version))
|
|
436
|
+
|
|
428
437
|
# --all_models: the working directory would otherwise end up with 8 PDFs (4 models x
|
|
429
438
|
# 2 PFI variants) - move all of them into REPORT_models/ and copy back only the single
|
|
430
439
|
# overall-best one (see _pick_best_overall()), so the working directory stays
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: robert
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.3
|
|
4
4
|
Summary: Refiner and Optimizer of a Bunch of Existing Regression Tools
|
|
5
5
|
Home-page: https://github.com/TheAlegreGroup/robert
|
|
6
|
-
Download-URL: https://github.com/TheAlegreGroup/robert/archive/refs/tags/2.2.
|
|
6
|
+
Download-URL: https://github.com/TheAlegreGroup/robert/archive/refs/tags/2.2.3.tar.gz
|
|
7
7
|
Author: Juan V. Alegre Requena, David Dalmau
|
|
8
8
|
Author-email: jv.alegre@csic.es
|
|
9
9
|
License: MIT
|
|
@@ -10,6 +10,7 @@ robert/api.py
|
|
|
10
10
|
robert/aqme.py
|
|
11
11
|
robert/argument_parser.py
|
|
12
12
|
robert/checkml.py
|
|
13
|
+
robert/checkml_results.py
|
|
13
14
|
robert/checkml_score.py
|
|
14
15
|
robert/curate.py
|
|
15
16
|
robert/evaluate_bot_retrieval.py
|
|
@@ -280,6 +281,7 @@ tests/test_aqme_workspace.py
|
|
|
280
281
|
tests/test_bot_compact_core.py
|
|
281
282
|
tests/test_bot_compact_gui.py
|
|
282
283
|
tests/test_checkml_cli.py
|
|
284
|
+
tests/test_checkml_results.py
|
|
283
285
|
tests/test_checkml_tab_refresh.py
|
|
284
286
|
tests/test_checkml_workflow.py
|
|
285
287
|
tests/test_csv_preflight.py
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"""CHECKML's results object: the scores, sub-scores, CV-Test diagnostic and warnings of the PDF,
|
|
2
|
+
read in Python right after the run and saved as CHECKML/checkml_results.json."""
|
|
3
|
+
|
|
4
|
+
import json
|
|
5
|
+
import os
|
|
6
|
+
from dataclasses import fields
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
|
|
9
|
+
import pandas as pd
|
|
10
|
+
import pytest
|
|
11
|
+
|
|
12
|
+
from robert import checkml_results as CR
|
|
13
|
+
from robert.checkml import checkml
|
|
14
|
+
|
|
15
|
+
path_main = os.getcwd()
|
|
16
|
+
path_tests = Path(path_main) / "tests"
|
|
17
|
+
|
|
18
|
+
CV_TEST_CHECKS = ["Interpolation", "Extrapol. high y values", "Extrapol. low y values",
|
|
19
|
+
"Extrapol. descriptor-space"]
|
|
20
|
+
INTERPOLATION = [name for name, _ in CR.INTERPOLATION_SUBSCORES]
|
|
21
|
+
BOUNDARY = [name for name, _ in CR.BOUNDARY_SUBSCORES]
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
@pytest.fixture(scope="module")
|
|
25
|
+
def regression_run(tmp_path_factory):
|
|
26
|
+
folder = tmp_path_factory.mktemp("checkml_reg")
|
|
27
|
+
df = pd.concat([pd.read_csv(path_tests / f) for f in ("CheckML_train.csv", "CheckML_valid.csv")])
|
|
28
|
+
df.drop(columns="Set").to_csv(folder / "data.csv", index=False)
|
|
29
|
+
old = os.getcwd()
|
|
30
|
+
os.chdir(folder)
|
|
31
|
+
try:
|
|
32
|
+
r = checkml(csv_name="data.csv", names="Name", y="Target_values")
|
|
33
|
+
saved = json.loads(Path("CHECKML/checkml_results.json").read_text(encoding="utf-8"))
|
|
34
|
+
finally:
|
|
35
|
+
os.chdir(old)
|
|
36
|
+
return r, saved, folder
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def test_the_results_are_on_the_object_and_in_the_json(regression_run):
|
|
40
|
+
r, saved, folder = regression_run
|
|
41
|
+
main = saved["No PFI"]
|
|
42
|
+
assert saved["schema_version"] == CR.SCHEMA_VERSION
|
|
43
|
+
assert main["model_type"] == "reg" and main["model"] == "MVL" and main["robert_version"]
|
|
44
|
+
assert r.score_interpolation == main["score_interpolation"]
|
|
45
|
+
assert r.score_boundary == main["score_boundary"]
|
|
46
|
+
for score in (r.score_interpolation, r.score_boundary):
|
|
47
|
+
assert 0 <= score <= 10 and round(score, 1) == score
|
|
48
|
+
assert r.subscores.flawed <= 0 # a penalty
|
|
49
|
+
assert (folder / r.pdf).exists() # relative to the run's folder (or absolute)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def test_every_stored_value_is_the_same_in_the_json(regression_run):
|
|
53
|
+
"""Every field of the results object (scores, sub-scores, CV-Test rows, warnings, the raw
|
|
54
|
+
values REPORT computed) is written to the JSON unchanged."""
|
|
55
|
+
r, saved, _ = regression_run
|
|
56
|
+
for name, result in r.results.items():
|
|
57
|
+
assert result.to_dict() == saved[name]
|
|
58
|
+
stored = set(saved[name])
|
|
59
|
+
assert stored == {f.name for f in fields(CR.CheckMLResults)}
|
|
60
|
+
assert set(saved[name]["subscores"]) == {f.name for f in fields(CR.Subscores)}
|
|
61
|
+
assert set(saved[name]["warnings"]) == {"severe", "moderate"}
|
|
62
|
+
assert saved[name]["raw"] # REPORT's values, without the suffix
|
|
63
|
+
assert not any(k.endswith(("_No_PFI", "_PFI")) for k in saved[name]["raw"])
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
def test_the_four_cv_test_checks_are_stored(regression_run):
|
|
67
|
+
"""Interpolation, high y values, low y values and leverage (descriptor space), as in the
|
|
68
|
+
PDF's CV-Test Split Diagnostic."""
|
|
69
|
+
r, saved, _ = regression_run
|
|
70
|
+
assert [row["check"] for row in r.cv_test] == CV_TEST_CHECKS
|
|
71
|
+
assert [row["check"] for row in saved["No PFI"]["cv_test"]] == CV_TEST_CHECKS
|
|
72
|
+
for row in r.cv_test:
|
|
73
|
+
assert set(row) == {"check", "status", "difference_pct"}
|
|
74
|
+
assert row["status"] in {"Pass", "Unclear", "Warning", "N/A"}
|
|
75
|
+
assert (row["difference_pct"] is None) == (row["status"] == "N/A")
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
def test_the_interpolation_subscores_sum_to_the_interpolation_score(regression_run):
|
|
79
|
+
r, saved, _ = regression_run
|
|
80
|
+
s = r.subscores
|
|
81
|
+
parts = [getattr(s, name) for name in INTERPOLATION]
|
|
82
|
+
assert None not in parts
|
|
83
|
+
for name in INTERPOLATION:
|
|
84
|
+
assert name in saved["No PFI"]["subscores"]
|
|
85
|
+
# the PDF's Section A: the six items added, never below 0
|
|
86
|
+
assert max(sum(parts), 0) == pytest.approx(r.score_interpolation, abs=0.15)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def test_the_boundary_subscores_sum_to_the_boundary_score(regression_run):
|
|
90
|
+
r, _, _ = regression_run
|
|
91
|
+
parts = [getattr(r.subscores, name) for name in BOUNDARY]
|
|
92
|
+
assert None not in parts
|
|
93
|
+
assert max(sum(parts), 0) == pytest.approx(r.score_boundary, abs=0.15)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
def test_severe_and_moderate_warnings_are_stored(regression_run):
|
|
97
|
+
r, saved, _ = regression_run
|
|
98
|
+
for kind in ("severe", "moderate"):
|
|
99
|
+
assert isinstance(getattr(r.warnings, kind), list)
|
|
100
|
+
assert getattr(r.warnings, kind) == saved["No PFI"]["warnings"][kind]
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def _built(pred_type="reg", **extra):
|
|
104
|
+
"""REPORT's dictionaries, made up, with every value build() reads."""
|
|
105
|
+
suffix = "No_PFI"
|
|
106
|
+
keys = [k for _, k in CR.INTERPOLATION_SUBSCORES + CR.BOUNDARY_SUBSCORES if k]
|
|
107
|
+
keys += ["diff_scaled_rmse_score", "diff_mcc_score"]
|
|
108
|
+
data = {f"{k}_{suffix}": 1.04 for k in keys}
|
|
109
|
+
data.update({f"interp_score_{suffix}": 7.26, f"extrap_score_{suffix}": 5.04,
|
|
110
|
+
f"rmse_full_{suffix}": 1.0, f"mcc_full_{suffix}": 0.5,
|
|
111
|
+
f"full_cv_diff_cv_{suffix}": 10.0, f"full_cv_diff_high_{suffix}": 20.0,
|
|
112
|
+
f"full_cv_diff_low_{suffix}": 40.0, f"full_cv_diff_ad_{suffix}": float("nan")})
|
|
113
|
+
data.update({f"{k}_{suffix}": v for k, v in extra.items()})
|
|
114
|
+
warnings = {f"severe_warnings_{suffix}": ["Severe one"],
|
|
115
|
+
f"moderate_warnings_{suffix}": ["Moderate one", "Moderate two"]}
|
|
116
|
+
return CR.build(data, warnings, suffix, pred_type, model="MVL", pdf="x.pdf",
|
|
117
|
+
robert_version="2.2.3")
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
def test_build_keeps_moderate_warnings_and_every_field():
|
|
121
|
+
r = _built()
|
|
122
|
+
assert r.warnings.severe == ["Severe one"]
|
|
123
|
+
assert r.warnings.moderate == ["Moderate one", "Moderate two"]
|
|
124
|
+
assert r.score_interpolation == 7.3 and r.score_boundary == 5.0
|
|
125
|
+
assert all(getattr(r.subscores, f.name) == 1.0 for f in fields(CR.Subscores))
|
|
126
|
+
assert [(row["check"], row["status"], row["difference_pct"]) for row in r.cv_test] == [
|
|
127
|
+
("Interpolation", "Pass", 10.0), ("Extrapol. high y values", "Unclear", 20.0),
|
|
128
|
+
("Extrapol. low y values", "Warning", 40.0), ("Extrapol. descriptor-space", "N/A", None)]
|
|
129
|
+
assert r.model == "MVL" and r.pdf == "x.pdf" and r.robert_version == "2.2.3"
|
|
130
|
+
assert r.raw["interp_score"] == 7.26 and r.raw["full_cv_diff_ad"] is None # NaN -> None
|
|
131
|
+
json.dumps(r.to_dict()) # JSON-ready
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
def test_build_for_classification_has_no_boundary_score():
|
|
135
|
+
r = _built("clas")
|
|
136
|
+
assert r.score_boundary is None
|
|
137
|
+
assert r.subscores.cv_vs_test == 1.0 # diff_mcc_score
|
|
138
|
+
assert all(getattr(r.subscores, name) is None for name in BOUNDARY)
|
|
139
|
+
assert [row["check"] for row in r.cv_test] == ["Interpolation"]
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
def test_build_without_a_score():
|
|
143
|
+
r = _built(score_available=False, score_unavailable_reason="user_set")
|
|
144
|
+
assert r.score_available is False and r.score_unavailable_reason == "user_set"
|
|
145
|
+
assert r.score_interpolation is None and r.score_boundary is None
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
def test_a_user_defined_split_gives_no_score(tmp_path, monkeypatch):
|
|
149
|
+
df = pd.concat([pd.read_csv(path_tests / f) for f in ("CheckML_train.csv", "CheckML_valid.csv")])
|
|
150
|
+
df["Set"] = ["Test" if i % 5 == 0 else "Training" for i in range(len(df))]
|
|
151
|
+
df.to_csv(tmp_path / "data.csv", index=False)
|
|
152
|
+
monkeypatch.chdir(tmp_path)
|
|
153
|
+
r = checkml(csv_name="data.csv", names="Name", y="Target_values")
|
|
154
|
+
assert r.score_available is False
|
|
155
|
+
assert r.score_interpolation is None and r.score_boundary is None
|
|
156
|
+
assert r.results["No PFI"].score_unavailable_reason == "user_set"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/knowledge_sources/aqme_user_guidance.json
RENAMED
|
File without changes
|
{robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/knowledge_sources/coverage_manifest.json
RENAMED
|
File without changes
|
{robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/knowledge_sources/robert_user_guidance.json
RENAMED
|
File without changes
|
{robert-2.2.2 → robert-2.2.3}/robert/gui_easyrob/bot/knowledge_sources/ui_user_guidance.json
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|