Refactoring solvers#541
Conversation
dario-coscia
commented
Apr 8, 2025
- Simplify logic compile
- Improve and update doc
- Create SupervisedSolverInterface
- Specialize SupervisedSolver and ReducedOrderModelSolver
- Create EnsembleSolverInterface + EnsembleSupervisedSolver
- Create tests ensemble solvers
* Simplify logic compile * Improve and update doc * Create SupervisedSolverInterface * Specialize SupervisedSolver and ReducedOrderModelSolver * Create EnsembleSolverInterface + EnsembleSupervisedSolver * Create tests ensemble solvers
Code Coverage SummaryResults for commit: f82085d Minimum allowed coverage is ♻️ This comment has been updated with latest results |
f4b9503 to
9c59f14
Compare
9c59f14 to
746c2f3
Compare
|
Tried to fix some codacy errors but there are two which we cannot fix:
We can easily fix it my removing it from pylint, but let's discuss it and fix it in another PR in case |
GiovanniCanali
left a comment
There was a problem hiding this comment.
Thank you for the nice enhancements, @dario-coscia!
I have left several minor comments. Please, address them before merging.
FilippoOlivo
left a comment
There was a problem hiding this comment.
Personally, I do not like the the way in which the solver are subdivided. Specifically, I would avoid the ensemble solver folder, while, I will put ensemble_supervised into supervised_solver folder and ensemble_pinn into pinn physics_informed_solver
I did this to have flexibility in the future, I think other ensemble methods will be added. Like this, we have a dedicated module for ensembles, which is reasonable to me |
I get what you mean but, in my opinion they still belong to supervised/physics_informed solvers. @GiovanniCanali @ndem0 what do you think? |
|
@GiovanniCanali I fixed the issues, check the one unresolved if you agree. Also I speeded up a bit the test by decreasing number of points evaluations in the solvers, now we go a 15% faster in testing |
Personally, I appreciate the proposed logic. Anyway, I will spend some time thinking about this. |
GiovanniCanali
left a comment
There was a problem hiding this comment.
No further suggestions. Thank you @dario-coscia!
* Refactoring solvers * Simplify logic compile * Improve and update doc * Create SupervisedSolverInterface * Specialize SupervisedSolver and ReducedOrderModelSolver * Create EnsembleSolverInterface + EnsembleSupervisedSolver * Create tests ensemble solvers * formatter * codacy * fix issues + speedup test
* Refactoring solvers * Simplify logic compile * Improve and update doc * Create SupervisedSolverInterface * Specialize SupervisedSolver and ReducedOrderModelSolver * Create EnsembleSolverInterface + EnsembleSupervisedSolver * Create tests ensemble solvers * formatter * codacy * fix issues + speedup test
* Refactoring solvers * Simplify logic compile * Improve and update doc * Create SupervisedSolverInterface * Specialize SupervisedSolver and ReducedOrderModelSolver * Create EnsembleSolverInterface + EnsembleSupervisedSolver * Create tests ensemble solvers * formatter * codacy * fix issues + speedup test
* Refactoring solvers * Simplify logic compile * Improve and update doc * Create SupervisedSolverInterface * Specialize SupervisedSolver and ReducedOrderModelSolver * Create EnsembleSolverInterface + EnsembleSupervisedSolver * Create tests ensemble solvers * formatter * codacy * fix issues + speedup test
* Refactoring solvers * Simplify logic compile * Improve and update doc * Create SupervisedSolverInterface * Specialize SupervisedSolver and ReducedOrderModelSolver * Create EnsembleSolverInterface + EnsembleSupervisedSolver * Create tests ensemble solvers * formatter * codacy * fix issues + speedup test
* Refactoring solvers * Simplify logic compile * Improve and update doc * Create SupervisedSolverInterface * Specialize SupervisedSolver and ReducedOrderModelSolver * Create EnsembleSolverInterface + EnsembleSupervisedSolver * Create tests ensemble solvers * formatter * codacy * fix issues + speedup test
* Refactoring solvers * Simplify logic compile * Improve and update doc * Create SupervisedSolverInterface * Specialize SupervisedSolver and ReducedOrderModelSolver * Create EnsembleSolverInterface + EnsembleSupervisedSolver * Create tests ensemble solvers * formatter * codacy * fix issues + speedup test