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
Dario Coscia
603f56d264
Neural Operator fix and addition
...
* Building FNO for 1D/2D/3D data
* Fixing bug in trunk/branch net in DeepONEt
* Fixing type check bug in spectral conv
* Adding tests for FNO
* Fixing bug in Fourier Layer (conv1d/2d/3d)
2023-11-17 09:51:29 +01:00
Dario Coscia
83ecdb0eab
Fourier Block and minor fixes
...
* Adding fourier block 1d/2d/3d
* Adding docs to SpectralConvBlock1D/2D/3D and to FourierBlock1D/2D/3D
* Adding tests for fourier block
2023-11-17 09:51:29 +01:00
Dario Coscia
2bf42d5fea
rm logs
2023-11-17 09:51:29 +01:00
Dario Coscia
b7f9694cb9
Spectral Convolution Addition
...
* Implementing 1D/2D/3D spectral conv
* Implementing tests for 1D/2D/3d spectral conv
2023-11-17 09:51:29 +01:00
Dario Coscia
190ee0561d
minor fixes deeponet, remove LabelTensor import
2023-11-17 09:51:29 +01:00
Dario Coscia
3a7fc63760
doc string update multifeedforward
2023-11-17 09:51:29 +01:00
Dario Coscia
b029f18c49
DeepOnet implementation, LabelTensor modification
...
* Implementing standard DeepOnet (trunk/branch net)
* Implementing multiple reduction/ average techniques
* Small change LabelTensor __getitem__ for handling list
2023-11-17 09:51:29 +01:00
Dario Coscia
15ecaacb7c
Layers and Models update PR
...
* add residual block
* add test conv and residual block
* modify FFN kwargs
2023-11-17 09:51:29 +01:00
Nicola Demo
8c16e27ae4
Update test_pinn.py
2023-11-17 09:51:29 +01:00
Nicola Demo
e84def3bf9
Trainer train simplified, tests for load ( #168 )
...
- the arguments of Trainer.train now are passed to the fit
- unittest for load/restoring from checkpoint
2023-11-17 09:51:29 +01:00
SpartaKushK
de0c3fca82
span -> CartesianDomain
2023-11-17 09:51:29 +01:00
SpartaKushK
625a77c0d5
Codacy Small Bug Fixes:
...
- cleaned up imports
- cleaned up some code
- added docstrings
2023-11-17 09:51:29 +01:00
Nicola Demo
bd88e24174
fix slicing for LabelTensor ( #167 )
...
* fix slicing for LabelTensor
* Update testing_pr.yml for solving python3.1 error
2023-11-17 09:51:29 +01:00
Nicola Demo
ba0b9760ac
Update setup.py
2023-11-17 09:51:29 +01:00
Pasquale Africa
6c627c70e3
Rename nabla -> laplacian
2023-11-17 09:51:29 +01:00
Dario Coscia
92e0e4920b
CPU/GPU/TPU training ( #159 )
...
* device training
---------
Co-authored-by: Dario Coscia <dcoscia@lovelace.maths.sissa.it >
Co-authored-by: Dario Coscia <dariocoscia@Dario-Coscia.local >
2023-11-17 09:51:29 +01:00
Ben Volokh
38ecebd44b
Simplex Domain ( #152 )
...
* add Simplex Domain
* unittests for Simplex
* docs update
---------
Co-authored-by: Dario Coscia <93731561+dario-coscia@users.noreply.github.com >
2023-11-17 09:51:29 +01:00
Dario Coscia
955f904b05
simple logger
2023-11-17 09:51:29 +01:00
Kush
0ea17d8ff4
Operation docs update ( #154 )
...
* Operation Interface Enhancement + Clarification
- added set notation to all the geometry operations
- added a warning to say sample_surface=True doesn't work
* minor fix docs
* fix operation_interface.py doc
---------
Co-authored-by: Dario Coscia <dariocoscia@Dario-Coscia.local >
Co-authored-by: Dario Coscia <93731561+dario-coscia@users.noreply.github.com >
2023-11-17 09:51:29 +01:00
Kush
2d0256a179
Geometry Operations Enhancement ( #122 )
...
* updating exclusion domain
- update sample/ is_inside
- create tests
* difference fixes
- random iteration list for sample
* created Intersection
* created a Difference domain
* unittest
* docstrings and minor fixes
* Refacotring Geometries
- added OperationInterface
- redid test cases
- edited Union, Intersect, Exclusion, and Difference
to inherit from OperationInterface
- simplified Union, Intersect, Exclusion, and Difference
* rm lighting logs
---------
Co-authored-by: Dario Coscia <dariocoscia@cli-10-110-16-239.WIFIeduroamSTUD.units.it >
2023-11-17 09:51:29 +01:00
Dario Coscia
44cf800491
add callable function as reduction
2023-11-17 09:51:29 +01:00
Dario Coscia
c4df59ebcd
fix init file
2023-11-17 09:51:29 +01:00
Dario Coscia
b9ddea827b
Enhancing Equations
...
- add init file
- add docs
- fixing bug System of equation, replace torch.stack with torch.hstack
- add tests
2023-11-17 09:51:29 +01:00