Skip to content
This repository was archived by the owner on May 8, 2025. It is now read-only.

Feature/enhance nsgaii settings #454

Merged
merged 26 commits into from
Apr 21, 2025
Merged

Conversation

hrntsm
Copy link
Collaborator

@hrntsm hrntsm commented Apr 21, 2025

Reference Issues/PRs

What does this implement/fix? Explain your changes.

  • Enhance GA base algorithm
    • Add mutation & crossover settings

NATSUME Hiroaki and others added 23 commits April 17, 2025 12:01
@hrntsm hrntsm requested a review from Copilot April 21, 2025 01:31
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the GA base algorithm by introducing additional mutation and crossover settings, improving configuration and UI support.

  • Added a new BLXAlpha settings page for crossover parameter input.
  • Introduced new enums and interfaces for mutation and crossover parameters.
  • Updated GA sampler implementations and commit references for the Optuna integration.

Reviewed Changes

Copilot reviewed 40 out of 43 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
Tunny/WPF/Views/Pages/Settings/Crossover/BLXAlpha.xaml.cs New page for BLXAlpha settings with UI input for alpha.
Tunny/WPF/ViewModels/MainWindowViewModel.cs Added deletion logic for Python directory with error logging.
Tunny/WPF/Common/NsgaMutationType.cs New enum for NSGA mutation types.
Tunny/WPF/Common/NsgaCrossoverType.cs Updated namespace for NSGA crossover types.
Tunny/WPF/Common/IMutationParam.cs Introduced interface for mutation parameters.
Tunny/WPF/Common/ICrossoverParam.cs Introduced interface for crossover parameters.
Tunny.Core/Util/TEnvVariables.cs Added documentation for environment paths.
Tunny.Core/Settings/Sampler.cs Updated commit SHA for Optuna integration.
Tunny.Core/Input/InputValidator.cs Enhanced methods to support boundary inclusion options.
Optuna/Sampler/TpeSampler.cs Added JsonIgnore for WarnIndependentSampling property.
Optuna/Sampler/QMCSampler.cs Added JsonIgnore for warning properties.
Optuna/Sampler/OptunaHub/NSGAIISampler.cs Updated parameter passing for crossover and mutation.
Optuna/Sampler/OptunaHub/MOEADSampler.cs Updated GA sampler configuration to use new interfaces.
Optuna/Sampler/NSGAIIISampler.cs Minor adjustments in parameter passing consistency.
Optuna/Sampler/GASamplerBase.cs Introduced new settings properties and updated crossover logic.
Optuna/Sampler/CmaEsSampler.cs Added JsonIgnore for WarnIndependentSampling property.
CHANGELOG.md Documented changes and version update for optuna.
Files not reviewed (3)
  • Tunny/Tunny.csproj: Language not supported
  • Tunny/WPF/Views/Pages/Optimize/OptimizePage.xaml: Language not supported
  • Tunny/WPF/Views/Pages/Settings/Crossover/BLXAlpha.xaml: Language not supported

Copy link

codecov bot commented Apr 21, 2025

Codecov Report

Attention: Patch coverage is 42.85714% with 24 lines in your changes missing coverage. Please review.

Project coverage is 44.86%. Comparing base (0c03e01) to head (6dd599b).
Report is 28 commits behind head on develop.

Files with missing lines Patch % Lines
Optuna/Sampler/GASamplerBase.cs 31.81% 15 Missing ⚠️
Optuna/Sampler/OptunaHub/NSGAIISampler.cs 0.00% 3 Missing ⚠️
Optuna/Sampler/NSGAIIISampler.cs 0.00% 2 Missing ⚠️
Optuna/Sampler/OptunaHub/MOEADSampler.cs 0.00% 2 Missing ⚠️
Tunny.Core/Input/InputValidator.cs 90.00% 0 Missing and 1 partial ⚠️
Tunny.Core/Settings/Sampler.cs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #454      +/-   ##
===========================================
- Coverage    44.89%   44.86%   -0.03%     
===========================================
  Files           70       70              
  Lines         3288     3299      +11     
  Branches       375      381       +6     
===========================================
+ Hits          1476     1480       +4     
- Misses        1765     1771       +6     
- Partials        47       48       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link

codeclimate bot commented Apr 21, 2025

Code Climate has analyzed commit 6dd599b and detected 16 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 4
Duplication 12

View more on Code Climate.

@hrntsm hrntsm merged commit 43b3534 into develop Apr 21, 2025
4 of 8 checks passed
@hrntsm hrntsm deleted the feature/enhance-nsgaii-settings branch April 21, 2025 02:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant