/usr/share/doc/libfann-doc/html/files/fann_train-h.html is in libfann-doc 2.1.0~beta~dfsg-8ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>FANN Training</title><link rel="stylesheet" type="text/css" href="../styles/main.css"><script language=JavaScript src="../javascript/main.js"></script><script language=JavaScript src="../javascript/prettify.js"></script><script language=JavaScript src="../javascript/searchdata.js"></script></head><body class="ContentPage" onLoad="NDOnLoad();prettyPrint();"><script language=JavaScript><!--
if (browserType) {document.write("<div class=" + browserType + ">");if (browserVer) {document.write("<div class=" + browserVer + ">"); }}// --></script>
<!-- Generated by Natural Docs, version 1.51 -->
<!-- http://www.naturaldocs.org -->
<!-- saved from url=(0026)http://www.naturaldocs.org -->
<div id=Content><div class="CSection"><div class=CTopic id=MainTopic><h1 class=CTitle><a name="FANN_Training"></a>FANN Training</h1><div class=CBody><p>There are many different ways of training neural networks and the FANN library supports a number of different approaches.</p><h4 class=CHeading>Two fundementally different approaches are the most commonly used</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>Fixed topology training</td><td class=CDLDescription>The size and topology of the ANN is determined in advance and the training alters the weights in order to minimize the difference between the desired output values and the actual output values. This kind of training is supported by <a href="#fann_train_on_data" class=LFunction id=link84 onMouseOver="ShowTip(event, 'tt9', 'link84')" onMouseOut="HideTip('tt9')">fann_train_on_data</a>.</td></tr><tr><td class=CDLEntry>Evolving topology training</td><td class=CDLDescription>The training start out with an empty ANN, only consisting of input and output neurons. Hidden neurons and connections is the added during training, in order to reach the same goal as for fixed topology training. This kind of training is supported by <a href="fann_cascade-h.html#FANN_Cascade_Training" class=LSection id=link85 onMouseOver="ShowTip(event, 'tt74', 'link85')" onMouseOut="HideTip('tt74')">FANN Cascade Training</a>.</td></tr></table><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#FANN_Training" >FANN Training</a></td><td class=SDescription>There are many different ways of training neural networks and the FANN library supports a number of different approaches.</td></tr><tr class="SClass"><td class=SEntry><a href="#struct_fann_train_data" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">struct fann_train_data</a></td><td class=SDescription>Structure used to store data, for use with training.</td></tr><tr class="SSection"><td class=SEntry><a href="#FANN_Training" >FANN Training</a></td><td class=SDescription></td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Training" >Training</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_train" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">fann_train</a></td><td class=SDescription>Train one iteration with a set of inputs, and a set of desired outputs. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_test" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">fann_test</a></td><td class=SDescription>Test with a set of inputs, and a set of desired outputs. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_get_MSE" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">fann_get_MSE</a></td><td class=SDescription>Reads the mean square error from the network.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_get_bit_fail" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">fann_get_bit_fail</a></td><td class=SDescription>The number of fail bits; means the number of output neurons which differ more than the bit fail limit (see <a href="#fann_get_bit_fail_limit" class=LFunction id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">fann_get_bit_fail_limit</a>, <a href="#fann_set_bit_fail_limit" class=LFunction id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')">fann_set_bit_fail_limit</a>). </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_reset_MSE" id=link8 onMouseOver="ShowTip(event, 'tt8', 'link8')" onMouseOut="HideTip('tt8')">fann_reset_MSE</a></td><td class=SDescription>Resets the mean square error from the network.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Training_Data_Training" >Training Data Training</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_train_on_data" id=link9 onMouseOver="ShowTip(event, 'tt9', 'link9')" onMouseOut="HideTip('tt9')">fann_train_on_data</a></td><td class=SDescription>Trains on an entire dataset, for a period of time.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_train_on_file" id=link10 onMouseOver="ShowTip(event, 'tt10', 'link10')" onMouseOut="HideTip('tt10')">fann_train_on_file</a></td><td class=SDescription>Does the same as <a href="#fann_train_on_data" class=LFunction id=link11 onMouseOver="ShowTip(event, 'tt9', 'link11')" onMouseOut="HideTip('tt9')">fann_train_on_data</a>, but reads the training data directly from a file.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_train_epoch" id=link12 onMouseOver="ShowTip(event, 'tt11', 'link12')" onMouseOut="HideTip('tt11')">fann_train_epoch</a></td><td class=SDescription>Train one epoch with a set of training data.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_test_data" id=link13 onMouseOver="ShowTip(event, 'tt12', 'link13')" onMouseOut="HideTip('tt12')">fann_test_data</a></td><td class=SDescription>Test a set of training data and calculates the MSE for the training data.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Training_Data_Manipulation" >Training Data Manipulation</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_read_train_from_file" id=link14 onMouseOver="ShowTip(event, 'tt13', 'link14')" onMouseOut="HideTip('tt13')">fann_read_train_from_file</a></td><td class=SDescription>Reads a file that stores training data.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_create_train_from_callback" id=link15 onMouseOver="ShowTip(event, 'tt14', 'link15')" onMouseOut="HideTip('tt14')">fann_create_train_from_callback</a></td><td class=SDescription>Creates the training data struct from a user supplied function. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_destroy_train" id=link16 onMouseOver="ShowTip(event, 'tt15', 'link16')" onMouseOut="HideTip('tt15')">fann_destroy_train</a></td><td class=SDescription>Destructs the training data and properly deallocates all of the associated data. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_shuffle_train_data" id=link17 onMouseOver="ShowTip(event, 'tt16', 'link17')" onMouseOut="HideTip('tt16')">fann_shuffle_train_data</a></td><td class=SDescription>Shuffles training data, randomizing the order. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_scale_train" id=link18 onMouseOver="ShowTip(event, 'tt17', 'link18')" onMouseOut="HideTip('tt17')">fann_scale_train</a></td><td class=SDescription>Scale input and output data based on previously calculated parameters.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_descale_train" id=link19 onMouseOver="ShowTip(event, 'tt18', 'link19')" onMouseOut="HideTip('tt18')">fann_descale_train</a></td><td class=SDescription>Descale input and output data based on previously calculated parameters.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_set_input_scaling_params" id=link20 onMouseOver="ShowTip(event, 'tt19', 'link20')" onMouseOut="HideTip('tt19')">fann_set_input_scaling_params</a></td><td class=SDescription>Calculate input scaling parameters for future use based on training data.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_set_output_scaling_params" id=link21 onMouseOver="ShowTip(event, 'tt20', 'link21')" onMouseOut="HideTip('tt20')">fann_set_output_scaling_params</a></td><td class=SDescription>Calculate output scaling parameters for future use based on training data.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_set_scaling_params" id=link22 onMouseOver="ShowTip(event, 'tt21', 'link22')" onMouseOut="HideTip('tt21')">fann_set_scaling_params</a></td><td class=SDescription>Calculate input and output scaling parameters for future use based on training data.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_clear_scaling_params" id=link23 onMouseOver="ShowTip(event, 'tt22', 'link23')" onMouseOut="HideTip('tt22')">fann_clear_scaling_params</a></td><td class=SDescription>Clears scaling parameters.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_scale_input" id=link24 onMouseOver="ShowTip(event, 'tt23', 'link24')" onMouseOut="HideTip('tt23')">fann_scale_input</a></td><td class=SDescription>Scale data in input vector before feed it to ann based on previously calculated parameters.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_scale_output" id=link25 onMouseOver="ShowTip(event, 'tt24', 'link25')" onMouseOut="HideTip('tt24')">fann_scale_output</a></td><td class=SDescription>Scale data in output vector before feed it to ann based on previously calculated parameters.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_descale_input" id=link26 onMouseOver="ShowTip(event, 'tt25', 'link26')" onMouseOut="HideTip('tt25')">fann_descale_input</a></td><td class=SDescription>Scale data in input vector after get it from ann based on previously calculated parameters.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_descale_output" id=link27 onMouseOver="ShowTip(event, 'tt26', 'link27')" onMouseOut="HideTip('tt26')">fann_descale_output</a></td><td class=SDescription>Scale data in output vector after get it from ann based on previously calculated parameters.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_scale_input_train_data" id=link28 onMouseOver="ShowTip(event, 'tt27', 'link28')" onMouseOut="HideTip('tt27')">fann_scale_input_train_data</a></td><td class=SDescription>Scales the inputs in the training data to the specified range.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_scale_output_train_data" id=link29 onMouseOver="ShowTip(event, 'tt28', 'link29')" onMouseOut="HideTip('tt28')">fann_scale_output_train_data</a></td><td class=SDescription>Scales the outputs in the training data to the specified range.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_scale_train_data" id=link30 onMouseOver="ShowTip(event, 'tt29', 'link30')" onMouseOut="HideTip('tt29')">fann_scale_train_data</a></td><td class=SDescription>Scales the inputs and outputs in the training data to the specified range.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_merge_train_data" id=link31 onMouseOver="ShowTip(event, 'tt30', 'link31')" onMouseOut="HideTip('tt30')">fann_merge_train_data</a></td><td class=SDescription>Merges the data from <b>data1</b> and <b>data2</b> into a new <a href="#struct_fann_train_data" class=LClass id=link32 onMouseOver="ShowTip(event, 'tt1', 'link32')" onMouseOut="HideTip('tt1')">struct fann_train_data</a>.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_duplicate_train_data" id=link33 onMouseOver="ShowTip(event, 'tt31', 'link33')" onMouseOut="HideTip('tt31')">fann_duplicate_train_data</a></td><td class=SDescription>Returns an exact copy of a <a href="#struct_fann_train_data" class=LClass id=link34 onMouseOver="ShowTip(event, 'tt1', 'link34')" onMouseOut="HideTip('tt1')">struct fann_train_data</a>.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_subset_train_data" id=link35 onMouseOver="ShowTip(event, 'tt32', 'link35')" onMouseOut="HideTip('tt32')">fann_subset_train_data</a></td><td class=SDescription>Returns an copy of a subset of the <a href="#struct_fann_train_data" class=LClass id=link36 onMouseOver="ShowTip(event, 'tt1', 'link36')" onMouseOut="HideTip('tt1')">struct fann_train_data</a>, starting at position <b>pos</b> and <b>length</b> elements forward.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_length_train_data" id=link37 onMouseOver="ShowTip(event, 'tt33', 'link37')" onMouseOut="HideTip('tt33')">fann_length_train_data</a></td><td class=SDescription>Returns the number of training patterns in the <a href="#struct_fann_train_data" class=LClass id=link38 onMouseOver="ShowTip(event, 'tt1', 'link38')" onMouseOut="HideTip('tt1')">struct fann_train_data</a>.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_num_input_train_data" id=link39 onMouseOver="ShowTip(event, 'tt34', 'link39')" onMouseOut="HideTip('tt34')">fann_num_input_train_data</a></td><td class=SDescription>Returns the number of inputs in each of the training patterns in the <a href="#struct_fann_train_data" class=LClass id=link40 onMouseOver="ShowTip(event, 'tt1', 'link40')" onMouseOut="HideTip('tt1')">struct fann_train_data</a>.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_num_output_train_data" id=link41 onMouseOver="ShowTip(event, 'tt35', 'link41')" onMouseOut="HideTip('tt35')">fann_num_output_train_data</a></td><td class=SDescription>Returns the number of outputs in each of the training patterns in the <a href="#struct_fann_train_data" class=LClass id=link42 onMouseOver="ShowTip(event, 'tt1', 'link42')" onMouseOut="HideTip('tt1')">struct fann_train_data</a>.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_save_train" id=link43 onMouseOver="ShowTip(event, 'tt36', 'link43')" onMouseOut="HideTip('tt36')">fann_save_train</a></td><td class=SDescription>Save the training structure to a file, with the format as specified in <a href="#fann_read_train_from_file" class=LFunction id=link44 onMouseOver="ShowTip(event, 'tt13', 'link44')" onMouseOut="HideTip('tt13')">fann_read_train_from_file</a></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_save_train_to_fixed" id=link45 onMouseOver="ShowTip(event, 'tt37', 'link45')" onMouseOut="HideTip('tt37')">fann_save_train_to_fixed</a></td><td class=SDescription>Saves the training structure to a fixed point data file.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#Parameters" >Parameters</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_get_training_algorithm" id=link46 onMouseOver="ShowTip(event, 'tt38', 'link46')" onMouseOut="HideTip('tt38')">fann_get_training_algorithm</a></td><td class=SDescription>Return the training algorithm as described by <a href="fann_data-h.html#fann_train_enum" class=LType id=link47 onMouseOver="ShowTip(event, 'tt39', 'link47')" onMouseOut="HideTip('tt39')">fann_train_enum</a>. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_set_training_algorithm" id=link48 onMouseOver="ShowTip(event, 'tt40', 'link48')" onMouseOut="HideTip('tt40')">fann_set_training_algorithm</a></td><td class=SDescription>Set the training algorithm.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_get_learning_rate" id=link49 onMouseOver="ShowTip(event, 'tt41', 'link49')" onMouseOut="HideTip('tt41')">fann_get_learning_rate</a></td><td class=SDescription>Return the learning rate.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_set_learning_rate" id=link50 onMouseOver="ShowTip(event, 'tt42', 'link50')" onMouseOut="HideTip('tt42')">fann_set_learning_rate</a></td><td class=SDescription>Set the learning rate.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_get_learning_momentum" id=link51 onMouseOver="ShowTip(event, 'tt43', 'link51')" onMouseOut="HideTip('tt43')">fann_get_learning_momentum</a></td><td class=SDescription>Get the learning momentum.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_set_learning_momentum" id=link52 onMouseOver="ShowTip(event, 'tt44', 'link52')" onMouseOut="HideTip('tt44')">fann_set_learning_momentum</a></td><td class=SDescription>Set the learning momentum.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_get_activation_function" id=link53 onMouseOver="ShowTip(event, 'tt45', 'link53')" onMouseOut="HideTip('tt45')">fann_get_activation_function</a></td><td class=SDescription>Get the activation function for neuron number <b>neuron</b> in layer number <b>layer</b>, counting the input layer as layer 0.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_set_activation_function" id=link54 onMouseOver="ShowTip(event, 'tt46', 'link54')" onMouseOut="HideTip('tt46')">fann_set_activation_function</a></td><td class=SDescription>Set the activation function for neuron number <b>neuron</b> in layer number <b>layer</b>, counting the input layer as layer 0.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_set_activation_function_layer" id=link55 onMouseOver="ShowTip(event, 'tt47', 'link55')" onMouseOut="HideTip('tt47')">fann_set_activation_function_layer</a></td><td class=SDescription>Set the activation function for all the neurons in the layer number <b>layer</b>, counting the input layer as layer 0.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_set_activation_function_hidden" id=link56 onMouseOver="ShowTip(event, 'tt48', 'link56')" onMouseOut="HideTip('tt48')">fann_set_activation_function_hidden</a></td><td class=SDescription>Set the activation function for all of the hidden layers.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_set_activation_function_output" id=link57 onMouseOver="ShowTip(event, 'tt49', 'link57')" onMouseOut="HideTip('tt49')">fann_set_activation_function_output</a></td><td class=SDescription>Set the activation function for the output layer.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_get_activation_steepness" id=link58 onMouseOver="ShowTip(event, 'tt50', 'link58')" onMouseOut="HideTip('tt50')">fann_get_activation_steepness</a></td><td class=SDescription>Get the activation steepness for neuron number <b>neuron</b> in layer number <b>layer</b>, counting the input layer as layer 0.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_set_activation_steepness" id=link59 onMouseOver="ShowTip(event, 'tt51', 'link59')" onMouseOut="HideTip('tt51')">fann_set_activation_steepness</a></td><td class=SDescription>Set the activation steepness for neuron number <b>neuron</b> in layer number <b>layer</b>, counting the input layer as layer 0.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_set_activation_steepness_layer" id=link60 onMouseOver="ShowTip(event, 'tt52', 'link60')" onMouseOut="HideTip('tt52')">fann_set_activation_steepness_layer</a></td><td class=SDescription>Set the activation steepness all of the neurons in layer number <b>layer</b>, counting the input layer as layer 0.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_set_activation_steepness_hidden" id=link61 onMouseOver="ShowTip(event, 'tt53', 'link61')" onMouseOut="HideTip('tt53')">fann_set_activation_steepness_hidden</a></td><td class=SDescription>Set the steepness of the activation steepness in all of the hidden layers.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_set_activation_steepness_output" id=link62 onMouseOver="ShowTip(event, 'tt54', 'link62')" onMouseOut="HideTip('tt54')">fann_set_activation_steepness_output</a></td><td class=SDescription>Set the steepness of the activation steepness in the output layer.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_get_train_error_function" id=link63 onMouseOver="ShowTip(event, 'tt55', 'link63')" onMouseOut="HideTip('tt55')">fann_get_train_error_function</a></td><td class=SDescription>Returns the error function used during training.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_set_train_error_function" id=link64 onMouseOver="ShowTip(event, 'tt56', 'link64')" onMouseOut="HideTip('tt56')">fann_set_train_error_function</a></td><td class=SDescription>Set the error function used during training.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_get_train_stop_function" id=link65 onMouseOver="ShowTip(event, 'tt57', 'link65')" onMouseOut="HideTip('tt57')">fann_get_train_stop_function</a></td><td class=SDescription>Returns the the stop function used during training.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_set_train_stop_function" id=link66 onMouseOver="ShowTip(event, 'tt58', 'link66')" onMouseOut="HideTip('tt58')">fann_set_train_stop_function</a></td><td class=SDescription>Set the stop function used during training.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_get_bit_fail_limit" id=link67 onMouseOver="ShowTip(event, 'tt6', 'link67')" onMouseOut="HideTip('tt6')">fann_get_bit_fail_limit</a></td><td class=SDescription>Returns the bit fail limit used during training.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_set_bit_fail_limit" id=link68 onMouseOver="ShowTip(event, 'tt7', 'link68')" onMouseOut="HideTip('tt7')">fann_set_bit_fail_limit</a></td><td class=SDescription>Set the bit fail limit used during training.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_set_callback" id=link69 onMouseOver="ShowTip(event, 'tt59', 'link69')" onMouseOut="HideTip('tt59')">fann_set_callback</a></td><td class=SDescription>Sets the callback function for use during training.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_get_quickprop_decay" id=link70 onMouseOver="ShowTip(event, 'tt60', 'link70')" onMouseOut="HideTip('tt60')">fann_get_quickprop_decay</a></td><td class=SDescription>The decay is a small negative valued number which is the factor that the weights should become smaller in each iteration during quickprop training. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_set_quickprop_decay" id=link71 onMouseOver="ShowTip(event, 'tt61', 'link71')" onMouseOut="HideTip('tt61')">fann_set_quickprop_decay</a></td><td class=SDescription>Sets the quickprop decay factor.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_get_quickprop_mu" id=link72 onMouseOver="ShowTip(event, 'tt62', 'link72')" onMouseOut="HideTip('tt62')">fann_get_quickprop_mu</a></td><td class=SDescription>The mu factor is used to increase and decrease the step-size during quickprop training. </td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_set_quickprop_mu" id=link73 onMouseOver="ShowTip(event, 'tt63', 'link73')" onMouseOut="HideTip('tt63')">fann_set_quickprop_mu</a></td><td class=SDescription>Sets the quickprop mu factor.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_get_rprop_increase_factor" id=link74 onMouseOver="ShowTip(event, 'tt64', 'link74')" onMouseOut="HideTip('tt64')">fann_get_rprop_increase_factor</a></td><td class=SDescription>The increase factor is a value larger than 1, which is used to increase the step-size during RPROP training.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_set_rprop_increase_factor" id=link75 onMouseOver="ShowTip(event, 'tt65', 'link75')" onMouseOut="HideTip('tt65')">fann_set_rprop_increase_factor</a></td><td class=SDescription>The increase factor used during RPROP training.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_get_rprop_decrease_factor" id=link76 onMouseOver="ShowTip(event, 'tt66', 'link76')" onMouseOut="HideTip('tt66')">fann_get_rprop_decrease_factor</a></td><td class=SDescription>The decrease factor is a value smaller than 1, which is used to decrease the step-size during RPROP training.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_set_rprop_decrease_factor" id=link77 onMouseOver="ShowTip(event, 'tt67', 'link77')" onMouseOut="HideTip('tt67')">fann_set_rprop_decrease_factor</a></td><td class=SDescription>The decrease factor is a value smaller than 1, which is used to decrease the step-size during RPROP training.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_get_rprop_delta_min" id=link78 onMouseOver="ShowTip(event, 'tt68', 'link78')" onMouseOut="HideTip('tt68')">fann_get_rprop_delta_min</a></td><td class=SDescription>The minimum step-size is a small positive number determining how small the minimum step-size may be.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_set_rprop_delta_min" id=link79 onMouseOver="ShowTip(event, 'tt69', 'link79')" onMouseOut="HideTip('tt69')">fann_set_rprop_delta_min</a></td><td class=SDescription>The minimum step-size is a small positive number determining how small the minimum step-size may be.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_get_rprop_delta_max" id=link80 onMouseOver="ShowTip(event, 'tt70', 'link80')" onMouseOut="HideTip('tt70')">fann_get_rprop_delta_max</a></td><td class=SDescription>The maximum step-size is a positive number determining how large the maximum step-size may be.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_set_rprop_delta_max" id=link81 onMouseOver="ShowTip(event, 'tt71', 'link81')" onMouseOut="HideTip('tt71')">fann_set_rprop_delta_max</a></td><td class=SDescription>The maximum step-size is a positive number determining how large the maximum step-size may be.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#fann_get_rprop_delta_zero" id=link82 onMouseOver="ShowTip(event, 'tt72', 'link82')" onMouseOut="HideTip('tt72')">fann_get_rprop_delta_zero</a></td><td class=SDescription>The initial step-size is a positive number determining the initial step size.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#fann_set_rprop_delta_zero" id=link83 onMouseOver="ShowTip(event, 'tt73', 'link83')" onMouseOut="HideTip('tt73')">fann_set_rprop_delta_zero</a></td><td class=SDescription>The initial step-size is a positive number determining the initial step size.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
<div class="CClass"><div class=CTopic><h2 class=CTitle><a name="struct_fann_train_data"></a>struct fann_train_data</h2><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">struct fann_train_data</td></tr></table></blockquote><p>Structure used to store data, for use with training.</p><p>The data inside this structure should never be manipulated directly, but should use some of the supplied functions in <a href="#Training_Data_Manipulation" class=LGroup >Training Data Manipulation</a>.</p><p>The training data structure is very usefull for storing data during training and testing of a neural network.</p><h4 class=CHeading>See also</h4><p><a href="#fann_read_train_from_file" class=LFunction id=link86 onMouseOver="ShowTip(event, 'tt13', 'link86')" onMouseOut="HideTip('tt13')">fann_read_train_from_file</a>, <a href="#fann_train_on_data" class=LFunction id=link87 onMouseOver="ShowTip(event, 'tt9', 'link87')" onMouseOut="HideTip('tt9')">fann_train_on_data</a>, <a href="#fann_destroy_train" class=LFunction id=link88 onMouseOver="ShowTip(event, 'tt15', 'link88')" onMouseOut="HideTip('tt15')">fann_destroy_train</a></p></div></div></div>
<div class="CSection"><div class=CTopic><h2 class=CTitle><a name="FANN_Training"></a>FANN Training</h2><div class=CBody><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SGroup"><td class=SEntry><a href="#Training" >Training</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_train" id=link89 onMouseOver="ShowTip(event, 'tt2', 'link89')" onMouseOut="HideTip('tt2')">fann_train</a></td><td class=SDescription>Train one iteration with a set of inputs, and a set of desired outputs. </td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_test" id=link90 onMouseOver="ShowTip(event, 'tt3', 'link90')" onMouseOut="HideTip('tt3')">fann_test</a></td><td class=SDescription>Test with a set of inputs, and a set of desired outputs. </td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_get_MSE" id=link91 onMouseOver="ShowTip(event, 'tt4', 'link91')" onMouseOut="HideTip('tt4')">fann_get_MSE</a></td><td class=SDescription>Reads the mean square error from the network.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_get_bit_fail" id=link92 onMouseOver="ShowTip(event, 'tt5', 'link92')" onMouseOut="HideTip('tt5')">fann_get_bit_fail</a></td><td class=SDescription>The number of fail bits; means the number of output neurons which differ more than the bit fail limit (see <a href="#fann_get_bit_fail_limit" class=LFunction id=link93 onMouseOver="ShowTip(event, 'tt6', 'link93')" onMouseOut="HideTip('tt6')">fann_get_bit_fail_limit</a>, <a href="#fann_set_bit_fail_limit" class=LFunction id=link94 onMouseOver="ShowTip(event, 'tt7', 'link94')" onMouseOut="HideTip('tt7')">fann_set_bit_fail_limit</a>). </td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_reset_MSE" id=link95 onMouseOver="ShowTip(event, 'tt8', 'link95')" onMouseOut="HideTip('tt8')">fann_reset_MSE</a></td><td class=SDescription>Resets the mean square error from the network.</td></tr><tr class="SGroup"><td class=SEntry><a href="#Training_Data_Training" >Training Data Training</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_train_on_data" id=link96 onMouseOver="ShowTip(event, 'tt9', 'link96')" onMouseOut="HideTip('tt9')">fann_train_on_data</a></td><td class=SDescription>Trains on an entire dataset, for a period of time.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_train_on_file" id=link97 onMouseOver="ShowTip(event, 'tt10', 'link97')" onMouseOut="HideTip('tt10')">fann_train_on_file</a></td><td class=SDescription>Does the same as <a href="#fann_train_on_data" class=LFunction id=link98 onMouseOver="ShowTip(event, 'tt9', 'link98')" onMouseOut="HideTip('tt9')">fann_train_on_data</a>, but reads the training data directly from a file.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_train_epoch" id=link99 onMouseOver="ShowTip(event, 'tt11', 'link99')" onMouseOut="HideTip('tt11')">fann_train_epoch</a></td><td class=SDescription>Train one epoch with a set of training data.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_test_data" id=link100 onMouseOver="ShowTip(event, 'tt12', 'link100')" onMouseOut="HideTip('tt12')">fann_test_data</a></td><td class=SDescription>Test a set of training data and calculates the MSE for the training data.</td></tr><tr class="SGroup"><td class=SEntry><a href="#Training_Data_Manipulation" >Training Data Manipulation</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_read_train_from_file" id=link101 onMouseOver="ShowTip(event, 'tt13', 'link101')" onMouseOut="HideTip('tt13')">fann_read_train_from_file</a></td><td class=SDescription>Reads a file that stores training data.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_create_train_from_callback" id=link102 onMouseOver="ShowTip(event, 'tt14', 'link102')" onMouseOut="HideTip('tt14')">fann_create_train_from_callback</a></td><td class=SDescription>Creates the training data struct from a user supplied function. </td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_destroy_train" id=link103 onMouseOver="ShowTip(event, 'tt15', 'link103')" onMouseOut="HideTip('tt15')">fann_destroy_train</a></td><td class=SDescription>Destructs the training data and properly deallocates all of the associated data. </td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_shuffle_train_data" id=link104 onMouseOver="ShowTip(event, 'tt16', 'link104')" onMouseOut="HideTip('tt16')">fann_shuffle_train_data</a></td><td class=SDescription>Shuffles training data, randomizing the order. </td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_scale_train" id=link105 onMouseOver="ShowTip(event, 'tt17', 'link105')" onMouseOut="HideTip('tt17')">fann_scale_train</a></td><td class=SDescription>Scale input and output data based on previously calculated parameters.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_descale_train" id=link106 onMouseOver="ShowTip(event, 'tt18', 'link106')" onMouseOut="HideTip('tt18')">fann_descale_train</a></td><td class=SDescription>Descale input and output data based on previously calculated parameters.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_set_input_scaling_params" id=link107 onMouseOver="ShowTip(event, 'tt19', 'link107')" onMouseOut="HideTip('tt19')">fann_set_input_scaling_params</a></td><td class=SDescription>Calculate input scaling parameters for future use based on training data.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_set_output_scaling_params" id=link108 onMouseOver="ShowTip(event, 'tt20', 'link108')" onMouseOut="HideTip('tt20')">fann_set_output_scaling_params</a></td><td class=SDescription>Calculate output scaling parameters for future use based on training data.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_set_scaling_params" id=link109 onMouseOver="ShowTip(event, 'tt21', 'link109')" onMouseOut="HideTip('tt21')">fann_set_scaling_params</a></td><td class=SDescription>Calculate input and output scaling parameters for future use based on training data.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_clear_scaling_params" id=link110 onMouseOver="ShowTip(event, 'tt22', 'link110')" onMouseOut="HideTip('tt22')">fann_clear_scaling_params</a></td><td class=SDescription>Clears scaling parameters.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_scale_input" id=link111 onMouseOver="ShowTip(event, 'tt23', 'link111')" onMouseOut="HideTip('tt23')">fann_scale_input</a></td><td class=SDescription>Scale data in input vector before feed it to ann based on previously calculated parameters.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_scale_output" id=link112 onMouseOver="ShowTip(event, 'tt24', 'link112')" onMouseOut="HideTip('tt24')">fann_scale_output</a></td><td class=SDescription>Scale data in output vector before feed it to ann based on previously calculated parameters.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_descale_input" id=link113 onMouseOver="ShowTip(event, 'tt25', 'link113')" onMouseOut="HideTip('tt25')">fann_descale_input</a></td><td class=SDescription>Scale data in input vector after get it from ann based on previously calculated parameters.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_descale_output" id=link114 onMouseOver="ShowTip(event, 'tt26', 'link114')" onMouseOut="HideTip('tt26')">fann_descale_output</a></td><td class=SDescription>Scale data in output vector after get it from ann based on previously calculated parameters.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_scale_input_train_data" id=link115 onMouseOver="ShowTip(event, 'tt27', 'link115')" onMouseOut="HideTip('tt27')">fann_scale_input_train_data</a></td><td class=SDescription>Scales the inputs in the training data to the specified range.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_scale_output_train_data" id=link116 onMouseOver="ShowTip(event, 'tt28', 'link116')" onMouseOut="HideTip('tt28')">fann_scale_output_train_data</a></td><td class=SDescription>Scales the outputs in the training data to the specified range.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_scale_train_data" id=link117 onMouseOver="ShowTip(event, 'tt29', 'link117')" onMouseOut="HideTip('tt29')">fann_scale_train_data</a></td><td class=SDescription>Scales the inputs and outputs in the training data to the specified range.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_merge_train_data" id=link118 onMouseOver="ShowTip(event, 'tt30', 'link118')" onMouseOut="HideTip('tt30')">fann_merge_train_data</a></td><td class=SDescription>Merges the data from <b>data1</b> and <b>data2</b> into a new <a href="#struct_fann_train_data" class=LClass id=link119 onMouseOver="ShowTip(event, 'tt1', 'link119')" onMouseOut="HideTip('tt1')">struct fann_train_data</a>.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_duplicate_train_data" id=link120 onMouseOver="ShowTip(event, 'tt31', 'link120')" onMouseOut="HideTip('tt31')">fann_duplicate_train_data</a></td><td class=SDescription>Returns an exact copy of a <a href="#struct_fann_train_data" class=LClass id=link121 onMouseOver="ShowTip(event, 'tt1', 'link121')" onMouseOut="HideTip('tt1')">struct fann_train_data</a>.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_subset_train_data" id=link122 onMouseOver="ShowTip(event, 'tt32', 'link122')" onMouseOut="HideTip('tt32')">fann_subset_train_data</a></td><td class=SDescription>Returns an copy of a subset of the <a href="#struct_fann_train_data" class=LClass id=link123 onMouseOver="ShowTip(event, 'tt1', 'link123')" onMouseOut="HideTip('tt1')">struct fann_train_data</a>, starting at position <b>pos</b> and <b>length</b> elements forward.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_length_train_data" id=link124 onMouseOver="ShowTip(event, 'tt33', 'link124')" onMouseOut="HideTip('tt33')">fann_length_train_data</a></td><td class=SDescription>Returns the number of training patterns in the <a href="#struct_fann_train_data" class=LClass id=link125 onMouseOver="ShowTip(event, 'tt1', 'link125')" onMouseOut="HideTip('tt1')">struct fann_train_data</a>.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_num_input_train_data" id=link126 onMouseOver="ShowTip(event, 'tt34', 'link126')" onMouseOut="HideTip('tt34')">fann_num_input_train_data</a></td><td class=SDescription>Returns the number of inputs in each of the training patterns in the <a href="#struct_fann_train_data" class=LClass id=link127 onMouseOver="ShowTip(event, 'tt1', 'link127')" onMouseOut="HideTip('tt1')">struct fann_train_data</a>.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_num_output_train_data" id=link128 onMouseOver="ShowTip(event, 'tt35', 'link128')" onMouseOut="HideTip('tt35')">fann_num_output_train_data</a></td><td class=SDescription>Returns the number of outputs in each of the training patterns in the <a href="#struct_fann_train_data" class=LClass id=link129 onMouseOver="ShowTip(event, 'tt1', 'link129')" onMouseOut="HideTip('tt1')">struct fann_train_data</a>.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_save_train" id=link130 onMouseOver="ShowTip(event, 'tt36', 'link130')" onMouseOut="HideTip('tt36')">fann_save_train</a></td><td class=SDescription>Save the training structure to a file, with the format as specified in <a href="#fann_read_train_from_file" class=LFunction id=link131 onMouseOver="ShowTip(event, 'tt13', 'link131')" onMouseOut="HideTip('tt13')">fann_read_train_from_file</a></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_save_train_to_fixed" id=link132 onMouseOver="ShowTip(event, 'tt37', 'link132')" onMouseOut="HideTip('tt37')">fann_save_train_to_fixed</a></td><td class=SDescription>Saves the training structure to a fixed point data file.</td></tr><tr class="SGroup"><td class=SEntry><a href="#Parameters" >Parameters</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_get_training_algorithm" id=link133 onMouseOver="ShowTip(event, 'tt38', 'link133')" onMouseOut="HideTip('tt38')">fann_get_training_algorithm</a></td><td class=SDescription>Return the training algorithm as described by <a href="fann_data-h.html#fann_train_enum" class=LType id=link134 onMouseOver="ShowTip(event, 'tt39', 'link134')" onMouseOut="HideTip('tt39')">fann_train_enum</a>. </td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_set_training_algorithm" id=link135 onMouseOver="ShowTip(event, 'tt40', 'link135')" onMouseOut="HideTip('tt40')">fann_set_training_algorithm</a></td><td class=SDescription>Set the training algorithm.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_get_learning_rate" id=link136 onMouseOver="ShowTip(event, 'tt41', 'link136')" onMouseOut="HideTip('tt41')">fann_get_learning_rate</a></td><td class=SDescription>Return the learning rate.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_set_learning_rate" id=link137 onMouseOver="ShowTip(event, 'tt42', 'link137')" onMouseOut="HideTip('tt42')">fann_set_learning_rate</a></td><td class=SDescription>Set the learning rate.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_get_learning_momentum" id=link138 onMouseOver="ShowTip(event, 'tt43', 'link138')" onMouseOut="HideTip('tt43')">fann_get_learning_momentum</a></td><td class=SDescription>Get the learning momentum.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_set_learning_momentum" id=link139 onMouseOver="ShowTip(event, 'tt44', 'link139')" onMouseOut="HideTip('tt44')">fann_set_learning_momentum</a></td><td class=SDescription>Set the learning momentum.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_get_activation_function" id=link140 onMouseOver="ShowTip(event, 'tt45', 'link140')" onMouseOut="HideTip('tt45')">fann_get_activation_function</a></td><td class=SDescription>Get the activation function for neuron number <b>neuron</b> in layer number <b>layer</b>, counting the input layer as layer 0.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_set_activation_function" id=link141 onMouseOver="ShowTip(event, 'tt46', 'link141')" onMouseOut="HideTip('tt46')">fann_set_activation_function</a></td><td class=SDescription>Set the activation function for neuron number <b>neuron</b> in layer number <b>layer</b>, counting the input layer as layer 0.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_set_activation_function_layer" id=link142 onMouseOver="ShowTip(event, 'tt47', 'link142')" onMouseOut="HideTip('tt47')">fann_set_activation_function_layer</a></td><td class=SDescription>Set the activation function for all the neurons in the layer number <b>layer</b>, counting the input layer as layer 0.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_set_activation_function_hidden" id=link143 onMouseOver="ShowTip(event, 'tt48', 'link143')" onMouseOut="HideTip('tt48')">fann_set_activation_function_hidden</a></td><td class=SDescription>Set the activation function for all of the hidden layers.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_set_activation_function_output" id=link144 onMouseOver="ShowTip(event, 'tt49', 'link144')" onMouseOut="HideTip('tt49')">fann_set_activation_function_output</a></td><td class=SDescription>Set the activation function for the output layer.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_get_activation_steepness" id=link145 onMouseOver="ShowTip(event, 'tt50', 'link145')" onMouseOut="HideTip('tt50')">fann_get_activation_steepness</a></td><td class=SDescription>Get the activation steepness for neuron number <b>neuron</b> in layer number <b>layer</b>, counting the input layer as layer 0.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_set_activation_steepness" id=link146 onMouseOver="ShowTip(event, 'tt51', 'link146')" onMouseOut="HideTip('tt51')">fann_set_activation_steepness</a></td><td class=SDescription>Set the activation steepness for neuron number <b>neuron</b> in layer number <b>layer</b>, counting the input layer as layer 0.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_set_activation_steepness_layer" id=link147 onMouseOver="ShowTip(event, 'tt52', 'link147')" onMouseOut="HideTip('tt52')">fann_set_activation_steepness_layer</a></td><td class=SDescription>Set the activation steepness all of the neurons in layer number <b>layer</b>, counting the input layer as layer 0.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_set_activation_steepness_hidden" id=link148 onMouseOver="ShowTip(event, 'tt53', 'link148')" onMouseOut="HideTip('tt53')">fann_set_activation_steepness_hidden</a></td><td class=SDescription>Set the steepness of the activation steepness in all of the hidden layers.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_set_activation_steepness_output" id=link149 onMouseOver="ShowTip(event, 'tt54', 'link149')" onMouseOut="HideTip('tt54')">fann_set_activation_steepness_output</a></td><td class=SDescription>Set the steepness of the activation steepness in the output layer.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_get_train_error_function" id=link150 onMouseOver="ShowTip(event, 'tt55', 'link150')" onMouseOut="HideTip('tt55')">fann_get_train_error_function</a></td><td class=SDescription>Returns the error function used during training.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_set_train_error_function" id=link151 onMouseOver="ShowTip(event, 'tt56', 'link151')" onMouseOut="HideTip('tt56')">fann_set_train_error_function</a></td><td class=SDescription>Set the error function used during training.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_get_train_stop_function" id=link152 onMouseOver="ShowTip(event, 'tt57', 'link152')" onMouseOut="HideTip('tt57')">fann_get_train_stop_function</a></td><td class=SDescription>Returns the the stop function used during training.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_set_train_stop_function" id=link153 onMouseOver="ShowTip(event, 'tt58', 'link153')" onMouseOut="HideTip('tt58')">fann_set_train_stop_function</a></td><td class=SDescription>Set the stop function used during training.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_get_bit_fail_limit" id=link154 onMouseOver="ShowTip(event, 'tt6', 'link154')" onMouseOut="HideTip('tt6')">fann_get_bit_fail_limit</a></td><td class=SDescription>Returns the bit fail limit used during training.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_set_bit_fail_limit" id=link155 onMouseOver="ShowTip(event, 'tt7', 'link155')" onMouseOut="HideTip('tt7')">fann_set_bit_fail_limit</a></td><td class=SDescription>Set the bit fail limit used during training.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_set_callback" id=link156 onMouseOver="ShowTip(event, 'tt59', 'link156')" onMouseOut="HideTip('tt59')">fann_set_callback</a></td><td class=SDescription>Sets the callback function for use during training.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_get_quickprop_decay" id=link157 onMouseOver="ShowTip(event, 'tt60', 'link157')" onMouseOut="HideTip('tt60')">fann_get_quickprop_decay</a></td><td class=SDescription>The decay is a small negative valued number which is the factor that the weights should become smaller in each iteration during quickprop training. </td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_set_quickprop_decay" id=link158 onMouseOver="ShowTip(event, 'tt61', 'link158')" onMouseOut="HideTip('tt61')">fann_set_quickprop_decay</a></td><td class=SDescription>Sets the quickprop decay factor.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_get_quickprop_mu" id=link159 onMouseOver="ShowTip(event, 'tt62', 'link159')" onMouseOut="HideTip('tt62')">fann_get_quickprop_mu</a></td><td class=SDescription>The mu factor is used to increase and decrease the step-size during quickprop training. </td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_set_quickprop_mu" id=link160 onMouseOver="ShowTip(event, 'tt63', 'link160')" onMouseOut="HideTip('tt63')">fann_set_quickprop_mu</a></td><td class=SDescription>Sets the quickprop mu factor.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_get_rprop_increase_factor" id=link161 onMouseOver="ShowTip(event, 'tt64', 'link161')" onMouseOut="HideTip('tt64')">fann_get_rprop_increase_factor</a></td><td class=SDescription>The increase factor is a value larger than 1, which is used to increase the step-size during RPROP training.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_set_rprop_increase_factor" id=link162 onMouseOver="ShowTip(event, 'tt65', 'link162')" onMouseOut="HideTip('tt65')">fann_set_rprop_increase_factor</a></td><td class=SDescription>The increase factor used during RPROP training.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_get_rprop_decrease_factor" id=link163 onMouseOver="ShowTip(event, 'tt66', 'link163')" onMouseOut="HideTip('tt66')">fann_get_rprop_decrease_factor</a></td><td class=SDescription>The decrease factor is a value smaller than 1, which is used to decrease the step-size during RPROP training.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_set_rprop_decrease_factor" id=link164 onMouseOver="ShowTip(event, 'tt67', 'link164')" onMouseOut="HideTip('tt67')">fann_set_rprop_decrease_factor</a></td><td class=SDescription>The decrease factor is a value smaller than 1, which is used to decrease the step-size during RPROP training.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_get_rprop_delta_min" id=link165 onMouseOver="ShowTip(event, 'tt68', 'link165')" onMouseOut="HideTip('tt68')">fann_get_rprop_delta_min</a></td><td class=SDescription>The minimum step-size is a small positive number determining how small the minimum step-size may be.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_set_rprop_delta_min" id=link166 onMouseOver="ShowTip(event, 'tt69', 'link166')" onMouseOut="HideTip('tt69')">fann_set_rprop_delta_min</a></td><td class=SDescription>The minimum step-size is a small positive number determining how small the minimum step-size may be.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_get_rprop_delta_max" id=link167 onMouseOver="ShowTip(event, 'tt70', 'link167')" onMouseOut="HideTip('tt70')">fann_get_rprop_delta_max</a></td><td class=SDescription>The maximum step-size is a positive number determining how large the maximum step-size may be.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_set_rprop_delta_max" id=link168 onMouseOver="ShowTip(event, 'tt71', 'link168')" onMouseOut="HideTip('tt71')">fann_set_rprop_delta_max</a></td><td class=SDescription>The maximum step-size is a positive number determining how large the maximum step-size may be.</td></tr><tr class="SFunction SIndent1"><td class=SEntry><a href="#fann_get_rprop_delta_zero" id=link169 onMouseOver="ShowTip(event, 'tt72', 'link169')" onMouseOut="HideTip('tt72')">fann_get_rprop_delta_zero</a></td><td class=SDescription>The initial step-size is a positive number determining the initial step size.</td></tr><tr class="SFunction SIndent1 SMarked"><td class=SEntry><a href="#fann_set_rprop_delta_zero" id=link170 onMouseOver="ShowTip(event, 'tt73', 'link170')" onMouseOut="HideTip('tt73')">fann_set_rprop_delta_zero</a></td><td class=SDescription>The initial step-size is a positive number determining the initial step size.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Training"></a>Training</h3></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_train"></a>fann_train</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_train(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>input,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>desired_output</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Train one iteration with a set of inputs, and a set of desired outputs. This training is always incremental training (see <a href="fann_data-h.html#fann_train_enum" class=LType id=link171 onMouseOver="ShowTip(event, 'tt39', 'link171')" onMouseOut="HideTip('tt39')">fann_train_enum</a>), since only one pattern is presented.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>ann</td><td class=CDLDescription>The neural network structure</td></tr><tr><td class=CDLEntry>input</td><td class=CDLDescription>an array of inputs. This array must be exactly <a href="fann-h.html#fann_get_num_input" class=LFunction id=link172 onMouseOver="ShowTip(event, 'tt75', 'link172')" onMouseOut="HideTip('tt75')">fann_get_num_input</a> long.</td></tr><tr><td class=CDLEntry>desired_output</td><td class=CDLDescription>an array of desired outputs. This array must be exactly <a href="fann-h.html#fann_get_num_output" class=LFunction id=link173 onMouseOver="ShowTip(event, 'tt76', 'link173')" onMouseOut="HideTip('tt76')">fann_get_num_output</a> long.</td></tr></table><h4 class=CHeading>See also</h4><p><a href="#fann_train_on_data" class=LFunction id=link174 onMouseOver="ShowTip(event, 'tt9', 'link174')" onMouseOut="HideTip('tt9')">fann_train_on_data</a>, <a href="#fann_train_epoch" class=LFunction id=link175 onMouseOver="ShowTip(event, 'tt11', 'link175')" onMouseOut="HideTip('tt11')">fann_train_epoch</a></p><p>This function appears in FANN >= 1.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_test"></a>fann_test</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL fann_type * FANN_API fann_test(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>input,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>desired_output</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Test with a set of inputs, and a set of desired outputs. This operation updates the mean square error, but does not change the network in any way.</p><h4 class=CHeading>See also</h4><p><a href="#fann_test_data" class=LFunction id=link176 onMouseOver="ShowTip(event, 'tt12', 'link176')" onMouseOut="HideTip('tt12')">fann_test_data</a>, <a href="#fann_train" class=LFunction id=link177 onMouseOver="ShowTip(event, 'tt2', 'link177')" onMouseOut="HideTip('tt2')">fann_train</a></p><p>This function appears in FANN >= 1.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_get_MSE"></a>fann_get_MSE</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL float FANN_API fann_get_MSE(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Reads the mean square error from the network.</p><p>Reads the mean square error from the network. This value is calculated during training or testing, and can therefore sometimes be a bit off if the weights have been changed since the last calculation of the value.</p><h4 class=CHeading>See also</h4><p><a href="#fann_test_data" class=LFunction id=link178 onMouseOver="ShowTip(event, 'tt12', 'link178')" onMouseOut="HideTip('tt12')">fann_test_data</a></p><p>This function appears in FANN >= 1.1.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_get_bit_fail"></a>fann_get_bit_fail</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL unsigned int FANN_API fann_get_bit_fail(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>The number of fail bits; means the number of output neurons which differ more than the bit fail limit (see <a href="#fann_get_bit_fail_limit" class=LFunction id=link179 onMouseOver="ShowTip(event, 'tt6', 'link179')" onMouseOut="HideTip('tt6')">fann_get_bit_fail_limit</a>, <a href="#fann_set_bit_fail_limit" class=LFunction id=link180 onMouseOver="ShowTip(event, 'tt7', 'link180')" onMouseOut="HideTip('tt7')">fann_set_bit_fail_limit</a>). The bits are counted in all of the training data, so this number can be higher than the number of training data.</p><p>This value is reset by <a href="#fann_reset_MSE" class=LFunction id=link181 onMouseOver="ShowTip(event, 'tt8', 'link181')" onMouseOut="HideTip('tt8')">fann_reset_MSE</a> and updated by all the same functions which also updates the MSE value (e.g. <a href="#fann_test_data" class=LFunction id=link182 onMouseOver="ShowTip(event, 'tt12', 'link182')" onMouseOut="HideTip('tt12')">fann_test_data</a>, <a href="#fann_train_epoch" class=LFunction id=link183 onMouseOver="ShowTip(event, 'tt11', 'link183')" onMouseOut="HideTip('tt11')">fann_train_epoch</a>)</p><h4 class=CHeading>See also</h4><p><a href="fann_data-h.html#fann_stopfunc_enum" class=LType id=link184 onMouseOver="ShowTip(event, 'tt77', 'link184')" onMouseOut="HideTip('tt77')">fann_stopfunc_enum</a>, <a href="#fann_get_MSE" class=LFunction id=link185 onMouseOver="ShowTip(event, 'tt4', 'link185')" onMouseOut="HideTip('tt4')">fann_get_MSE</a></p><p>This function appears in FANN >= 2.0.0</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_reset_MSE"></a>fann_reset_MSE</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_reset_MSE(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Resets the mean square error from the network.</p><p>This function also resets the number of bits that fail.</p><h4 class=CHeading>See also</h4><p><a href="#fann_get_MSE" class=LFunction id=link186 onMouseOver="ShowTip(event, 'tt4', 'link186')" onMouseOut="HideTip('tt4')">fann_get_MSE</a>, <a href="#fann_get_bit_fail_limit" class=LFunction id=link187 onMouseOver="ShowTip(event, 'tt6', 'link187')" onMouseOut="HideTip('tt6')">fann_get_bit_fail_limit</a></p><p>This function appears in FANN >= 1.1.0</p></div></div></div>
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Training_Data_Training"></a>Training Data Training</h3></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_train_on_data"></a>fann_train_on_data</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_train_on_data(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>data,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>unsigned </td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>max_epochs,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>unsigned </td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>epochs_between_reports,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>desired_error</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Trains on an entire dataset, for a period of time.</p><p>This training uses the training algorithm chosen by <a href="#fann_set_training_algorithm" class=LFunction id=link188 onMouseOver="ShowTip(event, 'tt40', 'link188')" onMouseOut="HideTip('tt40')">fann_set_training_algorithm</a>, and the parameters set for these training algorithms.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>ann</td><td class=CDLDescription>The neural network</td></tr><tr><td class=CDLEntry>data</td><td class=CDLDescription>The data, which should be used during training</td></tr><tr><td class=CDLEntry>max_epochs</td><td class=CDLDescription>The maximum number of epochs the training should continue</td></tr><tr><td class=CDLEntry>epochs_between_reports</td><td class=CDLDescription>The number of epochs between printing a status report to stdout. A value of zero means no reports should be printed.</td></tr><tr><td class=CDLEntry>desired_error</td><td class=CDLDescription>The desired <a href="#fann_get_MSE" class=LFunction id=link189 onMouseOver="ShowTip(event, 'tt4', 'link189')" onMouseOut="HideTip('tt4')">fann_get_MSE</a> or <a href="#fann_get_bit_fail" class=LFunction id=link190 onMouseOver="ShowTip(event, 'tt5', 'link190')" onMouseOut="HideTip('tt5')">fann_get_bit_fail</a>, depending on which stop function is chosen by <a href="#fann_set_train_stop_function" class=LFunction id=link191 onMouseOver="ShowTip(event, 'tt58', 'link191')" onMouseOut="HideTip('tt58')">fann_set_train_stop_function</a>.</td></tr></table><p>Instead of printing out reports every epochs_between_reports, a callback function can be called (see <a href="#fann_set_callback" class=LFunction id=link192 onMouseOver="ShowTip(event, 'tt59', 'link192')" onMouseOut="HideTip('tt59')">fann_set_callback</a>).</p><h4 class=CHeading>See also</h4><p><a href="#fann_train_on_file" class=LFunction id=link193 onMouseOver="ShowTip(event, 'tt10', 'link193')" onMouseOut="HideTip('tt10')">fann_train_on_file</a>, <a href="#fann_train_epoch" class=LFunction id=link194 onMouseOver="ShowTip(event, 'tt11', 'link194')" onMouseOut="HideTip('tt11')">fann_train_epoch</a>, <a href="#Parameters" class=LGroup >Parameters</a></p><p>This function appears in FANN >= 1.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_train_on_file"></a>fann_train_on_file</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_train_on_file(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>const </td><td class="PType prettyprint " nowrap>char </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>filename,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>unsigned </td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>max_epochs,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>unsigned </td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>epochs_between_reports,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>desired_error</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Does the same as <a href="#fann_train_on_data" class=LFunction id=link195 onMouseOver="ShowTip(event, 'tt9', 'link195')" onMouseOut="HideTip('tt9')">fann_train_on_data</a>, but reads the training data directly from a file.</p><h4 class=CHeading>See also</h4><p><a href="#fann_train_on_data" class=LFunction id=link196 onMouseOver="ShowTip(event, 'tt9', 'link196')" onMouseOut="HideTip('tt9')">fann_train_on_data</a></p><p>This function appears in FANN >= 1.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_train_epoch"></a>fann_train_epoch</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL float FANN_API fann_train_epoch(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>data</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Train one epoch with a set of training data.</p><p>Train one epoch with the training data stored in data. One epoch is where all of the training data is considered exactly once.</p><p>This function returns the MSE error as it is calculated either before or during the actual training. This is not the actual MSE after the training epoch, but since calculating this will require to go through the entire training set once more, it is more than adequate to use this value during training.</p><p>The training algorithm used by this function is chosen by the <a href="#fann_set_training_algorithm" class=LFunction id=link197 onMouseOver="ShowTip(event, 'tt40', 'link197')" onMouseOut="HideTip('tt40')">fann_set_training_algorithm</a> function.</p><h4 class=CHeading>See also</h4><p><a href="#fann_train_on_data" class=LFunction id=link198 onMouseOver="ShowTip(event, 'tt9', 'link198')" onMouseOut="HideTip('tt9')">fann_train_on_data</a>, <a href="#fann_test_data" class=LFunction id=link199 onMouseOver="ShowTip(event, 'tt12', 'link199')" onMouseOut="HideTip('tt12')">fann_test_data</a></p><p>This function appears in FANN >= 1.2.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_test_data"></a>fann_test_data</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL float FANN_API fann_test_data(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>data</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Test a set of training data and calculates the MSE for the training data.</p><p>This function updates the MSE and the bit fail values.</p><h4 class=CHeading>See also</h4><p><a href="#fann_test" class=LFunction id=link200 onMouseOver="ShowTip(event, 'tt3', 'link200')" onMouseOut="HideTip('tt3')">fann_test</a>, <a href="#fann_get_MSE" class=LFunction id=link201 onMouseOver="ShowTip(event, 'tt4', 'link201')" onMouseOut="HideTip('tt4')">fann_get_MSE</a>, <a href="#fann_get_bit_fail" class=LFunction id=link202 onMouseOver="ShowTip(event, 'tt5', 'link202')" onMouseOut="HideTip('tt5')">fann_get_bit_fail</a></p><p>This function appears in FANN >= 1.2.0.</p></div></div></div>
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Training_Data_Manipulation"></a>Training Data Manipulation</h3></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_read_train_from_file"></a>fann_read_train_from_file</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL struct fann_train_data *FANN_API fann_read_train_from_file(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>const </td><td class="PType prettyprint " nowrap>char </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>filename</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Reads a file that stores training data.</p><h4 class=CHeading>The file must be formatted like</h4><blockquote><pre>num_train_data num_input num_output
inputdata seperated by space
outputdata seperated by space
.
.
.
inputdata seperated by space
outputdata seperated by space</pre></blockquote><h4 class=CHeading>See also</h4><p><a href="#fann_train_on_data" class=LFunction id=link203 onMouseOver="ShowTip(event, 'tt9', 'link203')" onMouseOut="HideTip('tt9')">fann_train_on_data</a>, <a href="#fann_destroy_train" class=LFunction id=link204 onMouseOver="ShowTip(event, 'tt15', 'link204')" onMouseOut="HideTip('tt15')">fann_destroy_train</a>, <a href="#fann_save_train" class=LFunction id=link205 onMouseOver="ShowTip(event, 'tt36', 'link205')" onMouseOut="HideTip('tt36')">fann_save_train</a></p><p>This function appears in FANN >= 1.0.0</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_create_train_from_callback"></a>fann_create_train_from_callback</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=4>FANN_EXTERNAL struct fann_train_data * FANN_API fann_create_train_from_callback(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>unsigned </td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap width=100%>num_data,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>unsigned </td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap width=100%>num_input,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>unsigned </td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap width=100%>num_output,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>void </td><td class="PParameter prettyprint " nowrap width=100%>(FANN_API *user_function)( unsigned int, unsigned int, unsigned int, fann_type * , fann_type * )</td></tr><tr><td class="PAfterParameters prettyprint "colspan=4>)</td></tr></table></td></tr></table></blockquote><p>Creates the training data struct from a user supplied function. As the training data are numerable (data 1, data 2...), the user must write a function that receives the number of the training data set (input,output) and returns the set.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>num_data</td><td class=CDLDescription>The number of training data</td></tr><tr><td class=CDLEntry>num_input</td><td class=CDLDescription>The number of inputs per training data</td></tr><tr><td class=CDLEntry>num_output</td><td class=CDLDescription>The number of ouputs per training data</td></tr><tr><td class=CDLEntry>user_function</td><td class=CDLDescription>The user suplied function</td></tr></table><h4 class=CHeading>Parameters for the user function</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>num</td><td class=CDLDescription>The number of the training data set</td></tr><tr><td class=CDLEntry>num_input</td><td class=CDLDescription>The number of inputs per training data</td></tr><tr><td class=CDLEntry>num_output</td><td class=CDLDescription>The number of ouputs per training data</td></tr><tr><td class=CDLEntry>input</td><td class=CDLDescription>The set of inputs</td></tr><tr><td class=CDLEntry>output</td><td class=CDLDescription>The set of desired outputs</td></tr></table><h4 class=CHeading>See also</h4><p><a href="#fann_read_train_from_file" class=LFunction id=link206 onMouseOver="ShowTip(event, 'tt13', 'link206')" onMouseOut="HideTip('tt13')">fann_read_train_from_file</a>, <a href="#fann_train_on_data" class=LFunction id=link207 onMouseOver="ShowTip(event, 'tt9', 'link207')" onMouseOut="HideTip('tt9')">fann_train_on_data</a>, <a href="#fann_destroy_train" class=LFunction id=link208 onMouseOver="ShowTip(event, 'tt15', 'link208')" onMouseOut="HideTip('tt15')">fann_destroy_train</a>, <a href="#fann_save_train" class=LFunction id=link209 onMouseOver="ShowTip(event, 'tt36', 'link209')" onMouseOut="HideTip('tt36')">fann_save_train</a></p><p>This function appears in FANN >= 2.1.0</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_destroy_train"></a>fann_destroy_train</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_destroy_train(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>train_data</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Destructs the training data and properly deallocates all of the associated data. Be sure to call this function after finished using the training data.</p><p>This function appears in FANN >= 1.0.0</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_shuffle_train_data"></a>fann_shuffle_train_data</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_shuffle_train_data(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>train_data</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Shuffles training data, randomizing the order. This is recommended for incremental training, while it have no influence during batch training.</p><p>This function appears in FANN >= 1.1.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_scale_train"></a>fann_scale_train</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_scale_train(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>data</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Scale input and output data based on previously calculated parameters.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>ann</td><td class=CDLDescription>ann for which were calculated trained parameters before</td></tr><tr><td class=CDLEntry>data</td><td class=CDLDescription>training data that needs to be scaled</td></tr></table><h4 class=CHeading>See also</h4><p><a href="#fann_descale_train" class=LFunction id=link210 onMouseOver="ShowTip(event, 'tt18', 'link210')" onMouseOut="HideTip('tt18')">fann_descale_train</a>, <a href="#fann_set_scaling_params" class=LFunction id=link211 onMouseOver="ShowTip(event, 'tt21', 'link211')" onMouseOut="HideTip('tt21')">fann_set_scaling_params</a></p><p>This function appears in FANN >= 2.1.0</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_descale_train"></a>fann_descale_train</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_descale_train(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>data</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Descale input and output data based on previously calculated parameters.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>ann</td><td class=CDLDescription>ann for which were calculated trained parameters before</td></tr><tr><td class=CDLEntry>data</td><td class=CDLDescription>training data that needs to be descaled</td></tr></table><h4 class=CHeading>See also</h4><p><a href="#fann_scale_train" class=LFunction id=link212 onMouseOver="ShowTip(event, 'tt17', 'link212')" onMouseOut="HideTip('tt17')">fann_scale_train</a>, <a href="#fann_set_scaling_params" class=LFunction id=link213 onMouseOver="ShowTip(event, 'tt21', 'link213')" onMouseOut="HideTip('tt21')">fann_set_scaling_params</a></p><p>This function appears in FANN >= 2.1.0</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_set_input_scaling_params"></a>fann_set_input_scaling_params</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL int FANN_API fann_set_input_scaling_params(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>const struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>data,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_input_min,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_input_max</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Calculate input scaling parameters for future use based on training data.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>ann</td><td class=CDLDescription>ann for wgich parameters needs to be calculated</td></tr><tr><td class=CDLEntry>data</td><td class=CDLDescription>training data that will be used to calculate scaling parameters</td></tr><tr><td class=CDLEntry>new_input_min</td><td class=CDLDescription>desired lower bound in input data after scaling (not strictly followed)</td></tr><tr><td class=CDLEntry>new_input_max</td><td class=CDLDescription>desired upper bound in input data after scaling (not strictly followed)</td></tr></table><h4 class=CHeading>See also</h4><p><a href="#fann_set_output_scaling_params" class=LFunction id=link214 onMouseOver="ShowTip(event, 'tt20', 'link214')" onMouseOut="HideTip('tt20')">fann_set_output_scaling_params</a></p><p>This function appears in FANN >= 2.1.0</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_set_output_scaling_params"></a>fann_set_output_scaling_params</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL int FANN_API fann_set_output_scaling_params(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>const struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>data,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_output_min,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_output_max</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Calculate output scaling parameters for future use based on training data.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>ann</td><td class=CDLDescription>ann for wgich parameters needs to be calculated</td></tr><tr><td class=CDLEntry>data</td><td class=CDLDescription>training data that will be used to calculate scaling parameters</td></tr><tr><td class=CDLEntry>new_output_min</td><td class=CDLDescription>desired lower bound in input data after scaling (not strictly followed)</td></tr><tr><td class=CDLEntry>new_output_max</td><td class=CDLDescription>desired upper bound in input data after scaling (not strictly followed)</td></tr></table><h4 class=CHeading>See also</h4><p><a href="#fann_set_input_scaling_params" class=LFunction id=link215 onMouseOver="ShowTip(event, 'tt19', 'link215')" onMouseOut="HideTip('tt19')">fann_set_input_scaling_params</a></p><p>This function appears in FANN >= 2.1.0</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_set_scaling_params"></a>fann_set_scaling_params</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL int FANN_API fann_set_scaling_params(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>const struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>data,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_input_min,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_input_max,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_output_min,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_output_max</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Calculate input and output scaling parameters for future use based on training data.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>ann</td><td class=CDLDescription>ann for wgich parameters needs to be calculated</td></tr><tr><td class=CDLEntry>data</td><td class=CDLDescription>training data that will be used to calculate scaling parameters</td></tr><tr><td class=CDLEntry>new_input_min</td><td class=CDLDescription>desired lower bound in input data after scaling (not strictly followed)</td></tr><tr><td class=CDLEntry>new_input_max</td><td class=CDLDescription>desired upper bound in input data after scaling (not strictly followed)</td></tr><tr><td class=CDLEntry>new_output_min</td><td class=CDLDescription>desired lower bound in input data after scaling (not strictly followed)</td></tr><tr><td class=CDLEntry>new_output_max</td><td class=CDLDescription>desired upper bound in input data after scaling (not strictly followed)</td></tr></table><h4 class=CHeading>See also</h4><p><a href="#fann_set_input_scaling_params" class=LFunction id=link216 onMouseOver="ShowTip(event, 'tt19', 'link216')" onMouseOut="HideTip('tt19')">fann_set_input_scaling_params</a>, <a href="#fann_set_output_scaling_params" class=LFunction id=link217 onMouseOver="ShowTip(event, 'tt20', 'link217')" onMouseOut="HideTip('tt20')">fann_set_output_scaling_params</a></p><p>This function appears in FANN >= 2.1.0</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_clear_scaling_params"></a>fann_clear_scaling_params</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL int FANN_API fann_clear_scaling_params(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Clears scaling parameters.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>ann</td><td class=CDLDescription>ann for which to clear scaling parameters</td></tr></table><p>This function appears in FANN >= 2.1.0</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_scale_input"></a>fann_scale_input</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_scale_input(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>input_vector</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Scale data in input vector before feed it to ann based on previously calculated parameters.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>ann</td><td class=CDLDescription>for which scaling parameters were calculated</td></tr><tr><td class=CDLEntry>input_vector</td><td class=CDLDescription>input vector that will be scaled</td></tr></table><h4 class=CHeading>See also</h4><p><a href="#fann_descale_input" class=LFunction id=link218 onMouseOver="ShowTip(event, 'tt25', 'link218')" onMouseOut="HideTip('tt25')">fann_descale_input</a>, <a href="#fann_scale_output" class=LFunction id=link219 onMouseOver="ShowTip(event, 'tt24', 'link219')" onMouseOut="HideTip('tt24')">fann_scale_output</a></p><p>This function appears in FANN >= 2.1.0</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_scale_output"></a>fann_scale_output</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_scale_output(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>output_vector</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Scale data in output vector before feed it to ann based on previously calculated parameters.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>ann</td><td class=CDLDescription>for which scaling parameters were calculated</td></tr><tr><td class=CDLEntry>output_vector</td><td class=CDLDescription>output vector that will be scaled</td></tr></table><h4 class=CHeading>See also</h4><p><a href="#fann_descale_output" class=LFunction id=link220 onMouseOver="ShowTip(event, 'tt26', 'link220')" onMouseOut="HideTip('tt26')">fann_descale_output</a>, <a href="#fann_scale_input" class=LFunction id=link221 onMouseOver="ShowTip(event, 'tt23', 'link221')" onMouseOut="HideTip('tt23')">fann_scale_input</a></p><p>This function appears in FANN >= 2.1.0</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_descale_input"></a>fann_descale_input</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_descale_input(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>input_vector</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Scale data in input vector after get it from ann based on previously calculated parameters.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>ann</td><td class=CDLDescription>for which scaling parameters were calculated</td></tr><tr><td class=CDLEntry>input_vector</td><td class=CDLDescription>input vector that will be descaled</td></tr></table><h4 class=CHeading>See also</h4><p><a href="#fann_scale_input" class=LFunction id=link222 onMouseOver="ShowTip(event, 'tt23', 'link222')" onMouseOut="HideTip('tt23')">fann_scale_input</a>, <a href="#fann_descale_output" class=LFunction id=link223 onMouseOver="ShowTip(event, 'tt26', 'link223')" onMouseOut="HideTip('tt26')">fann_descale_output</a></p><p>This function appears in FANN >= 2.1.0</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_descale_output"></a>fann_descale_output</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_descale_output(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>output_vector</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Scale data in output vector after get it from ann based on previously calculated parameters.</p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>ann</td><td class=CDLDescription>for which scaling parameters were calculated</td></tr><tr><td class=CDLEntry>output_vector</td><td class=CDLDescription>output vector that will be descaled</td></tr></table><h4 class=CHeading>See also</h4><p><a href="#fann_scale_output" class=LFunction id=link224 onMouseOver="ShowTip(event, 'tt24', 'link224')" onMouseOut="HideTip('tt24')">fann_scale_output</a>, <a href="#fann_descale_input" class=LFunction id=link225 onMouseOver="ShowTip(event, 'tt25', 'link225')" onMouseOut="HideTip('tt25')">fann_descale_input</a></p><p>This function appears in FANN >= 2.1.0</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_scale_input_train_data"></a>fann_scale_input_train_data</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_scale_input_train_data(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>train_data,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_min,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_max</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Scales the inputs in the training data to the specified range.</p><h4 class=CHeading>See also</h4><p><a href="#fann_scale_output_train_data" class=LFunction id=link226 onMouseOver="ShowTip(event, 'tt28', 'link226')" onMouseOut="HideTip('tt28')">fann_scale_output_train_data</a>, <a href="#fann_scale_train_data" class=LFunction id=link227 onMouseOver="ShowTip(event, 'tt29', 'link227')" onMouseOut="HideTip('tt29')">fann_scale_train_data</a></p><p>This function appears in FANN >= 2.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_scale_output_train_data"></a>fann_scale_output_train_data</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_scale_output_train_data(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>train_data,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_min,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_max</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Scales the outputs in the training data to the specified range.</p><h4 class=CHeading>See also</h4><p><a href="#fann_scale_input_train_data" class=LFunction id=link228 onMouseOver="ShowTip(event, 'tt27', 'link228')" onMouseOut="HideTip('tt27')">fann_scale_input_train_data</a>, <a href="#fann_scale_train_data" class=LFunction id=link229 onMouseOver="ShowTip(event, 'tt29', 'link229')" onMouseOut="HideTip('tt29')">fann_scale_train_data</a></p><p>This function appears in FANN >= 2.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_scale_train_data"></a>fann_scale_train_data</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_scale_train_data(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>train_data,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_min,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_max</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Scales the inputs and outputs in the training data to the specified range.</p><h4 class=CHeading>See also</h4><p><a href="#fann_scale_output_train_data" class=LFunction id=link230 onMouseOver="ShowTip(event, 'tt28', 'link230')" onMouseOut="HideTip('tt28')">fann_scale_output_train_data</a>, <a href="#fann_scale_input_train_data" class=LFunction id=link231 onMouseOver="ShowTip(event, 'tt27', 'link231')" onMouseOut="HideTip('tt27')">fann_scale_input_train_data</a></p><p>This function appears in FANN >= 2.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_merge_train_data"></a>fann_merge_train_data</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL struct fann_train_data *FANN_API fann_merge_train_data(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>data1,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>data2</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Merges the data from <b>data1</b> and <b>data2</b> into a new <a href="#struct_fann_train_data" class=LClass id=link232 onMouseOver="ShowTip(event, 'tt1', 'link232')" onMouseOut="HideTip('tt1')">struct fann_train_data</a>.</p><p>This function appears in FANN >= 1.1.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_duplicate_train_data"></a>fann_duplicate_train_data</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL struct fann_train_data *FANN_API fann_duplicate_train_data(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>data</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Returns an exact copy of a <a href="#struct_fann_train_data" class=LClass id=link233 onMouseOver="ShowTip(event, 'tt1', 'link233')" onMouseOut="HideTip('tt1')">struct fann_train_data</a>.</p><p>This function appears in FANN >= 1.1.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_subset_train_data"></a>fann_subset_train_data</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL struct fann_train_data *FANN_API fann_subset_train_data(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>data,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>unsigned </td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>pos,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>unsigned </td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>length</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Returns an copy of a subset of the <a href="#struct_fann_train_data" class=LClass id=link234 onMouseOver="ShowTip(event, 'tt1', 'link234')" onMouseOut="HideTip('tt1')">struct fann_train_data</a>, starting at position <b>pos</b> and <b>length</b> elements forward.</p><blockquote><pre>fann_subset_train_data(train_data, 0, fann_length_train_data(train_data))</pre></blockquote><p>Will do the same as <a href="#fann_duplicate_train_data" class=LFunction id=link235 onMouseOver="ShowTip(event, 'tt31', 'link235')" onMouseOut="HideTip('tt31')">fann_duplicate_train_data</a>.</p><h4 class=CHeading>See also</h4><p><a href="#fann_length_train_data" class=LFunction id=link236 onMouseOver="ShowTip(event, 'tt33', 'link236')" onMouseOut="HideTip('tt33')">fann_length_train_data</a></p><p>This function appears in FANN >= 2.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_length_train_data"></a>fann_length_train_data</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL unsigned int FANN_API fann_length_train_data(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>data</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Returns the number of training patterns in the <a href="#struct_fann_train_data" class=LClass id=link237 onMouseOver="ShowTip(event, 'tt1', 'link237')" onMouseOut="HideTip('tt1')">struct fann_train_data</a>.</p><p>This function appears in FANN >= 2.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_num_input_train_data"></a>fann_num_input_train_data</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL unsigned int FANN_API fann_num_input_train_data(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>data</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Returns the number of inputs in each of the training patterns in the <a href="#struct_fann_train_data" class=LClass id=link238 onMouseOver="ShowTip(event, 'tt1', 'link238')" onMouseOut="HideTip('tt1')">struct fann_train_data</a>.</p><h4 class=CHeading>See also</h4><p><fann_num_train_data>, <a href="#fann_num_output_train_data" class=LFunction id=link239 onMouseOver="ShowTip(event, 'tt35', 'link239')" onMouseOut="HideTip('tt35')">fann_num_output_train_data</a></p><p>This function appears in FANN >= 2.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_num_output_train_data"></a>fann_num_output_train_data</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL unsigned int FANN_API fann_num_output_train_data(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>data</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Returns the number of outputs in each of the training patterns in the <a href="#struct_fann_train_data" class=LClass id=link240 onMouseOver="ShowTip(event, 'tt1', 'link240')" onMouseOut="HideTip('tt1')">struct fann_train_data</a>.</p><h4 class=CHeading>See also</h4><p><fann_num_train_data>, <a href="#fann_num_input_train_data" class=LFunction id=link241 onMouseOver="ShowTip(event, 'tt34', 'link241')" onMouseOut="HideTip('tt34')">fann_num_input_train_data</a></p><p>This function appears in FANN >= 2.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_save_train"></a>fann_save_train</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL int FANN_API fann_save_train(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>data,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap>const </td><td class="PType prettyprint " nowrap>char </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>filename</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Save the training structure to a file, with the format as specified in <a href="#fann_read_train_from_file" class=LFunction id=link242 onMouseOver="ShowTip(event, 'tt13', 'link242')" onMouseOut="HideTip('tt13')">fann_read_train_from_file</a></p><h4 class=CHeading>Return</h4><p>The function returns 0 on success and -1 on failure.</p><h4 class=CHeading>See also</h4><p><a href="#fann_read_train_from_file" class=LFunction id=link243 onMouseOver="ShowTip(event, 'tt13', 'link243')" onMouseOut="HideTip('tt13')">fann_read_train_from_file</a>, <a href="#fann_save_train_to_fixed" class=LFunction id=link244 onMouseOver="ShowTip(event, 'tt37', 'link244')" onMouseOut="HideTip('tt37')">fann_save_train_to_fixed</a></p><p>This function appears in FANN >= 1.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_save_train_to_fixed"></a>fann_save_train_to_fixed</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL int FANN_API fann_save_train_to_fixed(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>data,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>const </td><td class="PType prettyprint " nowrap>char </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>filename,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>unsigned </td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>decimal_point</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Saves the training structure to a fixed point data file.</p><p>This function is very usefull for testing the quality of a fixed point network.</p><h4 class=CHeading>Return</h4><p>The function returns 0 on success and -1 on failure.</p><h4 class=CHeading>See also</h4><p><a href="#fann_save_train" class=LFunction id=link245 onMouseOver="ShowTip(event, 'tt36', 'link245')" onMouseOut="HideTip('tt36')">fann_save_train</a></p><p>This function appears in FANN >= 1.0.0.</p></div></div></div>
<div class="CGroup"><div class=CTopic><h3 class=CTitle><a name="Parameters"></a>Parameters</h3></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_get_training_algorithm"></a>fann_get_training_algorithm</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL enum fann_train_enum FANN_API fann_get_training_algorithm(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Return the training algorithm as described by <a href="fann_data-h.html#fann_train_enum" class=LType id=link246 onMouseOver="ShowTip(event, 'tt39', 'link246')" onMouseOut="HideTip('tt39')">fann_train_enum</a>. This training algorithm is used by <a href="#fann_train_on_data" class=LFunction id=link247 onMouseOver="ShowTip(event, 'tt9', 'link247')" onMouseOut="HideTip('tt9')">fann_train_on_data</a> and associated functions.</p><p>Note that this algorithm is also used during <a href="fann_cascade-h.html#fann_cascadetrain_on_data" class=LFunction id=link248 onMouseOver="ShowTip(event, 'tt78', 'link248')" onMouseOut="HideTip('tt78')">fann_cascadetrain_on_data</a>, although only FANN_TRAIN_RPROP and FANN_TRAIN_QUICKPROP is allowed during cascade training.</p><p>The default training algorithm is FANN_TRAIN_RPROP.</p><h4 class=CHeading>See also</h4><p><a href="#fann_set_training_algorithm" class=LFunction id=link249 onMouseOver="ShowTip(event, 'tt40', 'link249')" onMouseOut="HideTip('tt40')">fann_set_training_algorithm</a>, <a href="fann_data-h.html#fann_train_enum" class=LType id=link250 onMouseOver="ShowTip(event, 'tt39', 'link250')" onMouseOut="HideTip('tt39')">fann_train_enum</a></p><p>This function appears in FANN >= 1.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_set_training_algorithm"></a>fann_set_training_algorithm</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_set_training_algorithm(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>enum </td><td class="PType prettyprint " nowrap>fann_train_enum </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>training_algorithm</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Set the training algorithm.</p><p>More info available in <a href="#fann_get_training_algorithm" class=LFunction id=link251 onMouseOver="ShowTip(event, 'tt38', 'link251')" onMouseOut="HideTip('tt38')">fann_get_training_algorithm</a></p><p>This function appears in FANN >= 1.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_get_learning_rate"></a>fann_get_learning_rate</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL float FANN_API fann_get_learning_rate(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Return the learning rate.</p><p>The learning rate is used to determine how aggressive training should be for some of the training algorithms (FANN_TRAIN_INCREMENTAL, FANN_TRAIN_BATCH, FANN_TRAIN_QUICKPROP). Do however note that it is not used in FANN_TRAIN_RPROP.</p><p>The default learning rate is 0.7.</p><h4 class=CHeading>See also</h4><p><a href="#fann_set_learning_rate" class=LFunction id=link252 onMouseOver="ShowTip(event, 'tt42', 'link252')" onMouseOut="HideTip('tt42')">fann_set_learning_rate</a>, <a href="#fann_set_training_algorithm" class=LFunction id=link253 onMouseOver="ShowTip(event, 'tt40', 'link253')" onMouseOut="HideTip('tt40')">fann_set_training_algorithm</a></p><p>This function appears in FANN >= 1.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_set_learning_rate"></a>fann_set_learning_rate</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_set_learning_rate(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>learning_rate</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Set the learning rate.</p><p>More info available in <a href="#fann_get_learning_rate" class=LFunction id=link254 onMouseOver="ShowTip(event, 'tt41', 'link254')" onMouseOut="HideTip('tt41')">fann_get_learning_rate</a></p><p>This function appears in FANN >= 1.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_get_learning_momentum"></a>fann_get_learning_momentum</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL float FANN_API fann_get_learning_momentum(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Get the learning momentum.</p><p>The learning momentum can be used to speed up FANN_TRAIN_INCREMENTAL training. A too high momentum will however not benefit training. Setting momentum to 0 will be the same as not using the momentum parameter. The recommended value of this parameter is between 0.0 and 1.0.</p><p>The default momentum is 0.</p><h4 class=CHeading>See also</h4><p><a href="#fann_set_learning_momentum" class=LFunction id=link255 onMouseOver="ShowTip(event, 'tt44', 'link255')" onMouseOut="HideTip('tt44')">fann_set_learning_momentum</a>, <a href="#fann_set_training_algorithm" class=LFunction id=link256 onMouseOver="ShowTip(event, 'tt40', 'link256')" onMouseOut="HideTip('tt40')">fann_set_training_algorithm</a></p><p>This function appears in FANN >= 2.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_set_learning_momentum"></a>fann_set_learning_momentum</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_set_learning_momentum(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>learning_momentum</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Set the learning momentum.</p><p>More info available in <a href="#fann_get_learning_momentum" class=LFunction id=link257 onMouseOver="ShowTip(event, 'tt43', 'link257')" onMouseOut="HideTip('tt43')">fann_get_learning_momentum</a></p><p>This function appears in FANN >= 2.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_get_activation_function"></a>fann_get_activation_function</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL enum fann_activationfunc_enum FANN_API fann_get_activation_function(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>layer,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>neuron</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Get the activation function for neuron number <b>neuron</b> in layer number <b>layer</b>, counting the input layer as layer 0.</p><p>It is not possible to get activation functions for the neurons in the input layer.</p><p>Information about the individual activation functions is available at <a href="fann_data-h.html#fann_activationfunc_enum" class=LType id=link258 onMouseOver="ShowTip(event, 'tt79', 'link258')" onMouseOut="HideTip('tt79')">fann_activationfunc_enum</a>.</p><h4 class=CHeading>Returns</h4><p>The activation function for the neuron or -1 if the neuron is not defined in the neural network.</p><h4 class=CHeading>See also</h4><p><a href="#fann_set_activation_function_layer" class=LFunction id=link259 onMouseOver="ShowTip(event, 'tt47', 'link259')" onMouseOut="HideTip('tt47')">fann_set_activation_function_layer</a>, <a href="#fann_set_activation_function_hidden" class=LFunction id=link260 onMouseOver="ShowTip(event, 'tt48', 'link260')" onMouseOut="HideTip('tt48')">fann_set_activation_function_hidden</a>, <a href="#fann_set_activation_function_output" class=LFunction id=link261 onMouseOver="ShowTip(event, 'tt49', 'link261')" onMouseOut="HideTip('tt49')">fann_set_activation_function_output</a>, <a href="#fann_set_activation_steepness" class=LFunction id=link262 onMouseOver="ShowTip(event, 'tt51', 'link262')" onMouseOut="HideTip('tt51')">fann_set_activation_steepness</a>, <a href="#fann_set_activation_function" class=LFunction id=link263 onMouseOver="ShowTip(event, 'tt46', 'link263')" onMouseOut="HideTip('tt46')">fann_set_activation_function</a></p><p>This function appears in FANN >= 2.1.0</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_set_activation_function"></a>fann_set_activation_function</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_set_activation_function(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>enum </td><td class="PType prettyprint " nowrap>fann_activationfunc_enum </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>activation_function,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>layer,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>neuron</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Set the activation function for neuron number <b>neuron</b> in layer number <b>layer</b>, counting the input layer as layer 0.</p><p>It is not possible to set activation functions for the neurons in the input layer.</p><p>When choosing an activation function it is important to note that the activation functions have different range. FANN_SIGMOID is e.g. in the 0 - 1 range while FANN_SIGMOID_SYMMETRIC is in the -1 - 1 range and FANN_LINEAR is unbound.</p><p>Information about the individual activation functions is available at <a href="fann_data-h.html#fann_activationfunc_enum" class=LType id=link264 onMouseOver="ShowTip(event, 'tt79', 'link264')" onMouseOut="HideTip('tt79')">fann_activationfunc_enum</a>.</p><p>The default activation function is FANN_SIGMOID_STEPWISE.</p><h4 class=CHeading>See also</h4><p><a href="#fann_set_activation_function_layer" class=LFunction id=link265 onMouseOver="ShowTip(event, 'tt47', 'link265')" onMouseOut="HideTip('tt47')">fann_set_activation_function_layer</a>, <a href="#fann_set_activation_function_hidden" class=LFunction id=link266 onMouseOver="ShowTip(event, 'tt48', 'link266')" onMouseOut="HideTip('tt48')">fann_set_activation_function_hidden</a>, <a href="#fann_set_activation_function_output" class=LFunction id=link267 onMouseOver="ShowTip(event, 'tt49', 'link267')" onMouseOut="HideTip('tt49')">fann_set_activation_function_output</a>, <a href="#fann_set_activation_steepness" class=LFunction id=link268 onMouseOver="ShowTip(event, 'tt51', 'link268')" onMouseOut="HideTip('tt51')">fann_set_activation_steepness</a>, <a href="#fann_get_activation_function" class=LFunction id=link269 onMouseOver="ShowTip(event, 'tt45', 'link269')" onMouseOut="HideTip('tt45')">fann_get_activation_function</a></p><p>This function appears in FANN >= 2.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_set_activation_function_layer"></a>fann_set_activation_function_layer</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_set_activation_function_layer(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>enum </td><td class="PType prettyprint " nowrap>fann_activationfunc_enum </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>activation_function,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>layer</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Set the activation function for all the neurons in the layer number <b>layer</b>, counting the input layer as layer 0.</p><p>It is not possible to set activation functions for the neurons in the input layer.</p><h4 class=CHeading>See also</h4><p><a href="#fann_set_activation_function" class=LFunction id=link270 onMouseOver="ShowTip(event, 'tt46', 'link270')" onMouseOut="HideTip('tt46')">fann_set_activation_function</a>, <a href="#fann_set_activation_function_hidden" class=LFunction id=link271 onMouseOver="ShowTip(event, 'tt48', 'link271')" onMouseOut="HideTip('tt48')">fann_set_activation_function_hidden</a>, <a href="#fann_set_activation_function_output" class=LFunction id=link272 onMouseOver="ShowTip(event, 'tt49', 'link272')" onMouseOut="HideTip('tt49')">fann_set_activation_function_output</a>, <a href="#fann_set_activation_steepness_layer" class=LFunction id=link273 onMouseOver="ShowTip(event, 'tt52', 'link273')" onMouseOut="HideTip('tt52')">fann_set_activation_steepness_layer</a></p><p>This function appears in FANN >= 2.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_set_activation_function_hidden"></a>fann_set_activation_function_hidden</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_set_activation_function_hidden(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>enum </td><td class="PType prettyprint " nowrap>fann_activationfunc_enum </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>activation_function</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Set the activation function for all of the hidden layers.</p><h4 class=CHeading>See also</h4><p><a href="#fann_set_activation_function" class=LFunction id=link274 onMouseOver="ShowTip(event, 'tt46', 'link274')" onMouseOut="HideTip('tt46')">fann_set_activation_function</a>, <a href="#fann_set_activation_function_layer" class=LFunction id=link275 onMouseOver="ShowTip(event, 'tt47', 'link275')" onMouseOut="HideTip('tt47')">fann_set_activation_function_layer</a>, <a href="#fann_set_activation_function_output" class=LFunction id=link276 onMouseOver="ShowTip(event, 'tt49', 'link276')" onMouseOut="HideTip('tt49')">fann_set_activation_function_output</a>, <a href="#fann_set_activation_steepness_hidden" class=LFunction id=link277 onMouseOver="ShowTip(event, 'tt53', 'link277')" onMouseOut="HideTip('tt53')">fann_set_activation_steepness_hidden</a></p><p>This function appears in FANN >= 1.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_set_activation_function_output"></a>fann_set_activation_function_output</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_set_activation_function_output(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>enum </td><td class="PType prettyprint " nowrap>fann_activationfunc_enum </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>activation_function</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Set the activation function for the output layer.</p><h4 class=CHeading>See also</h4><p><a href="#fann_set_activation_function" class=LFunction id=link278 onMouseOver="ShowTip(event, 'tt46', 'link278')" onMouseOut="HideTip('tt46')">fann_set_activation_function</a>, <a href="#fann_set_activation_function_layer" class=LFunction id=link279 onMouseOver="ShowTip(event, 'tt47', 'link279')" onMouseOut="HideTip('tt47')">fann_set_activation_function_layer</a>, <a href="#fann_set_activation_function_hidden" class=LFunction id=link280 onMouseOver="ShowTip(event, 'tt48', 'link280')" onMouseOut="HideTip('tt48')">fann_set_activation_function_hidden</a>, <a href="#fann_set_activation_steepness_output" class=LFunction id=link281 onMouseOver="ShowTip(event, 'tt54', 'link281')" onMouseOut="HideTip('tt54')">fann_set_activation_steepness_output</a></p><p>This function appears in FANN >= 1.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_get_activation_steepness"></a>fann_get_activation_steepness</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL fann_type FANN_API fann_get_activation_steepness(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>layer,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>neuron</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Get the activation steepness for neuron number <b>neuron</b> in layer number <b>layer</b>, counting the input layer as layer 0.</p><p>It is not possible to get activation steepness for the neurons in the input layer.</p><p>The steepness of an activation function says something about how fast the activation function goes from the minimum to the maximum. A high value for the activation function will also give a more agressive training.</p><p>When training neural networks where the output values should be at the extremes (usually 0 and 1, depending on the activation function), a steep activation function can be used (e.g. 1.0).</p><p>The default activation steepness is 0.5.</p><h4 class=CHeading>Returns</h4><p>The activation steepness for the neuron or -1 if the neuron is not defined in the neural network.</p><h4 class=CHeading>See also</h4><p><a href="#fann_set_activation_steepness_layer" class=LFunction id=link282 onMouseOver="ShowTip(event, 'tt52', 'link282')" onMouseOut="HideTip('tt52')">fann_set_activation_steepness_layer</a>, <a href="#fann_set_activation_steepness_hidden" class=LFunction id=link283 onMouseOver="ShowTip(event, 'tt53', 'link283')" onMouseOut="HideTip('tt53')">fann_set_activation_steepness_hidden</a>, <a href="#fann_set_activation_steepness_output" class=LFunction id=link284 onMouseOver="ShowTip(event, 'tt54', 'link284')" onMouseOut="HideTip('tt54')">fann_set_activation_steepness_output</a>, <a href="#fann_set_activation_function" class=LFunction id=link285 onMouseOver="ShowTip(event, 'tt46', 'link285')" onMouseOut="HideTip('tt46')">fann_set_activation_function</a>, <a href="#fann_set_activation_steepness" class=LFunction id=link286 onMouseOver="ShowTip(event, 'tt51', 'link286')" onMouseOut="HideTip('tt51')">fann_set_activation_steepness</a></p><p>This function appears in FANN >= 2.1.0</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_set_activation_steepness"></a>fann_set_activation_steepness</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_set_activation_steepness(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>steepness,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>layer,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>neuron</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Set the activation steepness for neuron number <b>neuron</b> in layer number <b>layer</b>, counting the input layer as layer 0.</p><p>It is not possible to set activation steepness for the neurons in the input layer.</p><p>The steepness of an activation function says something about how fast the activation function goes from the minimum to the maximum. A high value for the activation function will also give a more agressive training.</p><p>When training neural networks where the output values should be at the extremes (usually 0 and 1, depending on the activation function), a steep activation function can be used (e.g. 1.0).</p><p>The default activation steepness is 0.5.</p><h4 class=CHeading>See also</h4><p><a href="#fann_set_activation_steepness_layer" class=LFunction id=link287 onMouseOver="ShowTip(event, 'tt52', 'link287')" onMouseOut="HideTip('tt52')">fann_set_activation_steepness_layer</a>, <a href="#fann_set_activation_steepness_hidden" class=LFunction id=link288 onMouseOver="ShowTip(event, 'tt53', 'link288')" onMouseOut="HideTip('tt53')">fann_set_activation_steepness_hidden</a>, <a href="#fann_set_activation_steepness_output" class=LFunction id=link289 onMouseOver="ShowTip(event, 'tt54', 'link289')" onMouseOut="HideTip('tt54')">fann_set_activation_steepness_output</a>, <a href="#fann_set_activation_function" class=LFunction id=link290 onMouseOver="ShowTip(event, 'tt46', 'link290')" onMouseOut="HideTip('tt46')">fann_set_activation_function</a>, <a href="#fann_get_activation_steepness" class=LFunction id=link291 onMouseOver="ShowTip(event, 'tt50', 'link291')" onMouseOut="HideTip('tt50')">fann_get_activation_steepness</a></p><p>This function appears in FANN >= 2.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_set_activation_steepness_layer"></a>fann_set_activation_steepness_layer</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_set_activation_steepness_layer(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>steepness,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>layer</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Set the activation steepness all of the neurons in layer number <b>layer</b>, counting the input layer as layer 0.</p><p>It is not possible to set activation steepness for the neurons in the input layer.</p><h4 class=CHeading>See also</h4><p><a href="#fann_set_activation_steepness" class=LFunction id=link292 onMouseOver="ShowTip(event, 'tt51', 'link292')" onMouseOut="HideTip('tt51')">fann_set_activation_steepness</a>, <a href="#fann_set_activation_steepness_hidden" class=LFunction id=link293 onMouseOver="ShowTip(event, 'tt53', 'link293')" onMouseOut="HideTip('tt53')">fann_set_activation_steepness_hidden</a>, <a href="#fann_set_activation_steepness_output" class=LFunction id=link294 onMouseOver="ShowTip(event, 'tt54', 'link294')" onMouseOut="HideTip('tt54')">fann_set_activation_steepness_output</a>, <a href="#fann_set_activation_function_layer" class=LFunction id=link295 onMouseOver="ShowTip(event, 'tt47', 'link295')" onMouseOut="HideTip('tt47')">fann_set_activation_function_layer</a></p><p>This function appears in FANN >= 2.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_set_activation_steepness_hidden"></a>fann_set_activation_steepness_hidden</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_set_activation_steepness_hidden(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>steepness</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Set the steepness of the activation steepness in all of the hidden layers.</p><h4 class=CHeading>See also</h4><p><a href="#fann_set_activation_steepness" class=LFunction id=link296 onMouseOver="ShowTip(event, 'tt51', 'link296')" onMouseOut="HideTip('tt51')">fann_set_activation_steepness</a>, <a href="#fann_set_activation_steepness_layer" class=LFunction id=link297 onMouseOver="ShowTip(event, 'tt52', 'link297')" onMouseOut="HideTip('tt52')">fann_set_activation_steepness_layer</a>, <a href="#fann_set_activation_steepness_output" class=LFunction id=link298 onMouseOver="ShowTip(event, 'tt54', 'link298')" onMouseOut="HideTip('tt54')">fann_set_activation_steepness_output</a>, <a href="#fann_set_activation_function_hidden" class=LFunction id=link299 onMouseOver="ShowTip(event, 'tt48', 'link299')" onMouseOut="HideTip('tt48')">fann_set_activation_function_hidden</a></p><p>This function appears in FANN >= 1.2.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_set_activation_steepness_output"></a>fann_set_activation_steepness_output</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_set_activation_steepness_output(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>steepness</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Set the steepness of the activation steepness in the output layer.</p><h4 class=CHeading>See also</h4><p><a href="#fann_set_activation_steepness" class=LFunction id=link300 onMouseOver="ShowTip(event, 'tt51', 'link300')" onMouseOut="HideTip('tt51')">fann_set_activation_steepness</a>, <a href="#fann_set_activation_steepness_layer" class=LFunction id=link301 onMouseOver="ShowTip(event, 'tt52', 'link301')" onMouseOut="HideTip('tt52')">fann_set_activation_steepness_layer</a>, <a href="#fann_set_activation_steepness_hidden" class=LFunction id=link302 onMouseOver="ShowTip(event, 'tt53', 'link302')" onMouseOut="HideTip('tt53')">fann_set_activation_steepness_hidden</a>, <a href="#fann_set_activation_function_output" class=LFunction id=link303 onMouseOver="ShowTip(event, 'tt49', 'link303')" onMouseOut="HideTip('tt49')">fann_set_activation_function_output</a></p><p>This function appears in FANN >= 1.2.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_get_train_error_function"></a>fann_get_train_error_function</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL enum fann_errorfunc_enum FANN_API fann_get_train_error_function(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Returns the error function used during training.</p><p>The error functions is described further in <a href="fann_data-h.html#fann_errorfunc_enum" class=LType id=link304 onMouseOver="ShowTip(event, 'tt80', 'link304')" onMouseOut="HideTip('tt80')">fann_errorfunc_enum</a></p><p>The default error function is FANN_ERRORFUNC_TANH</p><h4 class=CHeading>See also</h4><p><a href="#fann_set_train_error_function" class=LFunction id=link305 onMouseOver="ShowTip(event, 'tt56', 'link305')" onMouseOut="HideTip('tt56')">fann_set_train_error_function</a></p><p>This function appears in FANN >= 1.2.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_set_train_error_function"></a>fann_set_train_error_function</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_set_train_error_function(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>enum </td><td class="PType prettyprint " nowrap>fann_errorfunc_enum </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>train_error_function</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Set the error function used during training.</p><p>The error functions is described further in <a href="fann_data-h.html#fann_errorfunc_enum" class=LType id=link306 onMouseOver="ShowTip(event, 'tt80', 'link306')" onMouseOut="HideTip('tt80')">fann_errorfunc_enum</a></p><h4 class=CHeading>See also</h4><p><a href="#fann_get_train_error_function" class=LFunction id=link307 onMouseOver="ShowTip(event, 'tt55', 'link307')" onMouseOut="HideTip('tt55')">fann_get_train_error_function</a></p><p>This function appears in FANN >= 1.2.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_get_train_stop_function"></a>fann_get_train_stop_function</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL enum fann_stopfunc_enum FANN_API fann_get_train_stop_function(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Returns the the stop function used during training.</p><p>The stop function is described further in <a href="fann_data-h.html#fann_stopfunc_enum" class=LType id=link308 onMouseOver="ShowTip(event, 'tt77', 'link308')" onMouseOut="HideTip('tt77')">fann_stopfunc_enum</a></p><p>The default stop function is FANN_STOPFUNC_MSE</p><h4 class=CHeading>See also</h4><p><a href="#fann_get_train_stop_function" class=LFunction id=link309 onMouseOver="ShowTip(event, 'tt57', 'link309')" onMouseOut="HideTip('tt57')">fann_get_train_stop_function</a>, <a href="#fann_get_bit_fail_limit" class=LFunction id=link310 onMouseOver="ShowTip(event, 'tt6', 'link310')" onMouseOut="HideTip('tt6')">fann_get_bit_fail_limit</a></p><p>This function appears in FANN >= 2.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_set_train_stop_function"></a>fann_set_train_stop_function</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_set_train_stop_function(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>enum </td><td class="PType prettyprint " nowrap>fann_stopfunc_enum </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>train_stop_function</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>Set the stop function used during training.</p><p>Returns the the stop function used during training.</p><p>The stop function is described further in <a href="fann_data-h.html#fann_stopfunc_enum" class=LType id=link311 onMouseOver="ShowTip(event, 'tt77', 'link311')" onMouseOut="HideTip('tt77')">fann_stopfunc_enum</a></p><h4 class=CHeading>See also</h4><p><a href="#fann_get_train_stop_function" class=LFunction id=link312 onMouseOver="ShowTip(event, 'tt57', 'link312')" onMouseOut="HideTip('tt57')">fann_get_train_stop_function</a></p><p>This function appears in FANN >= 2.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_get_bit_fail_limit"></a>fann_get_bit_fail_limit</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL fann_type FANN_API fann_get_bit_fail_limit(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Returns the bit fail limit used during training.</p><p>The bit fail limit is used during training where the <a href="fann_data-h.html#fann_stopfunc_enum" class=LType id=link313 onMouseOver="ShowTip(event, 'tt77', 'link313')" onMouseOut="HideTip('tt77')">fann_stopfunc_enum</a> is set to FANN_STOPFUNC_BIT.</p><p>The limit is the maximum accepted difference between the desired output and the actual output during training. Each output that diverges more than this limit is counted as an error bit. This difference is divided by two when dealing with symmetric activation functions, so that symmetric and not symmetric activation functions can use the same limit.</p><p>The default bit fail limit is 0.35.</p><h4 class=CHeading>See also</h4><p><a href="#fann_set_bit_fail_limit" class=LFunction id=link314 onMouseOver="ShowTip(event, 'tt7', 'link314')" onMouseOut="HideTip('tt7')">fann_set_bit_fail_limit</a></p><p>This function appears in FANN >= 2.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_set_bit_fail_limit"></a>fann_set_bit_fail_limit</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_set_bit_fail_limit(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>bit_fail_limit</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Set the bit fail limit used during training.</p><h4 class=CHeading>See also</h4><p><a href="#fann_get_bit_fail_limit" class=LFunction id=link315 onMouseOver="ShowTip(event, 'tt6', 'link315')" onMouseOut="HideTip('tt6')">fann_get_bit_fail_limit</a></p><p>This function appears in FANN >= 2.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_set_callback"></a>fann_set_callback</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_set_callback(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_callback_type </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>callback</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the callback function for use during training.</p><p>See <a href="fann_data-h.html#fann_callback_type" class=LType id=link316 onMouseOver="ShowTip(event, 'tt81', 'link316')" onMouseOut="HideTip('tt81')">fann_callback_type</a> for more information about the callback function.</p><p>The default callback function simply prints out some status information.</p><p>This function appears in FANN >= 2.0.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_get_quickprop_decay"></a>fann_get_quickprop_decay</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL float FANN_API fann_get_quickprop_decay(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>The decay is a small negative valued number which is the factor that the weights should become smaller in each iteration during quickprop training. This is used to make sure that the weights do not become too high during training.</p><p>The default decay is -0.0001.</p><h4 class=CHeading>See also</h4><p><a href="#fann_set_quickprop_decay" class=LFunction id=link317 onMouseOver="ShowTip(event, 'tt61', 'link317')" onMouseOut="HideTip('tt61')">fann_set_quickprop_decay</a></p><p>This function appears in FANN >= 1.2.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_set_quickprop_decay"></a>fann_set_quickprop_decay</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_set_quickprop_decay(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>quickprop_decay</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the quickprop decay factor.</p><h4 class=CHeading>See also</h4><p><a href="#fann_get_quickprop_decay" class=LFunction id=link318 onMouseOver="ShowTip(event, 'tt60', 'link318')" onMouseOut="HideTip('tt60')">fann_get_quickprop_decay</a></p><p>This function appears in FANN >= 1.2.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_get_quickprop_mu"></a>fann_get_quickprop_mu</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL float FANN_API fann_get_quickprop_mu(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>The mu factor is used to increase and decrease the step-size during quickprop training. The mu factor should always be above 1, since it would otherwise decrease the step-size when it was suppose to increase it.</p><p>The default mu factor is 1.75.</p><h4 class=CHeading>See also</h4><p><a href="#fann_set_quickprop_mu" class=LFunction id=link319 onMouseOver="ShowTip(event, 'tt63', 'link319')" onMouseOut="HideTip('tt63')">fann_set_quickprop_mu</a></p><p>This function appears in FANN >= 1.2.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_set_quickprop_mu"></a>fann_set_quickprop_mu</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_set_quickprop_mu(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>quickprop_mu</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>Sets the quickprop mu factor.</p><h4 class=CHeading>See also</h4><p><a href="#fann_get_quickprop_mu" class=LFunction id=link320 onMouseOver="ShowTip(event, 'tt62', 'link320')" onMouseOut="HideTip('tt62')">fann_get_quickprop_mu</a></p><p>This function appears in FANN >= 1.2.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_get_rprop_increase_factor"></a>fann_get_rprop_increase_factor</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL float FANN_API fann_get_rprop_increase_factor(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>The increase factor is a value larger than 1, which is used to increase the step-size during RPROP training.</p><p>The default increase factor is 1.2.</p><h4 class=CHeading>See also</h4><p><a href="#fann_set_rprop_increase_factor" class=LFunction id=link321 onMouseOver="ShowTip(event, 'tt65', 'link321')" onMouseOut="HideTip('tt65')">fann_set_rprop_increase_factor</a></p><p>This function appears in FANN >= 1.2.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_set_rprop_increase_factor"></a>fann_set_rprop_increase_factor</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_set_rprop_increase_factor(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>rprop_increase_factor</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>The increase factor used during RPROP training.</p><h4 class=CHeading>See also</h4><p><a href="#fann_get_rprop_increase_factor" class=LFunction id=link322 onMouseOver="ShowTip(event, 'tt64', 'link322')" onMouseOut="HideTip('tt64')">fann_get_rprop_increase_factor</a></p><p>This function appears in FANN >= 1.2.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_get_rprop_decrease_factor"></a>fann_get_rprop_decrease_factor</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL float FANN_API fann_get_rprop_decrease_factor(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>The decrease factor is a value smaller than 1, which is used to decrease the step-size during RPROP training.</p><p>The default decrease factor is 0.5.</p><h4 class=CHeading>See also</h4><p><a href="#fann_set_rprop_decrease_factor" class=LFunction id=link323 onMouseOver="ShowTip(event, 'tt67', 'link323')" onMouseOut="HideTip('tt67')">fann_set_rprop_decrease_factor</a></p><p>This function appears in FANN >= 1.2.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_set_rprop_decrease_factor"></a>fann_set_rprop_decrease_factor</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_set_rprop_decrease_factor(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>rprop_decrease_factor</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote><p>The decrease factor is a value smaller than 1, which is used to decrease the step-size during RPROP training.</p><h4 class=CHeading>See also</h4><p><a href="#fann_get_rprop_decrease_factor" class=LFunction id=link324 onMouseOver="ShowTip(event, 'tt66', 'link324')" onMouseOut="HideTip('tt66')">fann_get_rprop_decrease_factor</a></p><p>This function appears in FANN >= 1.2.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_get_rprop_delta_min"></a>fann_get_rprop_delta_min</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL float FANN_API fann_get_rprop_delta_min(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>The minimum step-size is a small positive number determining how small the minimum step-size may be.</p><p>The default value delta min is 0.0.</p><h4 class=CHeading>See also</h4><p><a href="#fann_set_rprop_delta_min" class=LFunction id=link325 onMouseOver="ShowTip(event, 'tt69', 'link325')" onMouseOut="HideTip('tt69')">fann_set_rprop_delta_min</a></p><p>This function appears in FANN >= 1.2.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_set_rprop_delta_min"></a>fann_set_rprop_delta_min</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_set_rprop_delta_min(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>rprop_delta_min</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>The minimum step-size is a small positive number determining how small the minimum step-size may be.</p><h4 class=CHeading>See also</h4><p><a href="#fann_get_rprop_delta_min" class=LFunction id=link326 onMouseOver="ShowTip(event, 'tt68', 'link326')" onMouseOut="HideTip('tt68')">fann_get_rprop_delta_min</a></p><p>This function appears in FANN >= 1.2.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_get_rprop_delta_max"></a>fann_get_rprop_delta_max</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL float FANN_API fann_get_rprop_delta_max(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>The maximum step-size is a positive number determining how large the maximum step-size may be.</p><p>The default delta max is 50.0.</p><h4 class=CHeading>See also</h4><p><a href="#fann_set_rprop_delta_max" class=LFunction id=link327 onMouseOver="ShowTip(event, 'tt71', 'link327')" onMouseOut="HideTip('tt71')">fann_set_rprop_delta_max</a>, <a href="#fann_get_rprop_delta_min" class=LFunction id=link328 onMouseOver="ShowTip(event, 'tt68', 'link328')" onMouseOut="HideTip('tt68')">fann_get_rprop_delta_min</a></p><p>This function appears in FANN >= 1.2.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_set_rprop_delta_max"></a>fann_set_rprop_delta_max</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_set_rprop_delta_max(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>rprop_delta_max</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>The maximum step-size is a positive number determining how large the maximum step-size may be.</p><h4 class=CHeading>See also</h4><p><a href="#fann_get_rprop_delta_max" class=LFunction id=link329 onMouseOver="ShowTip(event, 'tt70', 'link329')" onMouseOut="HideTip('tt70')">fann_get_rprop_delta_max</a>, <a href="#fann_get_rprop_delta_min" class=LFunction id=link330 onMouseOver="ShowTip(event, 'tt68', 'link330')" onMouseOut="HideTip('tt68')">fann_get_rprop_delta_min</a></p><p>This function appears in FANN >= 1.2.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_get_rprop_delta_zero"></a>fann_get_rprop_delta_zero</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL float FANN_API fann_get_rprop_delta_zero(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>The initial step-size is a positive number determining the initial step size.</p><p>The default delta zero is 0.1.</p><h4 class=CHeading>See also</h4><p><a href="#fann_set_rprop_delta_zero" class=LFunction id=link331 onMouseOver="ShowTip(event, 'tt73', 'link331')" onMouseOut="HideTip('tt73')">fann_set_rprop_delta_zero</a>, <a href="#fann_get_rprop_delta_min" class=LFunction id=link332 onMouseOver="ShowTip(event, 'tt68', 'link332')" onMouseOut="HideTip('tt68')">fann_get_rprop_delta_min</a>, <a href="#fann_get_rprop_delta_max" class=LFunction id=link333 onMouseOver="ShowTip(event, 'tt70', 'link333')" onMouseOut="HideTip('tt70')">fann_get_rprop_delta_max</a></p><p>This function appears in FANN >= 2.1.0.</p></div></div></div>
<div class="CFunction"><div class=CTopic><h3 class=CTitle><a name="fann_set_rprop_delta_zero"></a>fann_set_rprop_delta_zero</h3><div class=CBody><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_set_rprop_delta_zero(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>rprop_delta_max</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote><p>The initial step-size is a positive number determining the initial step size.</p><h4 class=CHeading>See also</h4><p><a href="#fann_get_rprop_delta_zero" class=LFunction id=link334 onMouseOver="ShowTip(event, 'tt72', 'link334')" onMouseOut="HideTip('tt72')">fann_get_rprop_delta_zero</a>, <a href="#fann_get_rprop_delta_zero" class=LFunction id=link335 onMouseOver="ShowTip(event, 'tt72', 'link335')" onMouseOut="HideTip('tt72')">fann_get_rprop_delta_zero</a></p><p>This function appears in FANN >= 2.1.0.</p></div></div></div>
</div><!--Content-->
<div id=Footer><a href="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
<div id=Menu><div class=MEntry><div class=MFile><a href="fann_cascade-h.html">FANN Cascade Training</a></div></div><div class=MEntry><div class=MFile><a href="fann-h.html">FANN Creation/<wbr>Execution</a></div></div><div class=MEntry><div class=MFile><a href="fann_data-h.html">FANN Datatypes</a></div></div><div class=MEntry><div class=MFile><a href="fann_error-h.html">FANN Error Handling</a></div></div><div class=MEntry><div class=MFile><a href="fann_io-h.html">FANN File Input/<wbr>Output</a></div></div><div class=MEntry><div class=MFile id=MSelected>FANN Training</div></div><div class=MEntry><div class=MFile><a href="fann_cpp-h.html">FANN Wrapper for C++</a></div></div><div class=MEntry><div class=MGroup><a href="javascript:ToggleMenu('MGroupContent1')">Index</a><div class=MGroupContent id=MGroupContent1><div class=MEntry><div class=MIndex><a href="../index/General.html">Everything</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Classes.html">Classes</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Constants.html">Constants</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Functions.html">Functions</a></div></div><div class=MEntry><div class=MIndex><a href="../index/Types.html">Types</a></div></div></div></div></div><script type="text/javascript"><!--
var searchPanel = new SearchPanel("searchPanel", "HTML", "../search");
--></script><div id=MSearchPanel class=MSearchPanelInactive><input type=text id=MSearchField value=Search onFocus="searchPanel.OnSearchFieldFocus(true)" onBlur="searchPanel.OnSearchFieldFocus(false)" onKeyUp="searchPanel.OnSearchFieldChange()"><select id=MSearchType onFocus="searchPanel.OnSearchTypeFocus(true)" onBlur="searchPanel.OnSearchTypeFocus(false)" onChange="searchPanel.OnSearchTypeChange()"><option id=MSearchEverything selected value="General">Everything</option><option value="Classes">Classes</option><option value="Constants">Constants</option><option value="Functions">Functions</option><option value="Types">Types</option></select></div></div><!--Menu-->
<!--START_ND_TOOLTIPS-->
<div class=CToolTip id="tt1"><div class=CClass><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td class="prettyprint">struct fann_train_data</td></tr></table></blockquote>Structure used to store data, for use with training.</div></div><div class=CToolTip id="tt2"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_train(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>input,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>desired_output</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Train one iteration with a set of inputs, and a set of desired outputs. </div></div><div class=CToolTip id="tt3"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL fann_type * FANN_API fann_test(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>input,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>desired_output</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Test with a set of inputs, and a set of desired outputs. </div></div><div class=CToolTip id="tt4"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL float FANN_API fann_get_MSE(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Reads the mean square error from the network.</div></div><div class=CToolTip id="tt5"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL unsigned int FANN_API fann_get_bit_fail(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>The number of fail bits; means the number of output neurons which differ more than the bit fail limit (see fann_get_bit_fail_limit, fann_set_bit_fail_limit). </div></div><div class=CToolTip id="tt6"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL fann_type FANN_API fann_get_bit_fail_limit(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Returns the bit fail limit used during training.</div></div><div class=CToolTip id="tt7"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_set_bit_fail_limit(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>bit_fail_limit</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Set the bit fail limit used during training.</div></div><div class=CToolTip id="tt8"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_reset_MSE(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Resets the mean square error from the network.</div></div><div class=CToolTip id="tt9"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_train_on_data(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>data,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>unsigned </td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>max_epochs,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>unsigned </td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>epochs_between_reports,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>desired_error</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Trains on an entire dataset, for a period of time.</div></div><div class=CToolTip id="tt10"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_train_on_file(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>const </td><td class="PType prettyprint " nowrap>char </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>filename,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>unsigned </td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>max_epochs,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>unsigned </td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>epochs_between_reports,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>desired_error</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Does the same as fann_train_on_data, but reads the training data directly from a file.</div></div><div class=CToolTip id="tt11"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL float FANN_API fann_train_epoch(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>data</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Train one epoch with a set of training data.</div></div><div class=CToolTip id="tt12"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL float FANN_API fann_test_data(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>data</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Test a set of training data and calculates the MSE for the training data.</div></div><div class=CToolTip id="tt13"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL struct fann_train_data *FANN_API fann_read_train_from_file(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>const </td><td class="PType prettyprint " nowrap>char </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>filename</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Reads a file that stores training data.</div></div><div class=CToolTip id="tt14"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=4>FANN_EXTERNAL struct fann_train_data * FANN_API fann_create_train_from_callback(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>unsigned </td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap width=100%>num_data,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>unsigned </td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap width=100%>num_input,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>unsigned </td><td class="PType prettyprint " nowrap>int </td><td class="PParameter prettyprint " nowrap width=100%>num_output,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>void </td><td class="PParameter prettyprint " nowrap width=100%>(FANN_API *user_function)( unsigned int, unsigned int, unsigned int, fann_type * , fann_type * )</td></tr><tr><td class="PAfterParameters prettyprint "colspan=4>)</td></tr></table></td></tr></table></blockquote>Creates the training data struct from a user supplied function. </div></div><div class=CToolTip id="tt15"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_destroy_train(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>train_data</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Destructs the training data and properly deallocates all of the associated data. </div></div><div class=CToolTip id="tt16"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_shuffle_train_data(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>train_data</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Shuffles training data, randomizing the order. </div></div><div class=CToolTip id="tt17"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_scale_train(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>data</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Scale input and output data based on previously calculated parameters.</div></div><div class=CToolTip id="tt18"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_descale_train(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>data</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Descale input and output data based on previously calculated parameters.</div></div><div class=CToolTip id="tt19"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL int FANN_API fann_set_input_scaling_params(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>const struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>data,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_input_min,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_input_max</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Calculate input scaling parameters for future use based on training data.</div></div><div class=CToolTip id="tt20"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL int FANN_API fann_set_output_scaling_params(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>const struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>data,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_output_min,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_output_max</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Calculate output scaling parameters for future use based on training data.</div></div><div class=CToolTip id="tt21"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL int FANN_API fann_set_scaling_params(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>const struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>data,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_input_min,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_input_max,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_output_min,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_output_max</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Calculate input and output scaling parameters for future use based on training data.</div></div><div class=CToolTip id="tt22"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL int FANN_API fann_clear_scaling_params(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Clears scaling parameters.</div></div><div class=CToolTip id="tt23"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_scale_input(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>input_vector</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Scale data in input vector before feed it to ann based on previously calculated parameters.</div></div><div class=CToolTip id="tt24"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_scale_output(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>output_vector</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Scale data in output vector before feed it to ann based on previously calculated parameters.</div></div><div class=CToolTip id="tt25"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_descale_input(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>input_vector</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Scale data in input vector after get it from ann based on previously calculated parameters.</div></div><div class=CToolTip id="tt26"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_descale_output(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>output_vector</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Scale data in output vector after get it from ann based on previously calculated parameters.</div></div><div class=CToolTip id="tt27"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_scale_input_train_data(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>train_data,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_min,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_max</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Scales the inputs in the training data to the specified range.</div></div><div class=CToolTip id="tt28"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_scale_output_train_data(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>train_data,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_min,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_max</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Scales the outputs in the training data to the specified range.</div></div><div class=CToolTip id="tt29"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_scale_train_data(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>train_data,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_min,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>new_max</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Scales the inputs and outputs in the training data to the specified range.</div></div><div class=CToolTip id="tt30"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL struct fann_train_data *FANN_API fann_merge_train_data(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>data1,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>data2</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Merges the data from <b>data1</b> and <b>data2</b> into a new struct fann_train_data.</div></div><div class=CToolTip id="tt31"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL struct fann_train_data *FANN_API fann_duplicate_train_data(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>data</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Returns an exact copy of a struct fann_train_data.</div></div><div class=CToolTip id="tt32"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL struct fann_train_data *FANN_API fann_subset_train_data(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>data,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>unsigned </td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>pos,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>unsigned </td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>length</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Returns an copy of a subset of the struct fann_train_data, starting at position <b>pos</b> and <b>length</b> elements forward.</div></div><div class=CToolTip id="tt33"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL unsigned int FANN_API fann_length_train_data(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>data</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Returns the number of training patterns in the struct fann_train_data.</div></div><div class=CToolTip id="tt34"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL unsigned int FANN_API fann_num_input_train_data(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>data</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Returns the number of inputs in each of the training patterns in the struct fann_train_data.</div></div><div class=CToolTip id="tt35"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL unsigned int FANN_API fann_num_output_train_data(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>data</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Returns the number of outputs in each of the training patterns in the struct fann_train_data.</div></div><div class=CToolTip id="tt36"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL int FANN_API fann_save_train(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>data,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap>const </td><td class="PType prettyprint " nowrap>char </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>filename</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Save the training structure to a file, with the format as specified in fann_read_train_from_file</div></div><div class=CToolTip id="tt37"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL int FANN_API fann_save_train_to_fixed(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>data,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>const </td><td class="PType prettyprint " nowrap>char </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>filename,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>unsigned </td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>decimal_point</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Saves the training structure to a fixed point data file.</div></div><div class=CToolTip id="tt38"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL enum fann_train_enum FANN_API fann_get_training_algorithm(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Return the training algorithm as described by fann_train_enum. </div></div><div class=CToolTip id="tt39"><div class=CType>The Training algorithms used when training on struct fann_train_data with functions like fann_train_on_data or fann_train_on_file. </div></div><div class=CToolTip id="tt40"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_set_training_algorithm(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>enum </td><td class="PType prettyprint " nowrap>fann_train_enum </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>training_algorithm</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Set the training algorithm.</div></div><div class=CToolTip id="tt41"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL float FANN_API fann_get_learning_rate(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Return the learning rate.</div></div><div class=CToolTip id="tt42"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_set_learning_rate(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>learning_rate</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Set the learning rate.</div></div><div class=CToolTip id="tt43"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL float FANN_API fann_get_learning_momentum(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Get the learning momentum.</div></div><div class=CToolTip id="tt44"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_set_learning_momentum(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>learning_momentum</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Set the learning momentum.</div></div><div class=CToolTip id="tt45"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL enum fann_activationfunc_enum FANN_API fann_get_activation_function(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>layer,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>neuron</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Get the activation function for neuron number <b>neuron</b> in layer number <b>layer</b>, counting the input layer as layer 0.</div></div><div class=CToolTip id="tt46"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_set_activation_function(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>enum </td><td class="PType prettyprint " nowrap>fann_activationfunc_enum </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>activation_function,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>layer,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>neuron</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Set the activation function for neuron number <b>neuron</b> in layer number <b>layer</b>, counting the input layer as layer 0.</div></div><div class=CToolTip id="tt47"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_set_activation_function_layer(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>enum </td><td class="PType prettyprint " nowrap>fann_activationfunc_enum </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>activation_function,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>layer</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Set the activation function for all the neurons in the layer number <b>layer</b>, counting the input layer as layer 0.</div></div><div class=CToolTip id="tt48"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_set_activation_function_hidden(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>enum </td><td class="PType prettyprint " nowrap>fann_activationfunc_enum </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>activation_function</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Set the activation function for all of the hidden layers.</div></div><div class=CToolTip id="tt49"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_set_activation_function_output(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>enum </td><td class="PType prettyprint " nowrap>fann_activationfunc_enum </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>activation_function</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Set the activation function for the output layer.</div></div><div class=CToolTip id="tt50"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL fann_type FANN_API fann_get_activation_steepness(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>layer,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>neuron</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Get the activation steepness for neuron number <b>neuron</b> in layer number <b>layer</b>, counting the input layer as layer 0.</div></div><div class=CToolTip id="tt51"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_set_activation_steepness(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>steepness,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>layer,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>neuron</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Set the activation steepness for neuron number <b>neuron</b> in layer number <b>layer</b>, counting the input layer as layer 0.</div></div><div class=CToolTip id="tt52"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_set_activation_steepness_layer(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>steepness,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>layer</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Set the activation steepness all of the neurons in layer number <b>layer</b>, counting the input layer as layer 0.</div></div><div class=CToolTip id="tt53"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_set_activation_steepness_hidden(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>steepness</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Set the steepness of the activation steepness in all of the hidden layers.</div></div><div class=CToolTip id="tt54"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_set_activation_steepness_output(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_type </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>steepness</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Set the steepness of the activation steepness in the output layer.</div></div><div class=CToolTip id="tt55"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL enum fann_errorfunc_enum FANN_API fann_get_train_error_function(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Returns the error function used during training.</div></div><div class=CToolTip id="tt56"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_set_train_error_function(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>enum </td><td class="PType prettyprint " nowrap>fann_errorfunc_enum </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>train_error_function</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Set the error function used during training.</div></div><div class=CToolTip id="tt57"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL enum fann_stopfunc_enum FANN_API fann_get_train_stop_function(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Returns the the stop function used during training.</div></div><div class=CToolTip id="tt58"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_set_train_stop_function(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>enum </td><td class="PType prettyprint " nowrap>fann_stopfunc_enum </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>train_stop_function</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Set the stop function used during training.</div></div><div class=CToolTip id="tt59"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_set_callback(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>fann_callback_type </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>callback</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the callback function for use during training.</div></div><div class=CToolTip id="tt60"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL float FANN_API fann_get_quickprop_decay(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>The decay is a small negative valued number which is the factor that the weights should become smaller in each iteration during quickprop training. </div></div><div class=CToolTip id="tt61"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_set_quickprop_decay(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>quickprop_decay</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the quickprop decay factor.</div></div><div class=CToolTip id="tt62"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL float FANN_API fann_get_quickprop_mu(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>The mu factor is used to increase and decrease the step-size during quickprop training. </div></div><div class=CToolTip id="tt63"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_set_quickprop_mu(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>quickprop_mu</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Sets the quickprop mu factor.</div></div><div class=CToolTip id="tt64"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL float FANN_API fann_get_rprop_increase_factor(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>The increase factor is a value larger than 1, which is used to increase the step-size during RPROP training.</div></div><div class=CToolTip id="tt65"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_set_rprop_increase_factor(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>rprop_increase_factor</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>The increase factor used during RPROP training.</div></div><div class=CToolTip id="tt66"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL float FANN_API fann_get_rprop_decrease_factor(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>The decrease factor is a value smaller than 1, which is used to decrease the step-size during RPROP training.</div></div><div class=CToolTip id="tt67"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_set_rprop_decrease_factor(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>rprop_decrease_factor</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>The decrease factor is a value smaller than 1, which is used to decrease the step-size during RPROP training.</div></div><div class=CToolTip id="tt68"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL float FANN_API fann_get_rprop_delta_min(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>The minimum step-size is a small positive number determining how small the minimum step-size may be.</div></div><div class=CToolTip id="tt69"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_set_rprop_delta_min(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>rprop_delta_min</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>The minimum step-size is a small positive number determining how small the minimum step-size may be.</div></div><div class=CToolTip id="tt70"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL float FANN_API fann_get_rprop_delta_max(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>The maximum step-size is a positive number determining how large the maximum step-size may be.</div></div><div class=CToolTip id="tt71"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_set_rprop_delta_max(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>rprop_delta_max</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>The maximum step-size is a positive number determining how large the maximum step-size may be.</div></div><div class=CToolTip id="tt72"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL float FANN_API fann_get_rprop_delta_zero(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>The initial step-size is a positive number determining the initial step size.</div></div><div class=CToolTip id="tt73"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL void FANN_API fann_set_rprop_delta_zero(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann,</td></tr><tr><td></td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap>rprop_delta_max</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>The initial step-size is a positive number determining the initial step size.</div></div><div class=CToolTip id="tt74"><div class=CSection>Cascade training differs from ordinary training in the sense that it starts with an empty neural network and then adds neurons one by one, while it trains the neural network. </div></div><div class=CToolTip id="tt75"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL unsigned int FANN_API fann_get_num_input(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Get the number of input neurons.</div></div><div class=CToolTip id="tt76"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "nowrap>FANN_EXTERNAL unsigned int FANN_API fann_get_num_output(</td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap>ann</td><td class="PAfterParameters prettyprint "nowrap>)</td></tr></table></td></tr></table></blockquote>Get the number of output neurons.</div></div><div class=CToolTip id="tt77"><div class=CType>Stop criteria used during training.</div></div><div class=CToolTip id="tt78"><div class=CFunction><blockquote><table border=0 cellspacing=0 cellpadding=0 class="Prototype"><tr><td><table border=0 cellspacing=0 cellpadding=0><tr><td class="PBeforeParameters prettyprint "colspan=5>FANN_EXTERNAL void FANN_API fann_cascadetrain_on_data(</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>ann,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>struct </td><td class="PType prettyprint " nowrap>fann_train_data </td><td class="PParameterPrefix prettyprint " nowrap>*</td><td class="PParameter prettyprint " nowrap width=100%>data,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>unsigned </td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>max_neurons,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap>unsigned </td><td class="PType prettyprint " nowrap>int </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>neurons_between_reports,</td></tr><tr><td> </td><td class="PTypePrefix prettyprint " nowrap></td><td class="PType prettyprint " nowrap>float </td><td class="PParameterPrefix prettyprint " nowrap></td><td class="PParameter prettyprint " nowrap width=100%>desired_error</td></tr><tr><td class="PAfterParameters prettyprint "colspan=5>)</td></tr></table></td></tr></table></blockquote>Trains on an entire dataset, for a period of time using the Cascade2 training algorithm. </div></div><div class=CToolTip id="tt79"><div class=CType>The activation functions used for the neurons during training. </div></div><div class=CToolTip id="tt80"><div class=CType>Error function used during training.</div></div><div class=CToolTip id="tt81"><div class=CType>This callback function can be called during training when using fann_train_on_data, fann_train_on_file or fann_cascadetrain_on_data.</div></div><!--END_ND_TOOLTIPS-->
<div id=MSearchResultsWindow><iframe src="" frameborder=0 name=MSearchResults id=MSearchResults></iframe><a href="javascript:searchPanel.CloseResultsWindow()" id=MSearchResultsWindowClose>Close</a></div>
<script language=JavaScript><!--
if (browserType) {if (browserVer) {document.write("</div>"); }document.write("</div>");}// --></script></body></html>
|