Commit Graph

322 Commits

Author SHA1 Message Date
Dario Coscia
513144dfaf modify 3d plot/ adding tests 2024-02-07 11:41:37 +01:00
Dario Coscia
927dbcf91e plotter update 2024-02-07 11:41:37 +01:00
M.Couraud
1464eee891 fix : check_components_type (#227)
fixing components variable in plotter.py
2024-02-06 10:39:50 +01:00
Dario Coscia
20b2ed1890 update readme tutorial 6 (#223) 2024-01-12 12:15:12 +01:00
Nicola Demo
ea5b3e3f9e Update README.md
fix HTML tutorial links
add record for PODNN tutorial
2023-12-27 16:14:11 +01:00
Nicola Demo
eed9d7ded3 Doc and tutorial for PODLayer 2023-12-27 16:14:11 +01:00
Nicola Demo
c656317055 pod layer 2023-12-27 16:14:11 +01:00
Nicola Demo
327d1aca5b add lenght attribute for pina dataloader 2023-12-27 16:14:11 +01:00
mathayay
4639374961 fix : gpu loss plotting 2023-11-29 17:11:20 +01:00
Nicola Demo
42cf7fcaf1 temporary fix for py37 (combinedloader) (#215)
* temporary fix for py37 (combinedloader)
2023-11-22 15:30:50 +01:00
Dario Coscia
6c4664227a Update condition.py error message (#214)
* minor update in the ValueError message
2023-11-22 14:27:18 +01:00
Your Name
9e87d61349 Add sphinx_copybutton dependency 2023-11-17 16:12:05 +01:00
Dario Coscia
56bd0dac7d minor updates in garom.py
* Removing `retain_graph` in backward for discriminator
* Fixing issues with different precision training for Lightining
2023-11-17 16:08:29 +01:00
Dario Coscia
48b2e339b5 Update plotter.py
* minor update for 1d plots
2023-11-17 09:51:29 +01:00
Giovanni_Canali
9bf057e2c6 Plotter v0.1 update (#211)
* Commented a line responsible for bugs. No labels attribute in torch.Tensor object
* codacy

---------

Co-authored-by: Dario Coscia <93731561+dario-coscia@users.noreply.github.com>
2023-11-17 09:51:29 +01:00
Anna Ivagnes
0b7a307cf1 Inverse problem implementation (#177)
* inverse problem implementation

* add tutorial7 for inverse Poisson problem

* fix doc in equation, equation_interface, system_equation

---------

Co-authored-by: Dario Coscia <dariocoscia@dhcp-015.eduroam.sissa.it>
2023-11-17 09:51:29 +01:00
Dario Coscia
a9f14ac323 fix bug network 2023-11-17 09:51:29 +01:00
Dario Coscia
ee39b39805 Examples update for v0.1 (#206)
* modify examples/problems
* modify tutorials

---------

Co-authored-by: Dario Coscia <dariocoscia@dhcp-235.eduroam.sissa.it>
Co-authored-by: Dario Coscia <dariocoscia@dhcp-015.eduroam.sissa.it>
2023-11-17 09:51:29 +01:00
Dario Coscia
0d38de5afe update plotter 2023-11-17 09:51:29 +01:00
Dario Coscia
934ae409ff adding possibility to pass empty list in the solver 2023-11-17 09:51:29 +01:00
Dario Coscia
09d013e8fc adding test supervised solver 2023-11-17 09:51:29 +01:00
Dario Coscia
c90301c204 Network handles forward for all solvers 2023-11-17 09:51:29 +01:00
Dario Coscia
4844640727 fix Supervised/PINN solvers forward + fix tut5 2023-11-17 09:51:29 +01:00
Dario Coscia
4977d55507 Update README.md 2023-11-17 09:51:29 +01:00
Dario Coscia
8b7b61b3bd Documentation for v0.1 version (#199)
* Adding Equations, solving typos
* improve _code.rst
* the team rst and restuctore index.rst
* fixing errors

---------

Co-authored-by: Dario Coscia <dariocoscia@dhcp-015.eduroam.sissa.it>
2023-11-17 09:51:29 +01:00
Dario Coscia
3f9305d475 Solvers logging (#202)
* Modifying solvers to log every epoch correctly
* add `on_epoch` flag to logger
* fix bug in `pinn.py` `pts -> samples` in `_loss_phys`
* add `optimizer_zero_grad()` in garom generator training loop
* modify imports in `callbacks.py`
* fixing tests

---------

Co-authored-by: Dario Coscia <dariocoscia@dhcp-015.eduroam.sissa.it>
2023-11-17 09:51:29 +01:00
Nicola Demo
d654259428 add dataset and dataloader for sample points (#195)
* add dataset and dataloader for sample points
* unittests
2023-11-17 09:51:29 +01:00
Dario Coscia
cd5bc9a558 Label Tensor update (#188)
* Update test_label_tensor.py
* adding test

---------

Co-authored-by: Dario Coscia <dariocoscia@Dario-Coscia.local>
2023-11-17 09:51:29 +01:00
Dario Coscia
d556c592e0 modify tutorials for plotter compatibility 2023-11-17 09:51:29 +01:00
Dario Coscia
5336f36f08 update plot_samples, plot methods 2023-11-17 09:51:29 +01:00
Dario Coscia
8cb4df13f0 plot_loss update 2023-11-17 09:51:29 +01:00
Dario Coscia
ead952da6f solving dimensions issue 2023-11-17 09:51:29 +01:00
Nicola Demo
7424ce15bd Revert "Added 'sample_surface' parameter to CartesianDomain (#190)"
This reverts commit a2ea9ff5ec564b54bc73b5200712661c2e5dcbf6.
2023-11-17 09:51:29 +01:00
Nicola Demo
8480fd1b2e Update meta.py 2023-11-17 09:51:29 +01:00
Ben Volokh
da38b6456a Added 'sample_surface' parameter to CartesianDomain (#190)
* Added 'sample_surface' parameter to CartesianDomain
* Changed comments from 'Span' to 'CartesianDomain'
2023-11-17 09:51:29 +01:00
Dario Coscia
dab5595ee6 Fix typo docs 2023-11-17 09:51:29 +01:00
Nicola Demo
0c8072274e Tutorials and Doc (#191)
* Tutorial doc update
* update doc tutorial
* doc not compiling

---------

Co-authored-by: Dario Coscia <dcoscia@euclide.maths.sissa.it>
Co-authored-by: Dario Coscia <dariocoscia@Dario-Coscia.local>
2023-11-17 09:51:29 +01:00
Nicola Demo
ac829aece9 Geometries tutorial (#187)
Co-authored-by: Kush <54781152+SpartaKushK@users.noreply.github.com>
2023-11-17 09:51:29 +01:00
Nicola Demo
32ff5de1f4 tutorial validation (#185)
Co-authored-by: Ben Volokh <89551265+benv123@users.noreply.github.com>
2023-11-17 09:51:29 +01:00
Dario Coscia
2e2fe93458 GAROM solver loss update
Changing from `LpLoss` to `PowerLoss`
2023-11-17 09:51:29 +01:00
Dario Coscia
80b4b43460 GAROM loggers (#181)
* adding loggers for GAROM solver

---------

Co-authored-by: Dario Coscia <dariocoscia@Dario-Coscia.local>
2023-11-17 09:51:29 +01:00
Dario Coscia
cc3332b519 Loss Fixing #182 (#184)
* fix doc loss + adding PowerLoss
* adding loss tests folder

---------

Co-authored-by: Dario Coscia <dariocoscia@Dario-Coscia.local>
2023-11-17 09:51:29 +01:00
Dario Coscia
4850b0045d Solving #179 Simplex Domain Bug (#180)
* simplex bug solved
---------

Co-authored-by: Dario Coscia <dariocoscia@dhcp-235.eduroam.sissa.it>
2023-11-17 09:51:29 +01:00
Dario Coscia
a9b1bd2826 Tutorials v0.1 (#178)
Tutorial update and small fixes

* Tutorials update + Tutorial FNO
* Create a metric tracker callback
* Update PINN for logging
* Update plotter for plotting
* Small fix LabelTensor
* Small fix FNO

---------

Co-authored-by: Dario Coscia <dariocoscia@cli-10-110-13-250.WIFIeduroamSTUD.units.it>
Co-authored-by: Dario Coscia <dariocoscia@dhcp-176.eduroam.sissa.it>
2023-11-17 09:51:29 +01:00
Dario Coscia
939353f517 adding trainer solver property decorator 2023-11-17 09:51:29 +01:00
Dario Coscia
1936133ad5 minor fix 2023-11-17 09:51:29 +01:00
Dario Coscia
4d1187898f Adaptive Refinment and Multiple Optimizer callbacks
* Implementing a callback to switch between optimizers during training
* Implementing the R3Refinment for collocation points
* Modify trainer -> dataloader is created or updated by calling `_create_or_update_loader`
* Adding `add_points` routine to AbstractProblem so that new points can be added without resampling from scratch
2023-11-17 09:51:29 +01:00
Dario Coscia
5a4c114d48 variable name fix FeedForward model 2023-11-17 09:51:29 +01:00
Dario Coscia
17464ceca9 New Residual Model and Fix relative import
* Adding Residual MLP
* Adding test Residual MLP
* Modified relative import Continuous Conv
2023-11-17 09:51:29 +01:00
Dario Coscia
ba7371f350 MIONet addition and DeepONet modification.
* Create MIONet base class
* DeepONet inherits from MIONet
2023-11-17 09:51:29 +01:00