Skip to content

Commit 182dda8

Browse files
committed
Small bug important bug in data generation.
1 parent 80371ef commit 182dda8

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎NewtonHeat/Results/model_adam.pth‎

0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

‎NewtonHeat/dataset.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ def __init__(self, N : int,
2222
self.T_inf = pt.empty((N,1), device=device, dtype=dtype).uniform_( -T_max, T_max, generator=gen )
2323

2424
# Also sample the time-points
25-
tau = pt.rand(N, 1, device=device, dtype=dtype, generator=gen) * tau_max
26-
self.t = pt.exp( self.logk ) * tau
25+
tau = tau_max * pt.rand(N, 1, device=device, dtype=dtype, generator=gen)
26+
self.t = tau / pt.exp( self.logk )
2727

2828
def __len__( self ):
2929
return len( self.logk )

0 commit comments

Comments
 (0)