~ubuntu-branches/ubuntu/oneiric/weka/oneiric

« back to all changes in this revision

Viewing changes to weka/classifiers/bayes/net/search/global/HillClimber.java

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner, Soeren Sonnenburg, Torsten Werner
  • Date: 2008-08-10 21:27:05 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080810212705-tr8etpnkdx2ziktp
Tags: 3.5.8-1
[ Soeren Sonnenburg ]
* Bump Standards Version to 3.8.0.
* Remove references to non-free Java in debian/copyright.

[ Torsten Werner ]
* new upstream release
* Switch to openjdk-6.
* Move package to main.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
import weka.classifiers.bayes.net.ParentSet;
27
27
import weka.core.Instances;
28
28
import weka.core.Option;
 
29
import weka.core.RevisionHandler;
 
30
import weka.core.RevisionUtils;
29
31
import weka.core.Utils;
30
32
 
31
33
import java.io.Serializable;
67
69
 <!-- options-end -->
68
70
 * 
69
71
 * @author Remco Bouckaert (rrb@xm.co.nz)
70
 
 * @version $Revision: 1.8 $
 
72
 * @version $Revision: 1.9 $
71
73
 */
72
74
public class HillClimber 
73
75
    extends GlobalScoreSearchAlgorithm {
80
82
   * on the current Bayesian network.
81
83
   */
82
84
    class Operation 
83
 
        implements Serializable {
 
85
        implements Serializable, RevisionHandler {
84
86
      
85
87
        /** for serialization */
86
88
        static final long serialVersionUID = -2934970456587374967L;
125
127
        public int m_nOperation;
126
128
        /** change of score due to this operation **/
127
129
        public double m_fScore = -1E100;
 
130
        
 
131
        /**
 
132
         * Returns the revision string.
 
133
         * 
 
134
         * @return              the revision
 
135
         */
 
136
        public String getRevision() {
 
137
          return RevisionUtils.extract("$Revision: 1.9 $");
 
138
        }
128
139
    } // class Operation
129
140
        
130
141
    /** use the arc reversal operator **/
516
527
          return "When set to true, the arc reversal operation is used in the search.";
517
528
        } // useArcReversalTipText
518
529
 
 
530
        /**
 
531
         * Returns the revision string.
 
532
         * 
 
533
         * @return              the revision
 
534
         */
 
535
        public String getRevision() {
 
536
          return RevisionUtils.extract("$Revision: 1.9 $");
 
537
        }
519
538
} // HillClimber