Mercurial > ift6266
comparison baseline/log_reg/log_reg.py @ 632:5541056d3fb0
merge
author | Yoshua Bengio <bengioy@iro.umontreal.ca> |
---|---|
date | Sat, 19 Mar 2011 22:49:33 -0400 |
parents | a92ec9939e4f |
children |
comparison
equal
deleted
inserted
replaced
596:f6a3b28b002c | 632:5541056d3fb0 |
---|---|
304 | 304 |
305 | 305 |
306 def jobman_log_reg(state, channel): | 306 def jobman_log_reg(state, channel): |
307 print state | 307 print state |
308 (validation_error, test_error, nb_exemples, time) = log_reg( learning_rate = state.learning_rate, \ | 308 (validation_error, test_error, nb_exemples, time) = log_reg( learning_rate = state.learning_rate, \ |
309 nb_max_examples = state.nb_max_examples, \ | 309 nb_max_examples = state.nb_max_examples, \ |
310 batch_size = state.batch_size,\ | 310 dataset=eval(state.dataset), \ |
311 image_size = state.image_size, \ | 311 batch_size = state.batch_size,\ |
312 nb_class = state.nb_class, \ | 312 image_size = state.image_size, \ |
313 patience = state.patience, \ | 313 nb_class = state.nb_class, \ |
314 patience_increase = state.patience_increase, \ | 314 patience = state.patience, \ |
315 improvement_threshold = state.improvement_threshold ) | 315 patience_increase = state.patience_increase, \ |
316 improvement_threshold = state.improvement_threshold ) | |
316 | 317 |
317 | 318 |
318 print state | 319 print state |
319 state.validation_error = validation_error | 320 state.validation_error = validation_error |
320 state.test_error = test_error | 321 state.test_error = test_error |