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

📄 graftsplit.html

📁 数据挖掘的最常用工具。由于开源
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/trees/j48/GraftSplit.html#subsetOfInterest()">subsetOfInterest</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/trees/j48/GraftSplit.html#testType()">testType</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;returns the test type</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/trees/j48/GraftSplit.html#toString(weka.core.Instances)">toString</A></B>(<A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;data)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;method for returning information about this GraftSplit</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/trees/j48/GraftSplit.html#totalForSubset(int)">totalForSubset</A></B>(int&nbsp;subset)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;double</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/trees/j48/GraftSplit.html#totalForSubsetOfInterest()">totalForSubsetOfInterest</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;double[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/trees/j48/GraftSplit.html#weights(weka.core.Instance)">weights</A></B>(<A HREF="../../../../weka/core/Instance.html" title="class in weka.core">Instance</A>&nbsp;instance)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns weights if instance is assigned to more than one subset.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../weka/classifiers/trees/j48/GraftSplit.html#whichSubset(weka.core.Instance)">whichSubset</A></B>(<A HREF="../../../../weka/core/Instance.html" title="class in weka.core">Instance</A>&nbsp;instance)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns index of subset instance is assigned to.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_weka.classifiers.trees.j48.ClassifierSplitModel"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class weka.classifiers.trees.j48.<A HREF="../../../../weka/classifiers/trees/j48/ClassifierSplitModel.html" title="class in weka.classifiers.trees.j48">ClassifierSplitModel</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../weka/classifiers/trees/j48/ClassifierSplitModel.html#checkModel()">checkModel</A>, <A HREF="../../../../weka/classifiers/trees/j48/ClassifierSplitModel.html#classifyInstance(weka.core.Instance)">classifyInstance</A>, <A HREF="../../../../weka/classifiers/trees/j48/ClassifierSplitModel.html#classProbLaplace(int, weka.core.Instance, int)">classProbLaplace</A>, <A HREF="../../../../weka/classifiers/trees/j48/ClassifierSplitModel.html#clone()">clone</A>, <A HREF="../../../../weka/classifiers/trees/j48/ClassifierSplitModel.html#codingCost()">codingCost</A>, <A HREF="../../../../weka/classifiers/trees/j48/ClassifierSplitModel.html#distribution()">distribution</A>, <A HREF="../../../../weka/classifiers/trees/j48/ClassifierSplitModel.html#dumpLabel(int, weka.core.Instances)">dumpLabel</A>, <A HREF="../../../../weka/classifiers/trees/j48/ClassifierSplitModel.html#dumpModel(weka.core.Instances)">dumpModel</A>, <A HREF="../../../../weka/classifiers/trees/j48/ClassifierSplitModel.html#numSubsets()">numSubsets</A>, <A HREF="../../../../weka/classifiers/trees/j48/ClassifierSplitModel.html#resetDistribution(weka.core.Instances)">resetDistribution</A>, <A HREF="../../../../weka/classifiers/trees/j48/ClassifierSplitModel.html#sourceClass(int, weka.core.Instances)">sourceClass</A>, <A HREF="../../../../weka/classifiers/trees/j48/ClassifierSplitModel.html#split(weka.core.Instances)">split</A></CODE></TD></TR></TABLE>&nbsp;<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>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ========= 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="GraftSplit(int, double, int, double, double)"><!-- --></A><H3>GraftSplit</H3><PRE>public <B>GraftSplit</B>(int&nbsp;a,                  double&nbsp;v,                  int&nbsp;t,                  double&nbsp;c,                  double&nbsp;l)</PRE><DL><DD>constructor<P><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute to split on<DD><CODE>v</CODE> - the value of a where split occurs<DD><CODE>t</CODE> - the test type (0 is <=, 1 is >, 2 is =, 3 is !)<DD><CODE>c</CODE> - the class to label the leaf node pointed to by test as.<DD><CODE>l</CODE> - the laplace value (needed when sorting GraftSplits)</DL></DL><HR><A NAME="GraftSplit(int, double, int, double, double[][])"><!-- --></A><H3>GraftSplit</H3><PRE>public <B>GraftSplit</B>(int&nbsp;a,                  double&nbsp;v,                  int&nbsp;t,                  double&nbsp;oC,                  double[][]&nbsp;counts)           throws java.lang.Exception</PRE><DL><DD>constructor<P><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute to split on<DD><CODE>v</CODE> - the value of a where split occurs<DD><CODE>t</CODE> - the test type (0 is <=, 1 is >, 2 is =, 3 is !=)<DD><CODE>oC</CODE> - the class to label the leaf node not pointed to by test as.<DD><CODE>counts</CODE> - the distribution for this split<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></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="deleteGraftedCases(weka.core.Instances)"><!-- --></A><H3>deleteGraftedCases</H3><PRE>public void <B>deleteGraftedCases</B>(<A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;data)</PRE><DL><DD>deletes the cases in data that belong to leaf pointed to by the test (i.e. the subset of interest).  this is useful so the instances belonging to that leaf aren't passed down the other branch.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the instances to delete from</DL></DD></DL><HR><A NAME="buildClassifier(weka.core.Instances)"><!-- --></A><H3>buildClassifier</H3><PRE>public void <B>buildClassifier</B>(<A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;data)                     throws java.lang.Exception</PRE><DL><DD>builds m_graftdistro using the passed data<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../weka/classifiers/trees/j48/ClassifierSplitModel.html#buildClassifier(weka.core.Instances)">buildClassifier</A></CODE> in class <CODE><A HREF="../../../../weka/classifiers/trees/j48/ClassifierSplitModel.html" title="class in weka.classifiers.trees.j48">ClassifierSplitModel</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>data</CODE> - the instances to use when creating the distribution<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DD></DL><HR><A NAME="getLeaf()"><!-- --></A><H3>getLeaf</H3><PRE>public <A HREF="../../../../weka/classifiers/trees/j48/NoSplit.html" title="class in weka.classifiers.trees.j48">NoSplit</A> <B>getLeaf</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the NoSplit object for the leaf pointed to by m_testType branch</DL></DD></DL><HR><A NAME="getOtherLeaf()"><!-- --></A><H3>getOtherLeaf</H3><PRE>public <A HREF="../../../../weka/classifiers/trees/j48/NoSplit.html" title="class in weka.classifiers.trees.j48">NoSplit</A> <B>getOtherLeaf</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the NoSplit object for the leaf not pointed to by m_testType branch</DL></DD></DL><HR><A NAME="dumpLabelG(int, weka.core.Instances)"><!-- --></A><H3>dumpLabelG</H3><PRE>public final java.lang.String <B>dumpLabelG</B>(int&nbsp;index,                                         <A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;data)                                  throws java.lang.Exception</PRE><DL><DD>Prints label for subset index of instances (eg class).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the bag to dump label for<DD><CODE>data</CODE> - to get attribute names and such<DT><B>Returns:</B><DD>the label as a string<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if something goes wrong</DL></DD></DL><HR><A NAME="subsetOfInterest()"><!-- --></A><H3>subsetOfInterest</H3><PRE>public int <B>subsetOfInterest</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the subset that is specified by the test type</DL></DD></DL><HR><A NAME="positivesForSubsetOfInterest()"><!-- --></A><H3>positivesForSubsetOfInterest</H3><PRE>public double <B>positivesForSubsetOfInterest</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of positive cases in the subset of interest</DL></DD></DL><HR><A NAME="positives(int)"><!-- --></A><H3>positives</H3><PRE>public double <B>positives</B>(int&nbsp;subset)</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>subset</CODE> - the subset to get the positives for<DT><B>Returns:</B><DD>the number of positive cases in the specified subset</DL></DD></DL><HR><A NAME="totalForSubsetOfInterest()"><!-- --></A><H3>totalForSubsetOfInterest</H3><PRE>public double <B>totalForSubsetOfInterest</B>()</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of instances in the subset of interest</DL></DD></DL><HR><A NAME="totalForSubset(int)"><!-- --></A><H3>totalForSubset</H3><PRE>public double <B>totalForSubset</B>(int&nbsp;subset)</PRE><DL><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>subset</CODE> - the index of the bag to get the total for<DT><B>Returns:</B><DD>the number of instances in the subset</DL></DD></DL><HR><A NAME="leftSide(weka.core.Instances)"><!-- --></A><H3>leftSide</H3><PRE>public java.lang.String <B>leftSide</B>(<A HREF="../../../../weka/core/Instances.html" title="class in weka.core">Instances</A>&nbsp;data)</PRE>

⌨️ 快捷键说明

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