attributeweights.html
来自「数据挖掘方面最新软件」· HTML 代码 · 共 986 行 · 第 1/3 页
HTML
986 行
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/example/AttributeWeights.html#normalize()">normalize</A></B>()</CODE><BR> This method normalizes all weights to the range 0 to 1.</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/AttributeWeights.html#save(java.io.File)">save</A></B>(java.io.File file)</CODE><BR> Saves the attribute weights into an XML file.</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/AttributeWeights.html#setSortingType(int)">setSortingType</A></B>(int sortingType)</CODE><BR> Sets the currently used sorting type.</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/AttributeWeights.html#setWeight(java.lang.String, double)">setWeight</A></B>(java.lang.String name, double weight)</CODE><BR> Sets the weight for the attribute with the given name.</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/AttributeWeights.html#setWeightType(int)">setWeightType</A></B>(int weightType)</CODE><BR> Returns the currently used weight type.</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/AttributeWeights.html#size()">size</A></B>()</CODE><BR> Returns the number of features in this map.</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/AttributeWeights.html#sortByWeight(java.lang.String[], int, int)">sortByWeight</A></B>(java.lang.String[] attributeNames, int direction, int comparatorType)</CODE><BR> Sorts the given array of attribute names according to their weight, the sorting direction (ascending or descending), and with respect to the fact if original or absolute weights should be used.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../com/rapidminer/example/AttributeWeights.html#toString()">toString</A></B>()</CODE><BR> Returns a string representation of this object.</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/AttributeWeights.html#writeAttributeWeights(java.io.File, java.nio.charset.Charset)">writeAttributeWeights</A></B>(java.io.File file, java.nio.charset.Charset encoding)</CODE><BR> </TD></TR></TABLE> <A NAME="methods_inherited_from_class_com.rapidminer.tools.math.AverageVector"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class com.rapidminer.tools.math.<A HREF="../../../com/rapidminer/tools/math/AverageVector.html" title="class in com.rapidminer.tools.math">AverageVector</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../com/rapidminer/tools/math/AverageVector.html#addAveragable(com.rapidminer.tools.math.Averagable)">addAveragable</A>, <A HREF="../../../com/rapidminer/tools/math/AverageVector.html#buildAverages(com.rapidminer.tools.math.AverageVector)">buildAverages</A>, <A HREF="../../../com/rapidminer/tools/math/AverageVector.html#getAveragable(int)">getAveragable</A>, <A HREF="../../../com/rapidminer/tools/math/AverageVector.html#getAveragable(java.lang.String)">getAveragable</A>, <A HREF="../../../com/rapidminer/tools/math/AverageVector.html#getSize()">getSize</A>, <A HREF="../../../com/rapidminer/tools/math/AverageVector.html#removeAveragable(com.rapidminer.tools.math.Averagable)">removeAveragable</A>, <A HREF="../../../com/rapidminer/tools/math/AverageVector.html#toResultString()">toResultString</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_com.rapidminer.operator.ResultObjectAdapter"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class com.rapidminer.operator.<A HREF="../../../com/rapidminer/operator/ResultObjectAdapter.html" title="class in com.rapidminer.operator">ResultObjectAdapter</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../com/rapidminer/operator/ResultObjectAdapter.html#addAction(javax.swing.Action)">addAction</A>, <A HREF="../../../com/rapidminer/operator/ResultObjectAdapter.html#getActions()">getActions</A>, <A HREF="../../../com/rapidminer/operator/ResultObjectAdapter.html#isSavable()">isSavable</A>, <A HREF="../../../com/rapidminer/operator/ResultObjectAdapter.html#log(java.lang.String)">log</A>, <A HREF="../../../com/rapidminer/operator/ResultObjectAdapter.html#logError(java.lang.String)">logError</A>, <A HREF="../../../com/rapidminer/operator/ResultObjectAdapter.html#logNote(java.lang.String)">logNote</A>, <A HREF="../../../com/rapidminer/operator/ResultObjectAdapter.html#logWarning(java.lang.String)">logWarning</A>, <A HREF="../../../com/rapidminer/operator/ResultObjectAdapter.html#readResolve()">readResolve</A>, <A HREF="../../../com/rapidminer/operator/ResultObjectAdapter.html#toHTML(java.lang.String)">toHTML</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_com.rapidminer.operator.AbstractIOObject"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class com.rapidminer.operator.<A HREF="../../../com/rapidminer/operator/AbstractIOObject.html" title="class in com.rapidminer.operator">AbstractIOObject</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../com/rapidminer/operator/AbstractIOObject.html#copy()">copy</A>, <A HREF="../../../com/rapidminer/operator/AbstractIOObject.html#getLog()">getLog</A>, <A HREF="../../../com/rapidminer/operator/AbstractIOObject.html#getSource()">getSource</A>, <A HREF="../../../com/rapidminer/operator/AbstractIOObject.html#initWriting()">initWriting</A>, <A HREF="../../../com/rapidminer/operator/AbstractIOObject.html#read(java.io.InputStream)">read</A>, <A HREF="../../../com/rapidminer/operator/AbstractIOObject.html#setSource(java.lang.String)">setSource</A>, <A HREF="../../../com/rapidminer/operator/AbstractIOObject.html#setWorkingOperator(com.rapidminer.operator.Operator)">setWorkingOperator</A>, <A HREF="../../../com/rapidminer/operator/AbstractIOObject.html#write(java.io.OutputStream)">write</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>finalize, getClass, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_com.rapidminer.operator.IOObject"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from interface com.rapidminer.operator.<A HREF="../../../com/rapidminer/operator/IOObject.html" title="interface in com.rapidminer.operator">IOObject</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../com/rapidminer/operator/IOObject.html#copy()">copy</A>, <A HREF="../../../com/rapidminer/operator/IOObject.html#getLog()">getLog</A>, <A HREF="../../../com/rapidminer/operator/IOObject.html#getSource()">getSource</A>, <A HREF="../../../com/rapidminer/operator/IOObject.html#setSource(java.lang.String)">setSource</A>, <A HREF="../../../com/rapidminer/operator/IOObject.html#setWorkingOperator(com.rapidminer.operator.Operator)">setWorkingOperator</A>, <A HREF="../../../com/rapidminer/operator/IOObject.html#write(java.io.OutputStream)">write</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="NO_SORTING"><!-- --></A><H3>NO_SORTING</H3><PRE>public static final int <B>NO_SORTING</B></PRE><DL><DD>Indicates that the weights should not be sorted at all.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.rapidminer.example.AttributeWeights.NO_SORTING">Constant Field Values</A></DL></DL><HR><A NAME="DECREASING"><!-- --></A><H3>DECREASING</H3><PRE>public static final int <B>DECREASING</B></PRE><DL><DD>Indicates that the weights should be sorted in descending order.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.rapidminer.example.AttributeWeights.DECREASING">Constant Field Values</A></DL></DL><HR><A NAME="INCREASING"><!-- --></A><H3>INCREASING</H3><PRE>public static final int <B>INCREASING</B></PRE><DL><DD>Indicates that the weights should be sorted in ascending order.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.rapidminer.example.AttributeWeights.INCREASING">Constant Field Values</A></DL></DL><HR><A NAME="ORIGINAL_WEIGHTS"><!-- --></A><H3>ORIGINAL_WEIGHTS</H3><PRE>public static final int <B>ORIGINAL_WEIGHTS</B></PRE><DL><DD>Indicates that the the actual weights should be used for sorting.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.rapidminer.example.AttributeWeights.ORIGINAL_WEIGHTS">Constant Field Values</A></DL></DL><HR><A NAME="ABSOLUTE_WEIGHTS"><!-- --></A><H3>ABSOLUTE_WEIGHTS</H3><PRE>public static final int <B>ABSOLUTE_WEIGHTS</B></PRE><DL><DD>Indicates that the the absolute weights should be used for sorting.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.rapidminer.example.AttributeWeights.ABSOLUTE_WEIGHTS">Constant Field Values</A></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="AttributeWeights()"><!-- --></A><H3>AttributeWeights</H3><PRE>public <B>AttributeWeights</B>()</PRE><DL><DD>Creates a new empty attribute weights object.<P></DL><HR><A NAME="AttributeWeights(com.rapidminer.example.ExampleSet)"><!-- --></A><H3>AttributeWeights</H3><PRE>public <B>AttributeWeights</B>(<A HREF="../../../com/rapidminer/example/ExampleSet.html" title="interface in com.rapidminer.example">ExampleSet</A> exampleSet)</PRE><DL><DD>Creates a new attribute weights object containing a weight of 1 for each of the given input attributes.<P></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="getName()"><!-- --></A><H3>getName</H3><PRE>public java.lang.String <B>getName</B>()</PRE><DL><DD>Returns the name of this AverageVector.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../com/rapidminer/operator/ResultObject.html#getName()">getName</A></CODE> in interface <CODE><A HREF="../../../com/rapidminer/operator/ResultObject.html" title="interface in com.rapidminer.operator">ResultObject</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../com/rapidminer/operator/ResultObjectAdapter.html#getName()">getName</A></CODE> in class <CODE><A HREF="../../../com/rapidminer/operator/ResultObjectAdapter.html" title="class in com.rapidminer.operator">ResultObjectAdapter</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setWeight(java.lang.String, double)"><!-- --></A><H3>setWeight</H3><PRE>public void <B>setWeight</B>(java.lang.String name, double weight)</PRE><DL><DD>Sets the weight for the attribute with the given name.<P><DD><DL></DL></DD></DL><HR><A NAME="getWeight(java.lang.String)"><!-- --></A><H3>getWeight</H3><PRE>public double <B>getWeight</B>(java.lang.String name)</PRE><DL><DD>Returns the weight for the attribute with the given name. Returns Double.NaN if the weight for the queried attribute is not known.<P><DD><DL></DL></DD></DL><HR><A NAME="getWeightType()"><!-- --></A><H3>getWeightType</H3><PRE>public int <B>getWeightType</B>()</PRE><DL><DD>Returns the currently used weight type.<P><DD><DL></DL></DD></DL><HR><A NAME="setWeightType(int)"><!-- --></A><H3>setWeightType</H3><PRE>public void <B>setWeightType</B>(int weightType)</PRE><DL><DD>Returns the currently used weight type.<P><DD><DL></DL></DD></DL><HR><A NAME="getSortingType()"><!-- --></A><H3>getSortingType</H3><PRE>public int <B>getSortingType</B>()</PRE><DL><DD>Returns the currently used sorting type.<P><DD><DL></DL></DD></DL><HR><A NAME="setSortingType(int)"><!-- --></A><H3>setSortingType</H3><PRE>public void <B>setSortingType</B>(int sortingType)</PRE><DL><DD>Sets the currently used sorting type.<P><DD><DL></DL></DD></DL>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?