We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I am trying to implement neuralSDE using torchdyn, my code is:
# drift_func f = nn.Sequential(...) # diffusion function g = nn.Sequential(...) self.func = NeuralSDE(f, g, solver=args.solver, rtol=args.rtol, atol=args.atol)
But I got this error:
TypeError: __init__() got an unexpected keyword argument 'func'
I checked the source code and it seems that the initialisation of the model class is different from what input it takes.
class NeuralSDE(SDEProblem, pl.LightningModule): def __init__(self, drift_func, diffusion_func, noise_type ='diagonal', sde_type = 'ito', order=1, sensitivity='autograd', s_span=torch.linspace(0, 1, 2), solver='srk', atol=1e-4, rtol=1e-4, ds = 1e-3, intloss=None): super().__init__(func=SDEFunc(f=drift_func, g=diffusion_func, order=order), order=order, sensitivity=sensitivity, s_span=s_span, solver=solver, atol=atol, rtol=rtol)
What should be given to the model as the input or is there a bug that remains to fix?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Got the same! Has it been resolved? Curious about the solution to this!
Sorry, something went wrong.
looks like SDEProblem is not implemented yet:
class SDEProblem(nn.Module): def __init__(self): "Extension of `ODEProblem` to SDE" super().__init__() raise NotImplementedError("Hopefully soon...")
No branches or pull requests
Hi, I am trying to implement neuralSDE using torchdyn, my code is:
But I got this error:
I checked the source code and it seems that the initialisation of the model class is different from what input it takes.
What should be given to the model as the input or is there a bug that remains to fix?
Thanks in advance!
The text was updated successfully, but these errors were encountered: