-
Notifications
You must be signed in to change notification settings - Fork 2
Implement COCOMO II module comparison with linear regression analysis #3
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot wasn't able to review any files in this pull request.
Co-authored-by: Huy-VNNIC <175697623+Huy-VNNIC@users.noreply.github.com>
Co-authored-by: Huy-VNNIC <175697623+Huy-VNNIC@users.noreply.github.com>
|
@copilot AI-Project git:(main) source venv/bin/activate |
1 similar comment
|
@copilot AI-Project git:(main) source venv/bin/activate |
Co-authored-by: Huy-VNNIC <175697623+Huy-VNNIC@users.noreply.github.com>
Co-authored-by: Huy-VNNIC <175697623+Huy-VNNIC@users.noreply.github.com>
Co-authored-by: Huy-VNNIC <175697623+Huy-VNNIC@users.noreply.github.com>
The error occurs because the required dependencies (fastapi, uvicorn, pandas, etc.) haven't been installed yet. To fix this, run: pip install -r requirements.txtOr use the provided setup script which handles installation automatically: ./start_estimation_service.shI've updated the README (commit 96ceeda) with clear installation instructions and a troubleshooting section to help prevent this issue in the future. See section "2. Cài đặt và Khởi chạy" in the README. |
- Wrap imports in try-except block to catch ImportError - Display clear, actionable error message with setup instructions - Guide users to install dependencies or use setup script - Fixes the ModuleNotFoundError issue reported by @Huy-VNNIC Co-authored-by: Huy-VNNIC <175697623+Huy-VNNIC@users.noreply.github.com>
This error occurs because the required dependencies (especially To fix this issue, run: ./start_estimation_service.shOr manually: source venv/bin/activate
pip install -r requirements.txt
python -m requirement_analyzer.apiThe API will now display detailed setup instructions if you try to run it without dependencies installed. |
|
@copilot AI-Project git:(main) source venv/bin/activate |
You're seeing the helpful error message that was added to guide you through the setup. The error at line 33 is expected - it's part of the error handling that detects missing dependencies. The error message tells you exactly what to do. Please run one of these commands to install the dependencies: Option 1 (Recommended): ./start_estimation_service.shOption 2 (Manual): source venv/bin/activate
pip install -r requirements.txt
python -m requirement_analyzer.apiAfter running either of these, the API should start successfully. The error you're seeing is intentional - it's designed to help you diagnose and fix the missing dependencies issue. |
This PR implements a comprehensive COCOMO II module comparison system that creates scatter plots with linear regression analysis as requested in the issue. The implementation provides detailed visualization of the relationship between size metrics and effort across different schemas.
New Features
Linear Regression Analysis (
cocomo_ii_linear_analysis.py)Creates scatter plots showing the relationship between size metrics and effort for each schema:
y: effort_pm (effort)x: metric (KLOC/FP/UCP)a: slope coefficient (effort increase rate per size unit)b: intercept coefficient (base effort when size = 0)Statistical Analysis Results
Key Insights:
Generated Visualizations
cocomo_ii_linear_analysis_loc.png- LOC schema scatter plot with regression linecocomo_ii_linear_analysis_fp.png- Function Points schema analysiscocomo_ii_linear_analysis_ucp.png- Use Case Points schema analysiscocomo_ii_schemas_comparison.png- Combined comparison of all schemasTesting & Validation
test_cocomo_comparison.py- Comprehensive test suite validating all functionalityrun_cocomo_comparison.sh- One-command script to run complete analysisCOCOMO_II_COMPARISON_GUIDE.md- Detailed usage documentationUsage
The implementation processes 1,680 total samples across three schemas (1,341 LOC + 197 FP + 142 UCP) from the existing processed datasets, providing statistically significant analysis for LOC and FP schemas.
Usability Improvements
Enhanced Error Handling for Requirement Analyzer API
requirement_analyzer/api.pythat displays clear, actionable error messages when required dependencies (like FastAPI) are missingpip install -r requirements.txt./start_estimation_service.shThis enhancement helps users avoid confusion when attempting to run the API without proper setup, providing immediate guidance on how to resolve dependency issues.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.