Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available: 6.12.0
KPI Score Analysis
This project analyzes correlations between Lenovo KPI data (IPM scores) and axiia assessment scores.
Files and Directories
Core Analysis Scripts
analyze_correlations.py- Original script for correlation analysisanalyze_correlations_v2.py- Main script for calculating Pearson and Spearman correlations between KPI and score data with plotting supportkpi_correlation_app.py- Gradio web UI for interactive correlation analysis and visualization
Utility Scripts
csv_utils.py- Helper functions for Excel to CSV conversion and data processingstep0_fill_kpi_ratings.py- Script to fill empty KPI values with random data for testinglaunch_gradio_app.sh- Shell script to launch the Gradio app with instructions
Test Scripts
test_step3.py- Tests correlation analysis with partial data and missing valuestest_plotting.py- Tests the plotting functionality of the analysis scripttest_excel_conversion.py- Tests Excel to CSV conversion functionalitytest_gradio_app.py- Test script to verify Gradio app setup and provide usage instructionstest_correlation_analysis.sh- Shell script for running correlation testsexample_usage.sh- Example commands for running the analysis
Data Files
test_kpi.csv- Sample KPI data file for testinglenovo-scores-0603.csv- Axiia assessment scores data (used by Gradio app)
Output Files
score_corr.yaml- Basic correlation analysis resultsscore_corr_v2.yaml- Enhanced correlation analysis results with data quality infoscore_corr_ipm.yaml- Correlation results with IPM percentage formattingscore_corr_with_plots.yaml- Correlation results generated with plottingtest_flags.yaml- Test results with command line flagstest_step3_output.yaml- Output from step 3 testing
Plots
correlation_plots.png- Combined plot showing all correlationscorrelation_AC.png- Scatter plot of problem_score vs FY23/24 IPMcorrelation_AD.png- Scatter plot of problem_score vs FY24/25 IPMcorrelation_BC.png- Scatter plot of ability_score vs FY23/24 IPMcorrelation_BD.png- Scatter plot of ability_score vs FY24/25 IPM
Documentation
kpi_socre_plan.md- Step-by-step plan for the analysis projectplotting_readme.md- Documentation for the plotting functionalitygradio_app_usage.md- Usage guide for the Gradio web UI applicationstep3_test_results.md- Results from step 3 testing
Usage
Basic correlation analysis:
python analyze_correlations_v2.py -k data/lenovo_kpi.csv -s data/lenovo-scores-0603.csv -o score_corr.yaml
With plotting:
python analyze_correlations_v2.py -k data/lenovo_kpi.csv -s data/lenovo-scores-0603.csv -o score_corr.yaml -p
Gradio web UI:
python kpi_correlation_app.py
# or
./launch_gradio_app.sh