How to Save trained lenet5 model?

Anonymous
2009-12-23
2012-11-08

  • Anonymous
    2009-12-23

    Hello, I've trained a Lenet5 model using the demo code and was wondering if it
    was possible to save this supervised-gradient "thetrainer" to a file so that
    it can be read in the future and used to classify test data? Thank you.

     
  • Yann LeCun
    Yann LeCun
    2009-12-24

    You have two ways:

    1. do (==> theparam save "somefile"), which you can later reload with (==>
    theparam load "somefile").

    2.do (writing "somefile" (bwrite thetrainer)), which saves the entire
    thetrainer object.

    • Yann