source: tags/MetisMQIDemo/src/main/java/weka/classifiers/bayes/net/search/local/Scoreable.java

Last change on this file was 29, checked in by gnappo, 15 years ago

Taggata versione per la demo e aggiunto branch.

File size: 1.3 KB
Line 
1/*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
15 */
16
17/*
18 * Scoreable.java
19 * Copyright (C) 2001 University of Waikato, Hamilton, New Zealand
20 *
21 */
22package weka.classifiers.bayes.net.search.local;
23
24/**
25 * Interface for allowing to score a classifier
26 *
27 * @author Remco Bouckaert (rrb@xm.co.nz)
28 * @version $Revision: 1.4 $
29 */
30public interface Scoreable {
31
32  /**
33   * score types
34   */
35  int BAYES = 0;
36  int BDeu = 1;
37  int MDL = 2;
38  int ENTROPY = 3;
39  int AIC = 4;
40
41  /**
42   * Returns log-score
43   *
44   * @param nType the score type
45   * @return the log-score
46   */
47  double logScore(int nType, int nCardinality);
48}    // interface Scoreable
49
50
51
52
Note: See TracBrowser for help on using the repository browser.