xrffexamplesource.html

来自「数据挖掘方面最新软件」· HTML 代码 · 共 623 行 · 第 1/3 页

HTML
623
字号
<!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_13) on Mon Jul 14 01:36:27 CEST 2008 --><TITLE>XrffExampleSource (RapidMiner Class Documentation)</TITLE><META NAME="keywords" CONTENT="com.rapidminer.operator.io.XrffExampleSource class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){    parent.document.title="XrffExampleSource (RapidMiner Class Documentation)";}</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="class-use/XrffExampleSource.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&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></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../com/rapidminer/operator/io/XrffExampleSetWriter.html" title="class in com.rapidminer.operator.io"><B>PREV CLASS</B></A>&nbsp;&nbsp;NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html?com/rapidminer/operator/io/XrffExampleSource.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="XrffExampleSource.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="#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_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">com.rapidminer.operator.io</FONT><BR>Class XrffExampleSource</H2><PRE>java.lang.Object  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/rapidminer/operator/Operator.html" title="class in com.rapidminer.operator">com.rapidminer.operator.Operator</A>      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.rapidminer.operator.io.XrffExampleSource</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/rapidminer/gui/wizards/ConfigurationListener.html" title="interface in com.rapidminer.gui.wizards">ConfigurationListener</A>, <A HREF="../../../../com/rapidminer/gui/wizards/PreviewListener.html" title="interface in com.rapidminer.gui.wizards">PreviewListener</A>, <A HREF="../../../../com/rapidminer/parameter/ParameterHandler.html" title="interface in com.rapidminer.parameter">ParameterHandler</A>, <A HREF="../../../../com/rapidminer/tools/LoggingHandler.html" title="interface in com.rapidminer.tools">LoggingHandler</A></DD></DL><HR><DL><DT><PRE>public class <B>XrffExampleSource</B><DT>extends <A HREF="../../../../com/rapidminer/operator/Operator.html" title="class in com.rapidminer.operator">Operator</A></DL></PRE><P><p>This operator can read XRFF files known from Weka. The XRFF (eXtensible attribute-Relation File Format) is an XML-based extension of the ARFF format in some sense similar to the original RapidMiner file format for attribute description files (.aml).</p>  <p>Here you get a small example for the IRIS dataset represented as XRFF file:</p> <pre> &lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;dataset name="iris" version="3.5.3"&gt;  &lt;header&gt;     &lt;attributes&gt;        &lt;attribute name="sepallength" type="numeric"/&gt;        &lt;attribute name="sepalwidth" type="numeric"/&gt;        &lt;attribute name="petallength" type="numeric"/&gt;        &lt;attribute name="petalwidth" type="numeric"/&gt;        &lt;attribute class="yes" name="class" type="nominal"&gt;           &lt;labels&gt;              &lt;label&gt;Iris-setosa&lt;/label&gt;              &lt;label&gt;Iris-versicolor&lt;/label&gt;              &lt;label&gt;Iris-virginica&lt;/label&gt;           &lt;/labels&gt;        &lt;/attribute&gt;     &lt;/attributes&gt;  &lt;/header&gt;  &lt;body&gt;     &lt;instances&gt;        &lt;instance&gt;           &lt;value&gt;5.1&lt;/value&gt;           &lt;value&gt;3.5&lt;/value&gt;           &lt;value&gt;1.4&lt;/value&gt;           &lt;value&gt;0.2&lt;/value&gt;           &lt;value&gt;Iris-setosa&lt;/value&gt;        &lt;/instance&gt;        &lt;instance&gt;           &lt;value&gt;4.9&lt;/value&gt;           &lt;value&gt;3&lt;/value&gt;           &lt;value&gt;1.4&lt;/value&gt;           &lt;value&gt;0.2&lt;/value&gt;           &lt;value&gt;Iris-setosa&lt;/value&gt;        &lt;/instance&gt;        ...     &lt;/instances&gt;  &lt;/body&gt; &lt;/dataset&gt; </pre>  <p>Please note that the sparse XRFF format is currently not supported, please use one of the  other options for sparse data files provided by RapidMiner.</p> <p>Since the XML representation takes up considerably more space since the data is wrapped into XML tags, one can also compress the data via gzip. RapidMiner automatically recognizes a file  being gzip compressed, if the file's extension is .xrff.gz instead of .xrff.</p> <p>Similar to the native RapidMiner data definition via .aml and almost arbitrary data files, the XRFF  format contains some additional features. Via the class="yes" attribute in the attribute  specification in the header, one can define which attribute should used as a prediction label  attribute. Although the RapidMiner terminus for such classes is &quot;label&quot; instead of  &quot;class&quot; we support the terminus class in order to not break compatibility with original XRFF files.</p>   <p>Please note that loading attribute weights is currently not supported, please use the other RapidMiner operators for attribute weight loading and writing for this purpose.</p> <p>Instance weights can be defined via a weight XML attribute in each instance tag.  By default, the weight is 1. Here's an example:</p> <pre> &lt;instance weight="0.75"&gt;  &lt;value&gt;5.1&lt;/value&gt;  &lt;value&gt;3.5&lt;/value&gt;  &lt;value&gt;1.4&lt;/value&gt;  &lt;value&gt;0.2&lt;/value&gt;  &lt;value&gt;Iris-setosa&lt;/value&gt; &lt;/instance&gt; </pre>  <p>Since the XRFF format does not support id attributes one have to use one of the RapidMiner operators in order to change on of the columns to the id column if desired. This has to be done after loading the data.</p><P><P><DL><DT><B>Version:</B></DT>  <DD>$Id: XrffExampleSource.java,v 1.7 2008/07/07 07:06:39 ingomierswa Exp $</DD><DT><B>Author:</B></DT>  <DD>Ingo Mierswa</DD><DT><B>Keywords:</B></DT>  <DD>xrff</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><TR BGCOLOR="white" CLASS="TableRowColor">

⌨️ 快捷键说明

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