export
export
¶
Export utilities for experiment results.
Provides functions for exporting results to CSV, JSON, LaTeX tables, and markdown, suitable for academic publications.
export_to_csv(results, filepath, metric='squared_error', include_timeseries=False)
¶
Export results to CSV file.
Args: results: Dictionary mapping config name to AggregatedResults filepath: Path to output CSV file metric: Metric to export include_timeseries: Whether to include full timeseries (large!)
Source code in src/alberta_framework/utils/export.py
export_to_json(results, filepath, include_timeseries=False)
¶
Export results to JSON file.
Args: results: Dictionary mapping config name to AggregatedResults filepath: Path to output JSON file include_timeseries: Whether to include full timeseries (large!)
Source code in src/alberta_framework/utils/export.py
generate_latex_table(results, significance_results=None, metric='squared_error', caption='Experimental Results', label='tab:results', metric_label='Error', lower_is_better=True)
¶
Generate a LaTeX table of results.
Args: results: Dictionary mapping config name to AggregatedResults significance_results: Optional pairwise significance test results metric: Metric to display caption: Table caption label: LaTeX label for the table metric_label: Human-readable name for the metric lower_is_better: Whether lower metric values are better
Returns: LaTeX table as a string
Source code in src/alberta_framework/utils/export.py
generate_markdown_table(results, significance_results=None, metric='squared_error', metric_label='Error', lower_is_better=True)
¶
Generate a markdown table of results.
Args: results: Dictionary mapping config name to AggregatedResults significance_results: Optional pairwise significance test results metric: Metric to display metric_label: Human-readable name for the metric lower_is_better: Whether lower metric values are better
Returns: Markdown table as a string
Source code in src/alberta_framework/utils/export.py
generate_significance_table(significance_results, format='latex')
¶
Generate a table of pairwise significance results.
Args: significance_results: Pairwise significance test results format: Output format ("latex" or "markdown")
Returns: Formatted table as string
Source code in src/alberta_framework/utils/export.py
save_experiment_report(results, output_dir, experiment_name, significance_results=None, metric='squared_error')
¶
Save a complete experiment report with all artifacts.
Args: results: Dictionary mapping config name to AggregatedResults output_dir: Directory to save artifacts experiment_name: Name for the experiment (used in filenames) significance_results: Optional pairwise significance test results metric: Primary metric to report
Returns: Dictionary mapping artifact type to file path
Source code in src/alberta_framework/utils/export.py
results_to_dataframe(results, metric='squared_error')
¶
Convert results to a pandas DataFrame.
Requires pandas to be installed.
Args: results: Dictionary mapping config name to AggregatedResults metric: Metric to include
Returns: DataFrame with results