Skip to content
New issue

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

How to use this optimizer in non linear regression NN ? #4

Open
automataIA opened this issue Jan 29, 2020 · 0 comments
Open

How to use this optimizer in non linear regression NN ? #4

automataIA opened this issue Jan 29, 2020 · 0 comments

Comments

@automataIA
Copy link

Hi.
I have this NN model :

N, D_in, H, D_out = X.shape[0], X.shape[1], inh , Y.shape[1] ;
  model = nn.Sequential(OrderedDict([ ('fc1', nn.Linear(D_in, H)),
                                      ('Tanh', nn.Tanh()),
                                      ('fc2', nn.Linear(H, D_out))]))
loss_fn = torch.nn.MSELoss(reduction='mean') 
optimizer = *****

How set optimizer, in this case, and the train(and validation) loop ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant