⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 crossval.html

📁 bayes network classifier toolbox 贝叶斯网络分类器工具箱的bin文件
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.5.0-beta2) on Tue Jun 22 21:55:02 EDT 2004 --><TITLE>CrossVal (jBNC - Bayesian Network Classifiers Toolbox API)</TITLE><META NAME="keywords" CONTENT="jbnc.CrossVal class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){    parent.document.title="CrossVal (jBNC - Bayesian Network Classifiers Toolbox API)";}</SCRIPT><NOSCRIPT></NOSCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>jBNC Toolbox</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../jbnc/Classifier.html" title="class in jbnc"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../jbnc/DatasetInfo.html" title="class in jbnc"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../index.html?jbnc/CrossVal.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="CrossVal.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_jbnc.Classifier">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">jbnc</FONT><BR>Class CrossVal</H2><PRE>java.lang.Object  <IMG SRC="../resources/inherit.gif" ALT="extended by "><A HREF="../jbnc/Classifier.html" title="class in jbnc">jbnc.Classifier</A>      <IMG SRC="../resources/inherit.gif" ALT="extended by "><B>jbnc.CrossVal</B></PRE><HR><DL><DT><PRE>public class <B>CrossVal</B><DT>extends <A HREF="../jbnc/Classifier.html" title="class in jbnc">Classifier</A></DL></PRE><P>Cross validation classifier tester. Assumes that cross validation files are  already generated an attempts to read them using given file stem. The file  name format is: "stem-repetition-fold". For instance for stem "monk" the  file names could be "monk-0-0.*", "monk-0-1.*", etc. <pre> USAGE: CrossVal {options} where:  -a {algor_name} Algorithm choices: "naive", "TAN", "FAN", "STAN", "STAND".  -c {class_name} Name of the class variable. The default value is 'class'.  -d              Print debugging information.  -f {file_stem}  Load test data in C4.5 format (.names + .test),                   file_stem-?-?.names - file with specification of attributes,                   file_stem-?-?.data  - file with train cases.                   file_stem-?-?.test  - file with test cases.  -n {file_name}  Save constructed naive-Bayes networks to file_name-?-?.bif.                  File is saved in BIF 0.15 format.  -q {q_measure}  Select quality mesure. This relevant for the inducers that                  perform selection of network candidates, like FAN or STAN.                  Diffrent measure have drasticaly diffrent computational                  complexity.                  Quality measures choices:                   LC     - local criterion: log p(c_l|D) [local]                   SB     - standard Bayesian measure with penalty for size                            [global].                   HGS    - Heckerman-Geiger-Chickering measure [global].                   LOO    - leave-one-out cross validation [local].                   CV10   - ten fold cross validation.[local].                   CV1010 - ten fold cross validation averaged ten times                            [local].  -s              Number of smoothing priors to test. Has to be an integer                  greater or equal zero.  -t              Print execution time. EXAMPLE: CrossVal -a TAN -tf monk1 EXAMPLE: CrossVal -dta FAN -q LOO -f monk1</pre><P><P><DL><DT><B>Since:</B></DT>  <DD>June 1, 1999</DD><DT><B>Author:</B></DT>  <DD>Jarek Sacha</DD></DL><HR><P><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Field Summary</B></FONT></TH></TR></TABLE>&nbsp;<A NAME="fields_inherited_from_class_jbnc.Classifier"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Fields inherited from class jbnc.<A HREF="../jbnc/Classifier.html" title="class in jbnc">Classifier</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../jbnc/Classifier.html#algorithmName">algorithmName</A>, <A HREF="../jbnc/Classifier.html#className">className</A>, <A HREF="../jbnc/Classifier.html#classNameDefault">classNameDefault</A>, <A HREF="../jbnc/Classifier.html#databaseURL">databaseURL</A>, <A HREF="../jbnc/Classifier.html#debugMode">debugMode</A>, <A HREF="../jbnc/Classifier.html#fileNameStem">fileNameStem</A>, <A HREF="../jbnc/Classifier.html#measureName">measureName</A>, <A HREF="../jbnc/Classifier.html#namesFileName">namesFileName</A>, <A HREF="../jbnc/Classifier.html#nbAlphas">nbAlphas</A>, <A HREF="../jbnc/Classifier.html#netFileName">netFileName</A>, <A HREF="../jbnc/Classifier.html#tableName">tableName</A>, <A HREF="../jbnc/Classifier.html#testFileName">testFileName</A>, <A HREF="../jbnc/Classifier.html#trainFileName">trainFileName</A>, <A HREF="../jbnc/Classifier.html#usageMsg">usageMsg</A>, <A HREF="../jbnc/Classifier.html#useTimer">useTimer</A></CODE></TD></TR></TABLE>&nbsp;<!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../jbnc/CrossVal.html#CrossVal()">CrossVal</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR></TABLE>&nbsp;<!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../jbnc/dataset/DatasetInt.html" title="class in jbnc.dataset">DatasetInt</A></CODE></FONT></TD><TD><CODE><B><A HREF="../jbnc/CrossVal.html#loadDataset(java.lang.String, java.lang.String)">loadDataset</A></B>(java.lang.String&nbsp;namesFile,            java.lang.String&nbsp;dataFile)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dataset loading wrapper.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../jbnc/CrossVal.html#main(java.lang.String[])">main</A></B>(java.lang.String[]&nbsp;args)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Main function.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../jbnc/CrossVal.html#run()">run</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create and test a classifier.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../jbnc/CrossVal.html#run(java.lang.String[])">run</A></B>(java.lang.String[]&nbsp;args)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected &nbsp;<A HREF="../jbnc/util/BNCTester.Result.html" title="class in jbnc.util">BNCTester.Result</A></CODE></FONT></TD><TD><CODE><B><A HREF="../jbnc/CrossVal.html#test(BayesianNetworks.BayesNet, jbnc.dataset.DatasetInt, boolean)">test</A></B>(BayesianNetworks.BayesNet&nbsp;net,     <A HREF="../jbnc/dataset/DatasetInt.html" title="class in jbnc.dataset">DatasetInt</A>&nbsp;testSet,     boolean&nbsp;report)</CODE><BR>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -