源代码id3java的简单介绍( 九 )


* Double, String, with missing values represented as null. The generated
* code is public domain and comes with no warranty. br/
* Note: works only if class attribute is the last attribute in the dataset.
*
* @param className the name that should be given to the source class.
* @return the object source described by a string
* @throws Exception if the source can't be computed
*/
public String toSource(String className) throws Exception {
StringBufferresult;
intid;
result = new StringBuffer();
result.append("class " + className + " {\n");
result.append("private static void checkMissing(Object[] i, int index) {\n");
result.append("if (i[index] == null)\n");
result.append("throw new IllegalArgumentException(\"Null values "
+ "are not allowed!\");\n");
result.append("}\n\n");
result.append("public static double classify(Object[] i) {\n");
id = 0;
result.append("return node" + id + "(i);\n");
result.append("}\n");
toSource(id, result);
result.append("}\n");
return result.toString();
}
/**
* Returns the revision string.
*
* @returnthe revision
*/
public String getRevision() {
return RevisionUtils.extract("$Revision: 6404 $");
}
/**
* Main method.
*
* @param args the options for the classifier
*/
public static void main(String[] args) {
runClassifier(new Id3(), args);
}
}
无法删除数据库里的记录,character varying是对应java里的String类型的吗?删除teacher表里面源代码id3java的teacherID为'id3',是否teacherID为'id3'在其它的表里面也出现了源代码id3java,是否执行语句后处于不一致状态,这就是事务的概念了 。
数据库没有任何改变String sql="DELETEFROM teacher WHERE teacheID='id3'";
其中teacheID 应为teacherID吧
源代码id3java的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于、源代码id3java的信息别忘了在本站进行查找喔 。

推荐阅读