📄 geneticsearch.html
字号:
</DL><HR><A NAME="setReportFrequency(int)"><!-- --></A><H3>setReportFrequency</H3><PRE>public void <B>setReportFrequency</B>(int f)</PRE><DL><DD>set how often reports are generated<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>f</CODE> - generate reports every f generations</DL></DD></DL><HR><A NAME="getReportFrequency()"><!-- --></A><H3>getReportFrequency</H3><PRE>public int <B>getReportFrequency</B>()</PRE><DL><DD>get how often repports are generated<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>how often reports are generated</DL></DD></DL><HR><A NAME="mutationProbTipText()"><!-- --></A><H3>mutationProbTipText</H3><PRE>public java.lang.String <B>mutationProbTipText</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="setMutationProb(double)"><!-- --></A><H3>setMutationProb</H3><PRE>public void <B>setMutationProb</B>(double m)</PRE><DL><DD>set the probability of mutation<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>m</CODE> - the probability for mutation occuring</DL></DD></DL><HR><A NAME="getMutationProb()"><!-- --></A><H3>getMutationProb</H3><PRE>public double <B>getMutationProb</B>()</PRE><DL><DD>get the probability of mutation<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the probability of mutation occuring</DL></DD></DL><HR><A NAME="crossoverProbTipText()"><!-- --></A><H3>crossoverProbTipText</H3><PRE>public java.lang.String <B>crossoverProbTipText</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="setCrossoverProb(double)"><!-- --></A><H3>setCrossoverProb</H3><PRE>public void <B>setCrossoverProb</B>(double c)</PRE><DL><DD>set the probability of crossover<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the probability that two population members will exchange genetic material</DL></DD></DL><HR><A NAME="getCrossoverProb()"><!-- --></A><H3>getCrossoverProb</H3><PRE>public double <B>getCrossoverProb</B>()</PRE><DL><DD>get the probability of crossover<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the probability of crossover</DL></DD></DL><HR><A NAME="maxGenerationsTipText()"><!-- --></A><H3>maxGenerationsTipText</H3><PRE>public java.lang.String <B>maxGenerationsTipText</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="setMaxGenerations(int)"><!-- --></A><H3>setMaxGenerations</H3><PRE>public void <B>setMaxGenerations</B>(int m)</PRE><DL><DD>set the number of generations to evaluate<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>m</CODE> - the number of generations</DL></DD></DL><HR><A NAME="getMaxGenerations()"><!-- --></A><H3>getMaxGenerations</H3><PRE>public int <B>getMaxGenerations</B>()</PRE><DL><DD>get the number of generations<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the maximum number of generations</DL></DD></DL><HR><A NAME="populationSizeTipText()"><!-- --></A><H3>populationSizeTipText</H3><PRE>public java.lang.String <B>populationSizeTipText</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="setPopulationSize(int)"><!-- --></A><H3>setPopulationSize</H3><PRE>public void <B>setPopulationSize</B>(int p)</PRE><DL><DD>set the population size<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>p</CODE> - the size of the population</DL></DD></DL><HR><A NAME="getPopulationSize()"><!-- --></A><H3>getPopulationSize</H3><PRE>public int <B>getPopulationSize</B>()</PRE><DL><DD>get the size of the population<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the population size</DL></DD></DL><HR><A NAME="globalInfo()"><!-- --></A><H3>globalInfo</H3><PRE>public java.lang.String <B>globalInfo</B>()</PRE><DL><DD>Returns a string describing this search method<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>a description of the search suitable for displaying in the explorer/experimenter gui</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 the search<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 description of the search as a String</DL></DD></DL><HR><A NAME="search(weka.attributeSelection.ASEvaluation, weka.core.Instances)"><!-- --></A><H3>search</H3><PRE>public int[] <B>search</B>(<A HREF="../../weka/attributeSelection/ASEvaluation.html">ASEvaluation</A> ASEval, <A HREF="../../weka/core/Instances.html">Instances</A> data) throws java.lang.Exception</PRE><DL><DD>Searches the attribute subset space using a genetic algorithm.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../weka/attributeSelection/ASSearch.html#search(weka.attributeSelection.ASEvaluation, weka.core.Instances)">search</A></CODE> in class <CODE><A HREF="../../weka/attributeSelection/ASSearch.html">ASSearch</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ASEvaluator</CODE> - the attribute evaluator to guide the search<DD><CODE>data</CODE> - the training instances.<DT><B>Returns:</B><DD>an array (not necessarily ordered) of selected attribute indexes<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE> - if the search can't be completed</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/GainRatioAttributeEval.html"><B>PREV CLASS</B></A> <A HREF="../../weka/attributeSelection/GeneticSearch.GABitSet.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="GeneticSearch.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#inner_class_summary">INNER</A> | 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 + -