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

📄 serializedmodelsaver.html

📁 数据挖掘的最常用工具。由于开源
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>saveTo</CODE> - the file name to save to<DD><CODE>model</CODE> - the model to save<DD><CODE>header</CODE> - the header of the data that was used to train the model (optional)<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE></DL></DD></DL><HR><A NAME="saveKOML(java.io.File, java.lang.Object, weka.core.Instances)"><!-- --></A><H3>saveKOML</H3><PRE>public static void <B>saveKOML</B>(java.io.File&nbsp;saveTo,                            java.lang.Object&nbsp;model,                            <A HREF="../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;header)                     throws java.lang.Exception</PRE><DL><DD>Save a model in KOML deep object serialized XML form.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>saveTo</CODE> - the file name to save to<DD><CODE>model</CODE> - the model to save<DD><CODE>header</CODE> - the header of the data that was used to train the model (optional)<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="saveXStream(java.io.File, java.lang.Object, weka.core.Instances)"><!-- --></A><H3>saveXStream</H3><PRE>public static void <B>saveXStream</B>(java.io.File&nbsp;saveTo,                               java.lang.Object&nbsp;model,                               <A HREF="../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;header)                        throws java.lang.Exception</PRE><DL><DD>Save a model in XStream deep object serialized XML form.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>saveTo</CODE> - the file name to save to<DD><CODE>model</CODE> - the model to save<DD><CODE>header</CODE> - the header of the data that was used to train the model (optional)<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="getDirectory()"><!-- --></A><H3>getDirectory</H3><PRE>public java.io.File <B>getDirectory</B>()</PRE><DL><DD>Get the directory that the model(s) will be saved into<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the directory to save to</DL></DD></DL><HR><A NAME="setDirectory(java.io.File)"><!-- --></A><H3>setDirectory</H3><PRE>public void <B>setDirectory</B>(java.io.File&nbsp;d)</PRE><DL><DD>Set the directory that the model(s) will be saved into.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>d</CODE> - the directory to save to</DL></DD></DL><HR><A NAME="setUseRelativePath(boolean)"><!-- --></A><H3>setUseRelativePath</H3><PRE>public void <B>setUseRelativePath</B>(boolean&nbsp;rp)</PRE><DL><DD>Set whether to use relative paths for the directory. I.e. relative to the startup (user.dir) directory<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>rp</CODE> - true if relative paths are to be used</DL></DD></DL><HR><A NAME="getUseRelativePath()"><!-- --></A><H3>getUseRelativePath</H3><PRE>public boolean <B>getUseRelativePath</B>()</PRE><DL><DD>Get whether to use relative paths for the directory. I.e. relative to the startup (user.dir) directory<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if relative paths are to be used</DL></DD></DL><HR><A NAME="getPrefix()"><!-- --></A><H3>getPrefix</H3><PRE>public java.lang.String <B>getPrefix</B>()</PRE><DL><DD>Get the prefix to prepend to the model file names.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the prefix to prepend</DL></DD></DL><HR><A NAME="setPrefix(java.lang.String)"><!-- --></A><H3>setPrefix</H3><PRE>public void <B>setPrefix</B>(java.lang.String&nbsp;p)</PRE><DL><DD>Set the prefix to prepend to the model file names.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>p</CODE> - the prefix to prepend</DL></DD></DL><HR><A NAME="globalInfo()"><!-- --></A><H3>globalInfo</H3><PRE>public java.lang.String <B>globalInfo</B>()</PRE><DL><DD>Global info for this bean. Gets displayed in the GUI.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>information about this bean.</DL></DD></DL><HR><A NAME="setFileFormat(weka.core.Tag)"><!-- --></A><H3>setFileFormat</H3><PRE>public void <B>setFileFormat</B>(<A HREF="../../../weka/core/Tag.html" title="class in weka.core">Tag</A>&nbsp;ff)</PRE><DL><DD>Set the file format to use for saving.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ff</CODE> - the file format to use</DL></DD></DL><HR><A NAME="getFileFormat()"><!-- --></A><H3>getFileFormat</H3><PRE>public <A HREF="../../../weka/core/Tag.html" title="class in weka.core">Tag</A> <B>getFileFormat</B>()</PRE><DL><DD>Get the file format to use for saving.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the file format to use</DL></DD></DL><HR><A NAME="validateFileFormat(weka.core.Tag)"><!-- --></A><H3>validateFileFormat</H3><PRE>public <A HREF="../../../weka/core/Tag.html" title="class in weka.core">Tag</A> <B>validateFileFormat</B>(<A HREF="../../../weka/core/Tag.html" title="class in weka.core">Tag</A>&nbsp;ff)</PRE><DL><DD>Validate the file format. After this bean is deserialized, classes for XML serialization may not be in the classpath any more.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ff</CODE> - the current file format to validate</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" 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_bottom_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> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/" target="_blank"><FONT CLASS="NavBarFont1"><B>Weka's home</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../weka/gui/beans/ScatterPlotMatrixBeanInfo.html" title="class in weka.gui.beans"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../weka/gui/beans/SerializedModelSaverBeanInfo.html" title="class in weka.gui.beans"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html?weka/gui/beans/SerializedModelSaver.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="SerializedModelSaver.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;<A HREF="#nested_classes_inherited_from_class_javax.swing.JComponent">NESTED</A>&nbsp;|&nbsp;<A HREF="#field_summary">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;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>

⌨️ 快捷键说明

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