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

📄 r761.html

📁 一个功能强大的神经网络分析程序
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"><HTML><HEAD><TITLE>fann_train_on_data_callback</TITLE><link href="../style.css" rel="stylesheet" type="text/css"><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINKREL="HOME"TITLE="Fast Artificial Neural Network Library"HREF="index.html"><LINKREL="UP"TITLE="Training Data"HREF="x609.html"><LINKREL="PREVIOUS"TITLE="fann_train_on_data"HREF="r726.html"><LINKREL="NEXT"TITLE="fann_train_on_file"HREF="r806.html"></HEAD><BODYCLASS="refentry"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLESUMMARY="Header navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">Fast Artificial Neural Network Library</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="r726.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="r806.html"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><H1><ANAME="api.fann_train_on_data_callback"></A>fann_train_on_data_callback</H1><DIVCLASS="refnamediv"><ANAME="AEN762"></A><H2>Name</H2>fann_train_on_data_callback&nbsp;--&nbsp;Train an ANN.</DIV><DIVCLASS="refsect1"><ANAME="AEN765"></A><H2>Description</H2><codeclass="methodsynopsis">&#13;  <spanclass="type">void </span>fann_train_on_data_callback(<spanclass="methodparam"><spanclass="type">struct fann * </span><spanclass="parameter">ann</span></span><spanclass="methodparam">, <spanclass="type">struct fann_train_data * </span><spanclass="parameter">data</span></span><spanclass="methodparam">, <spanclass="type">unsigned int </span><spanclass="parameter">max_epochs</span></span><spanclass="methodparam">, <spanclass="type">unsigned int </span><spanclass="parameter">epochs_between_reports</span></span><spanclass="methodparam">, <spanclass="type">float </span><spanclass="parameter">desired_error</span></span><spanclass="methodparam">, <spanclass="type">int </span><spanclass="parameter">(*callback)(unsigned int epochs, float error)</span></span>);&#13;</code><P>&#13;	    Trains <CODECLASS="parameter">ann</CODE> using <CODECLASS="parameter">data</CODE> until	    <CODECLASS="parameter">desired_error</CODE> is reached, or until <CODECLASS="parameter">max_epochs</CODE>	    is surpassed.	  </P><P>&#13;	    This function behaves identically to             <AHREF="r726.html"><CODECLASS="function">fann_train_on_data</CODE></A>, except that 	    <CODECLASS="function">fann_train_on_data_callback</CODE>allows you to specify a function to be called every 	    <CODECLASS="parameter">epochs_between_reports</CODE>instead of using the default reporting mechanism.	    If the callback function returns -1 the training will terminate.	  </P><P>&#13;	    The callback function is very useful in GUI applications or in other applications which	    do not wish to report the progress on standard output. Furthermore the callback function	    can be used to stop the training at non standard stop criteria (see	    <AHREF="x161.html"><I>Training and Testing</I></A>.)	  </P><P>This function appears in FANN &#62;= 1.0.5.</P><P>&#13;	    The training algorithm used by this function is chosen by the 	    <AHREF="r972.html"><CODECLASS="function">fann_set_training_algorithm</CODE></A> 	    function. The default training algorithm is <AHREF="r1996.html"><CODECLASS="constant">FANN_TRAIN_RPROP</CODE></A>.	  </P></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLESUMMARY="Footer navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="r726.html"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="index.html"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="r806.html"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">fann_train_on_data</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="x609.html"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">fann_train_on_file</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

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