testaddhypo.java
来自「机器学习算法中的CHC算法」· Java 代码 · 共 28 行
JAVA
28 行
package chc;public class TestAddHypo { private static int[][] dat = { {0, 0, 0, 0, 0}, {0, 0, 1, 1, 0}, {1, 1, 1, 1, 1} }; private static Hypothesis one; private static Hypothesis two; private static Hypothesis three; public static void main (String[] args) { one = new Hypothesis(0, dat[0]); two = new Hypothesis(0, dat[1]); three = new Hypothesis(0, dat[2]); Hypothesis[] temphypo = new Hypothesis[4]; temphypo[0] = one; temphypo[1] = two; temphypo = CHC.addHypo(temphypo, three, 10); temphypo = CHC.cleanHypo(temphypo); System.out.println(Population.getHypothesisString(temphypo, 0)); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?