Commit Graph

122 Commits

Author SHA1 Message Date
Nicola Demo
84775849d1 fix tests 2025-03-19 17:46:35 +01:00
FilippoOlivo
6964f4e7d9 Rename classes and modules for GNO 2025-03-19 17:46:35 +01:00
FilippoOlivo
bd24b0c1c2 Refactor GNO model and enhance Graph class documentation and error handling. Remove TemporalGraph class 2025-03-19 17:46:35 +01:00
FilippoOlivo
bbdd5d4bf1 Refactor Graph class to support custom edge attribute logic 2025-03-19 17:46:35 +01:00
FilippoOlivo
78b276d995 Add TemporalGraph class 2025-03-19 17:46:35 +01:00
FilippoOlivo
54a62dee26 Bug fix in GNO and implementation of tests 2025-03-19 17:46:35 +01:00
FilippoOlivo
e63c3d9061 Add Graph class and tests for Graph and Collector + Dataloader refactoring 2025-03-19 17:46:34 +01:00
FilippoOlivo
629a6ee43b Additional improvement related to #395 2025-03-19 17:46:34 +01:00
Nicola Demo
afb1bca245 temporary comment tests 2025-03-19 17:46:34 +01:00
Nicola Demo
a899327de1 fix tests 2025-03-19 17:46:34 +01:00
FilippoOlivo
7706ef12c3 Simplify LabelTensor class, fix #395, add docstrings, and resolve Python 3.8 compatibility issue in tests 2025-03-19 17:46:34 +01:00
giovanni
d51de028bd update test laplacian 2025-03-19 17:46:34 +01:00
Nicola Demo
f2340cd4ee fix some tests 2025-03-19 17:46:34 +01:00
Filippo Olivo
a27bd35443 Implementation of DataLoader and DataModule (#383)
Refactoring for 0.2
* Data module, data loader and dataset
* Refactor LabelTensor
* Refactor solvers

Co-authored-by: dario-coscia <dariocos99@gmail.com>
2025-03-19 17:46:34 +01:00
FilippoOlivo
dd43c8304c Codacy correction 2025-03-19 17:46:34 +01:00
FilippoOlivo
ea3d1924e7 Improve efficiency and refact LabelTensor, codacy correction and fix bug in PinaBatch 2025-03-19 17:46:34 +01:00
FilippoOlivo
ccc5f5a322 Add Graph support in Dataset and Dataloader 2025-03-19 17:46:34 +01:00
FilippoOlivo
1bc1b3a580 Correct codacy warnings 2025-03-19 17:46:33 +01:00
FilippoOlivo
c9304fb9bb Implement Dataset, Dataloader and DataModule class and fix SupervisedSolver 2025-03-19 17:46:33 +01:00
Dario Coscia
b9753c34b2 minor changes/ trainer update 2025-03-19 17:46:33 +01:00
Filippo Olivo
7528f6ef74 Update of LabelTensor class and fix Simplex domain (#362)
*Implement new methods in LabelTensor and fix operators
2025-03-19 17:46:33 +01:00
Dario Coscia
fdb8f65143 Filippo0.2 (#361)
* Add summation and remove deepcopy (only for tensors) in LabelTensor class
* Update operators for compatibility with updated LabelTensor implementation
* Implement labels.setter in LabelTensor class
* Update LabelTensor

---------

Co-authored-by: FilippoOlivo <filippo@filippoolivo.com>
2025-03-19 17:46:33 +01:00
Dario Coscia
1bd3f40f54 * Adding Collector for handling data sampling/collection before dataset/dataloader
* Modify domain by adding sample_mode, variables as property
* Small change concatenate -> cat in lno/avno
* Create different factory classes for conditions
2025-03-19 17:46:33 +01:00
FilippoOlivo
a888141707 Add concatenation test for LabelTensor 2025-03-19 17:46:33 +01:00
FilippoOlivo
c53c3d5b84 Implement definition of LabelTensor from list, implement cat method (previously stack) and re-implement extract 2025-03-19 17:46:33 +01:00
FilippoOlivo
2be57944ba Fix SupervisedSolver GPU bug and implement GraphSolver (#346)
* Fix some bugs
* Solve bug with GPU and model_summary parameters in SupervisedSolver class
* Implement GraphSolver class
* Fix Tutorial 5
2025-03-19 17:46:33 +01:00
FilippoOlivo
30f865d912 Fix bugs in 0.2 (#344)
* Fix some bugs
2025-03-19 17:46:33 +01:00
Nicola Demo
f0d68b34c7 refact 2025-03-19 17:46:33 +01:00
Nicola Demo
9d9c2aa23e supervised working 2025-03-19 17:46:33 +01:00
Nicola Demo
5245a0b68c refact 2025-03-19 17:46:33 +01:00
Nicola Demo
b7d512e8bf optimizer and scheduler classes 2025-03-19 17:46:33 +01:00
Nicola Demo
2b71e0148d in progress 2025-03-19 17:46:33 +01:00
Anna Ivagnes
c28a4bd2b9 Change SVD type in pod.py (#449)
* Change SVD type in pod.py
2025-02-14 19:13:09 +01:00
Giovanni Canali
5e36d1b618 Additional tests for operators (#384)
* Adding tests for operators
2024-11-25 17:16:17 +01:00
Giovanni Canali
a78f44ecef Fixing Laplacian operator for vector fields (#380)
* fix laplacian and tests
2024-11-18 17:25:34 +01:00
Anna Ivagnes
5d2ca62e65 add multiple outputs possibility in DeepONet 2024-10-10 18:36:47 +02:00
Nicola Demo
4c5cb8f681 add spline model (#321)
* add spline model
* add tests for splines
* rst files for splines

---------

Co-authored-by: AleDinve <giuseppealessio.d@student.unisi.it>
Co-authored-by: dario-coscia <dariocos99@gmail.com>
2024-09-27 10:05:18 +02:00
Dario Coscia
eea0cc0833 Backpropagation and fix test for OrthogonalBlock
Co-authored-by: Dario Coscia <dariocos99@gmail.com>
    Co-authored-by: Gabriele Codega <gcodega@pascal.maths.sissa.it>
2024-09-03 16:51:10 +02:00
Anna Ivagnes
62d50e2455 add OrthogonalBlock to make input orthonormal 2024-08-26 10:48:59 +02:00
dario-coscia
cce9876751 * Fixing mean tracked loss
* Adding a PINA progress bar
2024-08-12 14:48:09 +02:00
dario-coscia
0fa4e1e58a * Adding a test for all PINN solvers to assert that the metrics are correctly log
* Adding test for Metric Tracker
* Modify Metric Tracker to correctly log metrics
2024-08-12 14:48:09 +02:00
Anna Ivagnes
d4ced3a7d7 Add layer to perform RBF interpolation in reduced order modeling (#315)
* add RBF implementation in pytorch (in layers)
* add POD-RBF example (baseline for nonintrusive closure)
* Add POD only and POD+RBF implementation
* add POD-RBF in tutorial 8
2024-08-12 14:46:22 +02:00
luAndre00
16261c9baf Change default reduction in SystemEquation (#317)
* Update system_equation.py
* Update test_systemequation.py
2024-08-01 17:47:51 +02:00
Gabriele Codega
c7973a97da Fix bug in add_points method
* solving `add_points`

---------

Co-authored-by: Gabriele Codega <gcodega@pascal.maths.sissa.it>
2024-06-20 12:57:46 +02:00
Giovanni_Canali
35fd119a37 added rba-pinn (#308)
* added rba-pinn
* changes to loss logger
* tests
* doc

---------

Co-authored-by: Monthly Tag bot <mtbot@noreply.github.com>
Co-authored-by: Nicola Demo <demo.nicola@gmail.com>
2024-06-18 16:17:04 +02:00
Monthly Tag bot
4b64998f45 fix embedding by removing linear layer 2024-06-11 12:31:02 +01:00
Monthly Tag bot
5785b2732c * Fourier feature embedding added, and modify typos in doc Periodic Boundary Embedding.
* Fixing doc for Periodic Boundary Embedding.
* Creating doc for Fourier Feature Embedding.
2024-06-11 12:31:02 +01:00
Michele Alessi
5f89968805 adaptive refinement callback (#299)
Fixed problem of non-constant number of points
2024-05-21 09:51:13 +02:00
Dario Coscia
a72ce67873 fixing bug (#300)
Co-authored-by: Monthly Tag bot <mtbot@noreply.github.com>
2024-05-20 17:45:44 +02:00
Dario Coscia
e0429bb445 PINN variants addition and Solvers Update (#263)
* gpinn/basepinn new classes, pinn restructure
* codacy fix gpinn/basepinn/pinn
* inverse problem fix
* Causal PINN (#267)
* fix GPU training in inverse problem (#283)
* Create a `compute_residual` attribute for `PINNInterface`
* Modify dataloading in solvers (#286)
* Modify PINNInterface by removing _loss_phys, _loss_data
* Adding in PINNInterface a variable to track the current condition during training
* Modify GPINN,PINN,CausalPINN to match changes in PINNInterface
* Competitive Pinn Addition (#288)
* fixing after rebase/ fix loss
* fixing final issues

---------

Co-authored-by: Dario Coscia <dariocoscia@Dario-Coscia.local>

* Modify min max formulation to max min for paper consistency
* Adding SAPINN solver (#291)
* rom solver
* fix import

---------

Co-authored-by: Dario Coscia <dariocoscia@Dario-Coscia.local>
Co-authored-by: Anna Ivagnes <75523024+annaivagnes@users.noreply.github.com>
Co-authored-by: valc89 <103250118+valc89@users.noreply.github.com>
Co-authored-by: Monthly Tag bot <mtbot@noreply.github.com>
Co-authored-by: Nicola Demo <demo.nicola@gmail.com>
2024-05-10 14:07:01 +02:00