Menu

save a modell

Help
2012-08-12
2012-09-14
  • Nobody/Anonymous

    hi every one

    how can save a model ofter learn and then when you want predict class of
    instance with model not need to learn again!!

    please help me,thanks

     
  • Mike Gashler

    Mike Gashler - 2012-08-13

    All of our learning algorithms inherit from the GSupervisedLearner class. (See
    http://waffles.sourceforge.net/apidoc/html/class_g_classes_1_1_g_supervised_l
    earner.html)
    They all implement the "serialize" method, which
    will marshall the trained model into a DOM. You can save the DOM to a file.
    You can then load the DOM from a file, and use the GLearnerLoader class to
    deserialize it back to the trained model.

    There are also some command-line examples in our documentation.

     

Anonymous
Anonymous

Add attachments
Cancel