sharkpy.explaining
Attributes
Functions
|
Create a temporary plot and return its path |
|
Helper function to add a pandas DataFrame as a table to DOCX |
|
Add performance metrics table to DOCX document |
|
Export explanation to DOCX with specified depth level |
|
Convert DOCX to PDF using docx2pdf |
|
Extract dynamic insights from the data |
|
Generate model explanation with customizable depth and export options |
Demo the explanation system |
Module Contents
- sharkpy.explaining._create_temp_plot(model, features, target, kind: str, width: int = 8, height: int = 6) str[source]
Create a temporary plot and return its path
- sharkpy.explaining._add_table_to_doc(doc: docx.Document, df: pandas.DataFrame, title: str)[source]
Helper function to add a pandas DataFrame as a table to DOCX
- sharkpy.explaining._add_metrics_table_to_doc(doc: docx.Document, cv_results, train_metrics)[source]
Add performance metrics table to DOCX document
- sharkpy.explaining._export_deep_explanation_docx(docx_path, deep_explanation, model, features, target, feature_df, depth='deep')[source]
Export explanation to DOCX with specified depth level
- sharkpy.explaining._convert_docx_to_pdf(docx_path, pdf_path)[source]
Convert DOCX to PDF using docx2pdf
- sharkpy.explaining._get_data_insights(features, target, target_name, data, label_encoder, is_regression)[source]
Extract dynamic insights from the data