abstractlearner.html

来自「数据挖掘方面最新软件」· HTML 代码 · 共 627 行 · 第 1/3 页

HTML
627
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.5.0_13) on Mon Jul 14 01:36:27 CEST 2008 --><TITLE>AbstractLearner (RapidMiner Class Documentation)</TITLE><META NAME="keywords" CONTENT="com.rapidminer.operator.learner.AbstractLearner class"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){    parent.document.title="AbstractLearner (RapidMiner Class Documentation)";}</SCRIPT><NOSCRIPT></NOSCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/AbstractLearner.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;<A HREF="../../../../com/rapidminer/operator/learner/CapabilityCheck.html" title="class in com.rapidminer.operator.learner"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../index.html?com/rapidminer/operator/learner/AbstractLearner.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="AbstractLearner.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">com.rapidminer.operator.learner</FONT><BR>Class AbstractLearner</H2><PRE>java.lang.Object  <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../com/rapidminer/operator/Operator.html" title="class in com.rapidminer.operator">com.rapidminer.operator.Operator</A>      <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.rapidminer.operator.learner.AbstractLearner</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../com/rapidminer/gui/wizards/ConfigurationListener.html" title="interface in com.rapidminer.gui.wizards">ConfigurationListener</A>, <A HREF="../../../../com/rapidminer/gui/wizards/PreviewListener.html" title="interface in com.rapidminer.gui.wizards">PreviewListener</A>, <A HREF="../../../../com/rapidminer/operator/learner/Learner.html" title="interface in com.rapidminer.operator.learner">Learner</A>, <A HREF="../../../../com/rapidminer/parameter/ParameterHandler.html" title="interface in com.rapidminer.parameter">ParameterHandler</A>, <A HREF="../../../../com/rapidminer/tools/LoggingHandler.html" title="interface in com.rapidminer.tools">LoggingHandler</A></DD></DL><DL><DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../com/rapidminer/operator/learner/functions/kernel/AbstractMySVMLearner.html" title="class in com.rapidminer.operator.learner.functions.kernel">AbstractMySVMLearner</A>, <A HREF="../../../../com/rapidminer/operator/learner/tree/AbstractTreeLearner.html" title="class in com.rapidminer.operator.learner.tree">AbstractTreeLearner</A>, <A HREF="../../../../com/rapidminer/operator/learner/lazy/AttributeBasedVotingLearner.html" title="class in com.rapidminer.operator.learner.lazy">AttributeBasedVotingLearner</A>, <A HREF="../../../../com/rapidminer/operator/learner/rules/BestRuleInduction.html" title="class in com.rapidminer.operator.learner.rules">BestRuleInduction</A>, <A HREF="../../../../com/rapidminer/operator/learner/lazy/DefaultLearner.html" title="class in com.rapidminer.operator.learner.lazy">DefaultLearner</A>, <A HREF="../../../../com/rapidminer/operator/learner/functions/kernel/evosvm/EvoSVM.html" title="class in com.rapidminer.operator.learner.functions.kernel.evosvm">EvoSVM</A>, <A HREF="../../../../com/rapidminer/operator/learner/weka/GenericWekaLearner.html" title="class in com.rapidminer.operator.learner.weka">GenericWekaLearner</A>, <A HREF="../../../../com/rapidminer/operator/learner/functions/kernel/GPLearner.html" title="class in com.rapidminer.operator.learner.functions.kernel">GPLearner</A>, <A HREF="../../../../com/rapidminer/operator/learner/functions/kernel/hyperhyper/HyperHyper.html" title="class in com.rapidminer.operator.learner.functions.kernel.hyperhyper">HyperHyper</A>, <A HREF="../../../../com/rapidminer/operator/learner/igss/IteratingGSS.html" title="class in com.rapidminer.operator.learner.igss">IteratingGSS</A>, <A HREF="../../../../com/rapidminer/operator/learner/functions/kernel/KernelLogisticRegression.html" title="class in com.rapidminer.operator.learner.functions.kernel">KernelLogisticRegression</A>, <A HREF="../../../../com/rapidminer/operator/learner/lazy/KNNLearner.html" title="class in com.rapidminer.operator.learner.lazy">KNNLearner</A>, <A HREF="../../../../com/rapidminer/operator/learner/functions/kernel/LibSVMLearner.html" title="class in com.rapidminer.operator.learner.functions.kernel">LibSVMLearner</A>, <A HREF="../../../../com/rapidminer/operator/learner/functions/LinearRegression.html" title="class in com.rapidminer.operator.learner.functions">LinearRegression</A>, <A HREF="../../../../com/rapidminer/operator/learner/functions/LogisticRegression.html" title="class in com.rapidminer.operator.learner.functions">LogisticRegression</A>, <A HREF="../../../../com/rapidminer/operator/learner/tree/MultiCriterionDecisionStumps.html" title="class in com.rapidminer.operator.learner.tree">MultiCriterionDecisionStumps</A>, <A HREF="../../../../com/rapidminer/operator/learner/bayes/NaiveBayes.html" title="class in com.rapidminer.operator.learner.bayes">NaiveBayes</A>, <A HREF="../../../../com/rapidminer/operator/learner/functions/neuralnet/NeuralNetLearner.html" title="class in com.rapidminer.operator.learner.functions.neuralnet">NeuralNetLearner</A>, <A HREF="../../../../com/rapidminer/operator/learner/functions/Perceptron.html" title="class in com.rapidminer.operator.learner.functions">Perceptron</A>, <A HREF="../../../../com/rapidminer/operator/learner/functions/kernel/evosvm/PSOSVM.html" title="class in com.rapidminer.operator.learner.functions.kernel.evosvm">PSOSVM</A>, <A HREF="../../../../com/rapidminer/operator/learner/tree/RandomForestLearner.html" title="class in com.rapidminer.operator.learner.tree">RandomForestLearner</A>, <A HREF="../../../../com/rapidminer/operator/learner/rules/RuleLearner.html" title="class in com.rapidminer.operator.learner.rules">RuleLearner</A>, <A HREF="../../../../com/rapidminer/operator/learner/functions/kernel/RVMLearner.html" title="class in com.rapidminer.operator.learner.functions.kernel">RVMLearner</A>, <A HREF="../../../../com/rapidminer/operator/learner/rules/SimpleRuleLearner.html" title="class in com.rapidminer.operator.learner.rules">SimpleRuleLearner</A>, <A HREF="../../../../com/rapidminer/operator/learner/rules/SingleRuleLearner.html" title="class in com.rapidminer.operator.learner.rules">SingleRuleLearner</A></DD></DL><HR><DL><DT><PRE>public abstract class <B>AbstractLearner</B><DT>extends <A HREF="../../../../com/rapidminer/operator/Operator.html" title="class in com.rapidminer.operator">Operator</A><DT>implements <A HREF="../../../../com/rapidminer/operator/learner/Learner.html" title="interface in com.rapidminer.operator.learner">Learner</A></DL></PRE><P>A <tt>Learner</tt> is an operator that encapsulates the learning step of a machine learning method. New learning schemes should extend this class to support the same parameters as other RapidMiner learners. The main purpose of this class is to perform some compatibility checks.<P><P><DL><DT><B>Version:</B></DT>  <DD>$Id: AbstractLearner.java,v 1.12 2008/07/07 07:06:48 ingomierswa Exp $</DD><DT><B>Author:</B></DT>  <DD>Ingo Mierswa</DD></DL><HR><P><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Field Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/operator/learner/AbstractLearner.html#PROPERTY_RAPIDMINER_GENERAL_CAPABILITIES_WARN">PROPERTY_RAPIDMINER_GENERAL_CAPABILITIES_WARN</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The property name for &quot;Indicates if only a warning should be made if learning capabilities are not fulfilled (instead of breaking the process).</TD></TR></TABLE>&nbsp;<!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../../com/rapidminer/operator/learner/AbstractLearner.html#AbstractLearner(com.rapidminer.operator.OperatorDescription)">AbstractLearner</A></B>(<A HREF="../../../../com/rapidminer/operator/OperatorDescription.html" title="class in com.rapidminer.operator">OperatorDescription</A>&nbsp;description)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new abstract learner.</TD></TR></TABLE>&nbsp;<!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../com/rapidminer/operator/IOObject.html" title="interface in com.rapidminer.operator">IOObject</A>[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/operator/learner/AbstractLearner.html#apply()">apply</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Trains a model using an ExampleSet from the input.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../com/rapidminer/operator/performance/PerformanceVector.html" title="class in com.rapidminer.operator.performance">PerformanceVector</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/operator/learner/AbstractLearner.html#getEstimatedPerformance()">getEstimatedPerformance</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the estimated performance.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Class&lt;?&gt;[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/operator/learner/AbstractLearner.html#getInputClasses()">getInputClasses</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the classes that are needed as input.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../com/rapidminer/operator/InputDescription.html" title="class in com.rapidminer.operator">InputDescription</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/operator/learner/AbstractLearner.html#getInputDescription(java.lang.Class)">getInputDescription</A></B>(java.lang.Class&nbsp;cls)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Indicates that the consumption of example sets can be user defined.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../com/rapidminer/operator/performance/PerformanceVector.html" title="class in com.rapidminer.operator.performance">PerformanceVector</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/operator/learner/AbstractLearner.html#getOptimizationPerformance()">getOptimizationPerformance</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the resulting performance of the original optimization problem.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.Class&lt;?&gt;[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../com/rapidminer/operator/learner/AbstractLearner.html#getOutputClasses()">getOutputClasses</A></B>()</CODE>

⌨️ 快捷键说明

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