📄 principalcomponents.html
字号:
<A NAME="listOptions()"><!-- --></A><H3>listOptions</H3><PRE>public java.util.Enumeration <B>listOptions</B>()</PRE><DL><DD>Returns an enumeration describing the available options <p> -N <classifier> Don't normalize the input data. <p><DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/core/OptionHandler.html#listOptions()">listOptions</A></CODE> in interface <CODE><A HREF="../../weka/core/OptionHandler.html">OptionHandler</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an enumeration of all the available options</DL></DD></DL><HR><A NAME="setOptions(java.lang.String[])"><!-- --></A><H3>setOptions</H3><PRE>public void <B>setOptions</B>(java.lang.String[] options) throws java.lang.Exception</PRE><DL><DD>Parses a given list of options. Valid options are:<p> -N <classifier> Don't normalize the input data. <p><DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/core/OptionHandler.html#setOptions(java.lang.String[])">setOptions</A></CODE> in interface <CODE><A HREF="../../weka/core/OptionHandler.html">OptionHandler</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>options</CODE> - the list of options as an array of strings<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if an option is not supported</DL></DD></DL><HR><A NAME="normalizeTipText()"><!-- --></A><H3>normalizeTipText</H3><PRE>public java.lang.String <B>normalizeTipText</B>()</PRE><DL><DD>Returns the tip text for this property<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="setNormalize(boolean)"><!-- --></A><H3>setNormalize</H3><PRE>public void <B>setNormalize</B>(boolean n)</PRE><DL><DD>Set whether input data will be normalized.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - true if input data is to be normalized</DL></DD></DL><HR><A NAME="getNormalize()"><!-- --></A><H3>getNormalize</H3><PRE>public boolean <B>getNormalize</B>()</PRE><DL><DD>Gets whether or not input data is to be normalized<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if input data is to be normalized</DL></DD></DL><HR><A NAME="varianceCoveredTipText()"><!-- --></A><H3>varianceCoveredTipText</H3><PRE>public java.lang.String <B>varianceCoveredTipText</B>()</PRE><DL><DD>Returns the tip text for this property<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="setVarianceCovered(double)"><!-- --></A><H3>setVarianceCovered</H3><PRE>public void <B>setVarianceCovered</B>(double vc)</PRE><DL><DD>Sets the amount of variance to account for when retaining principal components<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>vc</CODE> - the proportion of total variance to account for</DL></DD></DL><HR><A NAME="getVarianceCovered()"><!-- --></A><H3>getVarianceCovered</H3><PRE>public double <B>getVarianceCovered</B>()</PRE><DL><DD>Gets the proportion of total variance to account for when retaining principal components<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the proportion of variance to account for</DL></DD></DL><HR><A NAME="transformBackToOriginalTipText()"><!-- --></A><H3>transformBackToOriginalTipText</H3><PRE>public java.lang.String <B>transformBackToOriginalTipText</B>()</PRE><DL><DD>Returns the tip text for this property<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>tip text for this property suitable for displaying in the explorer/experimenter gui</DL></DD></DL><HR><A NAME="setTransformBackToOriginal(boolean)"><!-- --></A><H3>setTransformBackToOriginal</H3><PRE>public void <B>setTransformBackToOriginal</B>(boolean b)</PRE><DL><DD>Sets whether the data should be transformed back to the original space<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>b</CODE> - true if the data should be transformed back to the original space</DL></DD></DL><HR><A NAME="getTransformBackToOriginal()"><!-- --></A><H3>getTransformBackToOriginal</H3><PRE>public boolean <B>getTransformBackToOriginal</B>()</PRE><DL><DD>Gets whether the data is to be transformed back to the original space.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if the data is to be transformed back to the original space</DL></DD></DL><HR><A NAME="getOptions()"><!-- --></A><H3>getOptions</H3><PRE>public java.lang.String[] <B>getOptions</B>()</PRE><DL><DD>Gets the current settings of PrincipalComponents<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/core/OptionHandler.html#getOptions()">getOptions</A></CODE> in interface <CODE><A HREF="../../weka/core/OptionHandler.html">OptionHandler</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array of strings suitable for passing to setOptions()</DL></DD></DL><HR><A NAME="buildEvaluator(weka.core.Instances)"><!-- --></A><H3>buildEvaluator</H3><PRE>public void <B>buildEvaluator</B>(<A HREF="../../weka/core/Instances.html">Instances</A> data) throws java.lang.Exception</PRE><DL><DD>Initializes principal components and performs the analysis<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/attributeSelection/ASEvaluation.html#buildEvaluator(weka.core.Instances)">buildEvaluator</A></CODE> in class <CODE><A HREF="../../weka/attributeSelection/ASEvaluation.html">ASEvaluation</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the instances to analyse/transform<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if analysis fails</DL></DD></DL><HR><A NAME="transformedHeader()"><!-- --></A><H3>transformedHeader</H3><PRE>public <A HREF="../../weka/core/Instances.html">Instances</A> <B>transformedHeader</B>() throws java.lang.Exception</PRE><DL><DD>Returns just the header for the transformed data (ie. an empty set of instances. This is so that AttributeSelection can determine the structure of the transformed data without actually having to get all the transformed data through getTransformedData().<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/attributeSelection/AttributeTransformer.html#transformedHeader()">transformedHeader</A></CODE> in interface <CODE><A HREF="../../weka/attributeSelection/AttributeTransformer.html">AttributeTransformer</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the header of the transformed data.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the header of the transformed data can't be determined.</DL></DD></DL><HR><A NAME="transformedData()"><!-- --></A><H3>transformedData</H3><PRE>public <A HREF="../../weka/core/Instances.html">Instances</A> <B>transformedData</B>() throws java.lang.Exception</PRE><DL><DD>Gets the transformed training data.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/attributeSelection/AttributeTransformer.html#transformedData()">transformedData</A></CODE> in interface <CODE><A HREF="../../weka/attributeSelection/AttributeTransformer.html">AttributeTransformer</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the transformed training data<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if transformed data can't be returned</DL></DD></DL><HR><A NAME="evaluateAttribute(int)"><!-- --></A><H3>evaluateAttribute</H3><PRE>public double <B>evaluateAttribute</B>(int att) throws java.lang.Exception</PRE><DL><DD>Evaluates the merit of a transformed attribute. This is defined to be 1 minus the cumulative variance explained. Merit can't be meaningfully evaluated if the data is to be transformed back to the original space.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/attributeSelection/AttributeEvaluator.html#evaluateAttribute(int)">evaluateAttribute</A></CODE> in class <CODE><A HREF="../../weka/attributeSelection/AttributeEvaluator.html">AttributeEvaluator</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>att</CODE> - the attribute to be evaluated<DT><B>Returns:</B><DD>the merit of a transformed attribute<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if attribute can't be evaluated</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>Returns a description of this attribute transformer<DD><DL><DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>a String describing this attribute transformer</DL></DD></DL><HR><A NAME="convertInstance(weka.core.Instance)"><!-- --></A><H3>convertInstance</H3><PRE>public <A HREF="../../weka/core/Instance.html">Instance</A> <B>convertInstance</B>(<A HREF="../../weka/core/Instance.html">Instance</A> instance) throws java.lang.Exception</PRE><DL><DD>Transform an instance in original (unormalized) format. Convert back to the original space if requested.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../weka/attributeSelection/AttributeTransformer.html#convertInstance(weka.core.Instance)">convertInstance</A></CODE> in interface <CODE><A HREF="../../weka/attributeSelection/AttributeTransformer.html">AttributeTransformer</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>instance</CODE> - an instance in the original (unormalized) format<DT><B>Returns:</B><DD>a transformed instance<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if instance cant be transformed</DL></DD></DL><HR><A NAME="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(java.lang.String[] argv)</PRE><DL><DD>Main method for testing this class<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>argv</CODE> - should contain the command line arguments to the evaluator/transformer (see AttributeSelection)</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <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="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"> <A HREF="../../weka/attributeSelection/OneRAttributeEval.html"><B>PREV CLASS</B></A> <A HREF="../../weka/attributeSelection/RaceSearch.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="PrincipalComponents.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | 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><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -