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

Newton method without LM (Python) #13

Open
monkey1208 opened this issue May 31, 2020 · 2 comments
Open

Newton method without LM (Python) #13

monkey1208 opened this issue May 31, 2020 · 2 comments

Comments

@monkey1208
Copy link

monkey1208 commented May 31, 2020

Does any one encounter the problem that when using newton method without LM(--lambda 0) causes the line search routine endless? The if condition to break the while loop at Line 417 won't be satisfied(a positive float will never be less than or equal to a negative float).

Or is there some mistakes in my training parameters below?
(The seed does not matter.)

python3 train.py --optim NewtonCG \
        --net CNN_4layers \
        --bsize 1024 \
        --train_set ./data/mnist-5000.mat \
        --val_set ./data/mnist/mnist.t.mat \
        --dim 28 28 1 \
        --seed 1209 \
        --GNsize 500 \
        --iter_max 100 \
        --lambda 0 \
@cjlin1
Copy link
Owner

cjlin1 commented May 31, 2020 via email

@monkey1208
Copy link
Author

The matlab code works.

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

2 participants