~ubuntu-branches/ubuntu/vivid/weka/vivid

« back to all changes in this revision

Viewing changes to src/main/java/weka/classifiers/misc/SerializedClassifier.java

  • Committer: Package Import Robot
  • Author(s): tony mancill
  • Date: 2011-11-24 12:35:17 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20111124123517-kn23dn5u8pi4liq0
Tags: 3.6.6-1
* Team upload.
* New upstream version (Closes: #649734)
* Update rules and build-deps for default-jdk and default-jre.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
 <!-- options-end -->
58
58
 *
59
59
 * @author  fracpete (fracpete at waikato dot ac dot nz)
60
 
 * @version $Revision: 5528 $
 
60
 * @version $Revision: 7560 $
61
61
 */
62
62
public class SerializedClassifier
63
63
  extends Classifier {
242
242
    Capabilities        result;
243
243
 
244
244
    // init model if necessary
245
 
    try {
246
 
      initModel();
247
 
    }
248
 
    catch (Exception e) {
249
 
      System.err.println(e);
 
245
    if (m_ModelFile != null && m_ModelFile.exists() && m_ModelFile.isFile()) {
 
246
      try {
 
247
        initModel();
 
248
      }
 
249
      catch (Exception e) {
 
250
        System.err.println(e);
 
251
      }
250
252
    }
251
253
 
252
254
    if (m_Model != null) {
326
328
   * @return            the revision
327
329
   */
328
330
  public String getRevision() {
329
 
    return RevisionUtils.extract("$Revision: 5528 $");
 
331
    return RevisionUtils.extract("$Revision: 7560 $");
330
332
  }
331
333
  
332
334
  /**