abstractattributes.html
来自「数据挖掘方面最新软件」· HTML 代码 · 共 1,134 行 · 第 1/4 页
HTML
1,134 行
<!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:33:48 CEST 2008 --><TITLE>AbstractAttributes (RapidMiner Class Documentation)</TITLE><META NAME="keywords" CONTENT="com.rapidminer.example.AbstractAttributes class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){ parent.document.title="AbstractAttributes (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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/AbstractAttributes.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS <A HREF="../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?com/rapidminer/example/AbstractAttributes.html" target="_top"><B>FRAMES</B></A> <A HREF="AbstractAttributes.html" target="_top"><B>NO FRAMES</B></A> <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: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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.example</FONT><BR>Class AbstractAttributes</H2><PRE>java.lang.Object <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.rapidminer.example.AbstractAttributes</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../com/rapidminer/example/Attributes.html" title="interface in com.rapidminer.example">Attributes</A>, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<<A HREF="../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A>></DD></DL><DL><DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../com/rapidminer/example/DelegateAttributes.html" title="class in com.rapidminer.example">DelegateAttributes</A>, <A HREF="../../../com/rapidminer/example/SimpleAttributes.html" title="class in com.rapidminer.example">SimpleAttributes</A></DD></DL><HR><DL><DT><PRE>public abstract class <B>AbstractAttributes</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../com/rapidminer/example/Attributes.html" title="interface in com.rapidminer.example">Attributes</A></DL></PRE><P>This is the abstract superclass for all attribute set implementations. It is sufficient for subclasses to overwrite the method <A HREF="../../../com/rapidminer/example/Attributes.html#allAttributeRoles()"><CODE>Attributes.allAttributeRoles()</CODE></A> and the corresponding add and remove methods.<P><P><DL><DT><B>Version:</B></DT> <DD>$Id: AbstractAttributes.java,v 1.5 2008/05/09 19:22:42 ingomierswa Exp $</DD><DT><B>Author:</B></DT> <DD>Ingo Mierswa</DD><DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html#com.rapidminer.example.AbstractAttributes">Serialized Form</A></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> <A NAME="fields_inherited_from_class_com.rapidminer.example.Attributes"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Fields inherited from interface com.rapidminer.example.<A HREF="../../../com/rapidminer/example/Attributes.html" title="interface in com.rapidminer.example">Attributes</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../com/rapidminer/example/Attributes.html#ALL">ALL</A>, <A HREF="../../../com/rapidminer/example/Attributes.html#ATTRIBUTE_NAME">ATTRIBUTE_NAME</A>, <A HREF="../../../com/rapidminer/example/Attributes.html#BATCH_NAME">BATCH_NAME</A>, <A HREF="../../../com/rapidminer/example/Attributes.html#CLASSIFICATION_COST">CLASSIFICATION_COST</A>, <A HREF="../../../com/rapidminer/example/Attributes.html#CLUSTER_NAME">CLUSTER_NAME</A>, <A HREF="../../../com/rapidminer/example/Attributes.html#CONFIDENCE_NAME">CONFIDENCE_NAME</A>, <A HREF="../../../com/rapidminer/example/Attributes.html#ID_NAME">ID_NAME</A>, <A HREF="../../../com/rapidminer/example/Attributes.html#KNOWN_ATTRIBUTE_TYPES">KNOWN_ATTRIBUTE_TYPES</A>, <A HREF="../../../com/rapidminer/example/Attributes.html#LABEL_NAME">LABEL_NAME</A>, <A HREF="../../../com/rapidminer/example/Attributes.html#OUTLIER_NAME">OUTLIER_NAME</A>, <A HREF="../../../com/rapidminer/example/Attributes.html#PREDICTION_NAME">PREDICTION_NAME</A>, <A HREF="../../../com/rapidminer/example/Attributes.html#REGULAR">REGULAR</A>, <A HREF="../../../com/rapidminer/example/Attributes.html#SPECIAL">SPECIAL</A>, <A HREF="../../../com/rapidminer/example/Attributes.html#TYPE_ATTRIBUTE">TYPE_ATTRIBUTE</A>, <A HREF="../../../com/rapidminer/example/Attributes.html#TYPE_BATCH">TYPE_BATCH</A>, <A HREF="../../../com/rapidminer/example/Attributes.html#TYPE_CLUSTER">TYPE_CLUSTER</A>, <A HREF="../../../com/rapidminer/example/Attributes.html#TYPE_COST">TYPE_COST</A>, <A HREF="../../../com/rapidminer/example/Attributes.html#TYPE_ID">TYPE_ID</A>, <A HREF="../../../com/rapidminer/example/Attributes.html#TYPE_LABEL">TYPE_LABEL</A>, <A HREF="../../../com/rapidminer/example/Attributes.html#TYPE_OUTLIER">TYPE_OUTLIER</A>, <A HREF="../../../com/rapidminer/example/Attributes.html#TYPE_PREDICTION">TYPE_PREDICTION</A>, <A HREF="../../../com/rapidminer/example/Attributes.html#TYPE_WEIGHT">TYPE_WEIGHT</A>, <A HREF="../../../com/rapidminer/example/Attributes.html#WEIGHT_NAME">WEIGHT_NAME</A></CODE></TD></TR></TABLE> <!-- ======== 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="../../../com/rapidminer/example/AbstractAttributes.html#AbstractAttributes()">AbstractAttributes</A></B>()</CODE><BR> </TD></TR></TABLE> <!-- ========== 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/example/AbstractAttributes.html#addRegular(com.rapidminer.example.Attribute)">addRegular</A></B>(<A HREF="../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A> attribute)</CODE><BR> Adds the given attribute as regular attribute.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.util.Iterator<<A HREF="../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A>></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/example/AbstractAttributes.html#allAttributes()">allAttributes</A></B>()</CODE><BR> Returns an iterator over all attributes, including the special attributes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/example/AbstractAttributes.html#allSize()">allSize</A></B>()</CODE><BR> Returns the number of all attributes, i.e. of the regular and the special attributes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/example/AbstractAttributes.html#clearRegular()">clearRegular</A></B>()</CODE><BR> Removes all regular attributes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract java.lang.Object</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/example/AbstractAttributes.html#clone()">clone</A></B>()</CODE><BR> Returns a clone of this attribute set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/example/AbstractAttributes.html#contains(com.rapidminer.example.Attribute)">contains</A></B>(<A HREF="../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A> attribute)</CODE><BR> Returns true if this attribute set contains the given attribute.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/example/AbstractAttributes.html#createRegularAttributeArray()">createRegularAttributeArray</A></B>()</CODE><BR> This method creates an attribute array from all regular attributes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/example/AbstractAttributes.html#get(java.lang.String)">get</A></B>(java.lang.String name)</CODE><BR> Returns the attribute for the given name.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/example/AbstractAttributes.html#getCluster()">getCluster</A></B>()</CODE><BR> Returns the cluster attribute or null if no label attribute is defined.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/example/AbstractAttributes.html#getCost()">getCost</A></B>()</CODE><BR> Returns the cost attribute or null if no label attribute is defined.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/example/AbstractAttributes.html#getId()">getId</A></B>()</CODE><BR> Returns the id attribute or null if no label attribute is defined.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/example/AbstractAttributes.html#getLabel()">getLabel</A></B>()</CODE><BR> Returns the label attribute or null if no label attribute is defined.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/example/AbstractAttributes.html#getOutlier()">getOutlier</A></B>()</CODE><BR> Returns the outlier attribute or null if no label attribute is defined.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/example/AbstractAttributes.html#getPredictedLabel()">getPredictedLabel</A></B>()</CODE><BR> Returns the predicted label attribute or null if no label attribute is defined.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../com/rapidminer/example/Attribute.html" title="interface in com.rapidminer.example">Attribute</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/example/AbstractAttributes.html#getRegular(java.lang.String)">getRegular</A></B>(java.lang.String name)</CODE><BR> Returns the regular attribute for the given name.</TD></TR>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?