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

Extract Iteration from log instead of computing it from parameters #90

Merged
merged 3 commits into from
Feb 10, 2014

Conversation

sguada
Copy link
Contributor

@sguada sguada commented Feb 9, 2014

Removed parameters [init_iter=0] [test_interval=1000]
Not needed anymore, now it extracts that info from the log

@chyojn
Copy link
Contributor

chyojn commented Feb 10, 2014

Why not just print the iter_ in Solver::Test()?

for (int i = 0; i < test_score.size(); ++i) {
LOG(INFO) << "Iteration " << iter_ << ", Test score #" << i << ": "
<< test_score[i] / param_.test_iter();
}

@kloudkl
Copy link
Contributor

kloudkl commented Feb 10, 2014

grep -B 2 'Test ' $1 > aux.txt

The above line extracts the test iteration.

I0210 13:39:42.325938 25210 solver.cpp:66] Iteration 1000, loss = 0.0115192
I0210 13:39:42.325948 25210 solver.cpp:84] Testing net
I0210 13:39:43.592906 25210 solver.cpp:111] Test score #0: 0.979
I0210 13:39:43.592941 25210 solver.cpp:111] Test score #1: 0.0627389

@kloudkl
Copy link
Contributor

kloudkl commented Feb 10, 2014

@chyojn, you are right! Test iteration might not be equal to the printed training iteration. I'll fix it.

shelhamer added a commit that referenced this pull request Feb 10, 2014
Polish log parsing script
@shelhamer shelhamer merged commit ad08dd1 into BVLC:master Feb 10, 2014
@shelhamer
Copy link
Member

Continued in #91 .

@sguada sguada deleted the parselog branch March 7, 2014 17:59
mitmul pushed a commit to mitmul/caffe that referenced this pull request Sep 30, 2014
lukeyeager pushed a commit to lukeyeager/caffe that referenced this pull request Jan 18, 2016
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

Successfully merging this pull request may close these issues.

4 participants