expansion
This commit is contained in:
parent
24c2d546db
commit
c07ec8f8cf
6 changed files with 138 additions and 1 deletions
17
sCOCA_ML/prepare_data/prepare_gravpot_data.py
Normal file
17
sCOCA_ML/prepare_data/prepare_gravpot_data.py
Normal 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
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue