expansion

This commit is contained in:
Mayeul Aubin 2025-06-06 13:52:17 +02:00
parent 24c2d546db
commit c07ec8f8cf
6 changed files with 138 additions and 1 deletions

View file

@ -0,0 +1,17 @@
def prepare_data(batch):
phi_ini = batch['input'][:, [1]]
D1 = batch['style'][:, [0]]
D2 = batch['style'][:, [1]]
gravpot = batch['target'][:, [0]]
_input = batch['input']
_target = (gravpot/D1 - phi_ini)/D1
_style = batch['style']
return {
'input': _input,
'target': _target,
'style': _style
}