📄 ibk.html
字号:
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../weka/core/TechnicalInformationHandler.html#getTechnicalInformation()">getTechnicalInformation</A></CODE> in interface <CODE><A HREF="../../../weka/core/TechnicalInformationHandler.html" title="interface in weka.core">TechnicalInformationHandler</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the technical information about this class</DL></DD></DL><HR><A NAME="KNNTipText()"><!-- --></A><H3>KNNTipText</H3><PRE>public java.lang.String <B>KNNTipText</B>()</PRE><DL><DD>Returns the tip text for this property.<P><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="setKNN(int)"><!-- --></A><H3>setKNN</H3><PRE>public void <B>setKNN</B>(int k)</PRE><DL><DD>Set the number of neighbours the learner is to use.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>k</CODE> - the number of neighbours.</DL></DD></DL><HR><A NAME="getKNN()"><!-- --></A><H3>getKNN</H3><PRE>public int <B>getKNN</B>()</PRE><DL><DD>Gets the number of neighbours the learner will use.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of neighbours.</DL></DD></DL><HR><A NAME="windowSizeTipText()"><!-- --></A><H3>windowSizeTipText</H3><PRE>public java.lang.String <B>windowSizeTipText</B>()</PRE><DL><DD>Returns the tip text for this property.<P><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="getWindowSize()"><!-- --></A><H3>getWindowSize</H3><PRE>public int <B>getWindowSize</B>()</PRE><DL><DD>Gets the maximum number of instances allowed in the training pool. The addition of new instances above this value will result in old instances being removed. A value of 0 signifies no limit to the number of training instances.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>Value of WindowSize.</DL></DD></DL><HR><A NAME="setWindowSize(int)"><!-- --></A><H3>setWindowSize</H3><PRE>public void <B>setWindowSize</B>(int newWindowSize)</PRE><DL><DD>Sets the maximum number of instances allowed in the training pool. The addition of new instances above this value will result in old instances being removed. A value of 0 signifies no limit to the number of training instances.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newWindowSize</CODE> - Value to assign to WindowSize.</DL></DD></DL><HR><A NAME="distanceWeightingTipText()"><!-- --></A><H3>distanceWeightingTipText</H3><PRE>public java.lang.String <B>distanceWeightingTipText</B>()</PRE><DL><DD>Returns the tip text for this property.<P><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="getDistanceWeighting()"><!-- --></A><H3>getDistanceWeighting</H3><PRE>public <A HREF="../../../weka/core/SelectedTag.html" title="class in weka.core">SelectedTag</A> <B>getDistanceWeighting</B>()</PRE><DL><DD>Gets the distance weighting method used. Will be one of WEIGHT_NONE, WEIGHT_INVERSE, or WEIGHT_SIMILARITY<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the distance weighting method used.</DL></DD></DL><HR><A NAME="setDistanceWeighting(weka.core.SelectedTag)"><!-- --></A><H3>setDistanceWeighting</H3><PRE>public void <B>setDistanceWeighting</B>(<A HREF="../../../weka/core/SelectedTag.html" title="class in weka.core">SelectedTag</A> newMethod)</PRE><DL><DD>Sets the distance weighting method used. Values other than WEIGHT_NONE, WEIGHT_INVERSE, or WEIGHT_SIMILARITY will be ignored.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newMethod</CODE> - the distance weighting method to use</DL></DD></DL><HR><A NAME="meanSquaredTipText()"><!-- --></A><H3>meanSquaredTipText</H3><PRE>public java.lang.String <B>meanSquaredTipText</B>()</PRE><DL><DD>Returns the tip text for this property.<P><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="getMeanSquared()"><!-- --></A><H3>getMeanSquared</H3><PRE>public boolean <B>getMeanSquared</B>()</PRE><DL><DD>Gets whether the mean squared error is used rather than mean absolute error when doing cross-validation.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if so.</DL></DD></DL><HR><A NAME="setMeanSquared(boolean)"><!-- --></A><H3>setMeanSquared</H3><PRE>public void <B>setMeanSquared</B>(boolean newMeanSquared)</PRE><DL><DD>Sets whether the mean squared error is used rather than mean absolute error when doing cross-validation.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newMeanSquared</CODE> - true if so.</DL></DD></DL><HR><A NAME="crossValidateTipText()"><!-- --></A><H3>crossValidateTipText</H3><PRE>public java.lang.String <B>crossValidateTipText</B>()</PRE><DL><DD>Returns the tip text for this property.<P><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="getCrossValidate()"><!-- --></A><H3>getCrossValidate</H3><PRE>public boolean <B>getCrossValidate</B>()</PRE><DL><DD>Gets whether hold-one-out cross-validation will be used to select the best k value.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>true if cross-validation will be used.</DL></DD></DL><HR><A NAME="setCrossValidate(boolean)"><!-- --></A><H3>setCrossValidate</H3><PRE>public void <B>setCrossValidate</B>(boolean newCrossValidate)</PRE><DL><DD>Sets whether hold-one-out cross-validation will be used to select the best k value.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>newCrossValidate</CODE> - true if cross-validation should be used.</DL></DD></DL><HR><A NAME="nearestNeighbourSearchAlgorithmTipText()"><!-- --></A><H3>nearestNeighbourSearchAlgorithmTipText</H3><PRE>public java.lang.String <B>nearestNeighbourSearchAlgorithmTipText</B>()</PRE><DL><DD>Returns the tip text for this property.<P><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="getNearestNeighbourSearchAlgorithm()"><!-- --></A><H3>getNearestNeighbourSearchAlgorithm</H3><PRE>public <A HREF="../../../weka/core/neighboursearch/NearestNeighbourSearch.html" title="class in weka.core.neighboursearch">NearestNeighbourSearch</A> <B>getNearestNeighbourSearchAlgorithm</B>()</PRE><DL><DD>Returns the current nearestNeighbourSearch algorithm in use.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the NearestNeighbourSearch algorithm currently in use.</DL></DD></DL><HR><A NAME="setNearestNeighbourSearchAlgorithm(weka.core.neighboursearch.NearestNeighbourSearch)"><!-- --></A><H3>setNearestNeighbourSearchAlgorithm</H3><PRE>public void <B>setNearestNeighbourSearchAlgorithm</B>(<A HREF="../../../weka/core/neighboursearch/NearestNeighbourSearch.html" title="class in weka.core.neighboursearch">NearestNeighbourSearch</A> nearestNeighbourSearchAlgorithm)</PRE><DL><DD>Sets the nearestNeighbourSearch algorithm to be used for finding nearest neighbour(s).<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>nearestNeighbourSearchAlgorithm</CODE> - - The NearestNeighbourSearch class.</DL></DD></DL><HR><A NAME="getNumTraining()"><!-- --></A><H3>getNumTraining</H3><PRE>public int <B>getNumTraining</B>()</PRE><DL><DD>Get the number of training instances the classifier is currently using.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of training instances the classifier is currently using</DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -