Files
mlpack/doc/html/logistic__regression__function_8hpp_source.html
T

130 lines
28 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>mlpack: src/mlpack/methods/logistic_regression/logistic_regression_function.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="extra-stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">mlpack
&#160;<span id="projectnumber">master</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_44a936ef30fc126706c6284a2fc0c990.html">mlpack</a></li><li class="navelem"><a class="el" href="dir_3cfbf900288ec2fe8dd2c2c8482f216e.html">methods</a></li><li class="navelem"><a class="el" href="dir_ab5892a8863edef01ef7c478e1f8962d.html">logistic_regression</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">logistic_regression_function.hpp</div> </div>
</div><!--header-->
<div class="contents">
<a href="logistic__regression__function_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span>&#160;</div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="preprocessor">#ifndef MLPACK_METHODS_LOGISTIC_REGRESSION_LOGISTIC_REGRESSION_FUNCTION_HPP</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="preprocessor">#define MLPACK_METHODS_LOGISTIC_REGRESSION_LOGISTIC_REGRESSION_FUNCTION_HPP</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;</div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="preprocessor">#include &lt;<a class="code" href="prereqs_8hpp.html">mlpack/prereqs.hpp</a>&gt;</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacemlpack.html">mlpack</a> {</div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="keyword">namespace </span>regression {</div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">typename</span> MatType = arma::mat&gt;</div><div class="line"><a name="l00028"></a><span class="lineno"><a class="line" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html"> 28</a></span>&#160;<span class="keyword">class </span><a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html">LogisticRegressionFunction</a></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;{</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160; <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a8f8a0ea4307d3f41dd4c2f864245eb12">LogisticRegressionFunction</a>(<span class="keyword">const</span> MatType&amp; <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a0b1bd72084ee29066c58b2d8b0bf84ce">predictors</a>,</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160; <span class="keyword">const</span> arma::Row&lt;size_t&gt;&amp; <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#af7f264fee499538ed85c649f0485e944">responses</a>,</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160; <span class="keyword">const</span> <span class="keywordtype">double</span> <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a5058f00c39a8846b5193c5ff81f315e2">lambda</a> = 0);</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;</div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span>&#160; <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a8f8a0ea4307d3f41dd4c2f864245eb12">LogisticRegressionFunction</a>(<span class="keyword">const</span> MatType&amp; predictors,</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <span class="keyword">const</span> arma::Row&lt;size_t&gt;&amp; responses,</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160; <span class="keyword">const</span> arma::vec&amp; <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#ab436707b0b1bd1d08ad001238dbfd0bd">initialPoint</a>,</div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160; <span class="keyword">const</span> <span class="keywordtype">double</span> <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a5058f00c39a8846b5193c5ff81f315e2">lambda</a> = 0);</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a71c8ab5910f1b3d9d79d2606401a73af"> 41</a></span>&#160; <span class="keyword">const</span> arma::mat&amp; <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a71c8ab5910f1b3d9d79d2606401a73af">InitialPoint</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#ab436707b0b1bd1d08ad001238dbfd0bd">initialPoint</a>; }</div><div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a348c31d2a43ee5f5243ecb1693a09ab5"> 43</a></span>&#160; arma::mat&amp; <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a348c31d2a43ee5f5243ecb1693a09ab5">InitialPoint</a>() { <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#ab436707b0b1bd1d08ad001238dbfd0bd">initialPoint</a>; }</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#ab142fc11fc0baa2f9137186009ece105"> 46</a></span>&#160; <span class="keyword">const</span> <span class="keywordtype">double</span>&amp; <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#ab142fc11fc0baa2f9137186009ece105">Lambda</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a5058f00c39a8846b5193c5ff81f315e2">lambda</a>; }</div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#ac79ecd4c714030022b855822d3797e88"> 48</a></span>&#160; <span class="keywordtype">double</span>&amp; <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#ac79ecd4c714030022b855822d3797e88">Lambda</a>() { <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a5058f00c39a8846b5193c5ff81f315e2">lambda</a>; }</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#ab58c04750d406c3f3e3de5d8b3e65f7f"> 51</a></span>&#160; <span class="keyword">const</span> MatType&amp; <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#ab58c04750d406c3f3e3de5d8b3e65f7f">Predictors</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a0b1bd72084ee29066c58b2d8b0bf84ce">predictors</a>; }</div><div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a0331f1eb0524c8baca3e6ce7f8af8ed0"> 53</a></span>&#160; <span class="keyword">const</span> arma::vec&amp; <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a0331f1eb0524c8baca3e6ce7f8af8ed0">Responses</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#af7f264fee499538ed85c649f0485e944">responses</a>; }</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160; <span class="keywordtype">double</span> <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a200729c6e8d9f433f930b8880f79eef5">Evaluate</a>(<span class="keyword">const</span> arma::mat&amp; parameters) <span class="keyword">const</span>;</div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>&#160; <span class="keywordtype">double</span> <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a200729c6e8d9f433f930b8880f79eef5">Evaluate</a>(<span class="keyword">const</span> arma::mat&amp; parameters, <span class="keyword">const</span> <span class="keywordtype">size_t</span> i) <span class="keyword">const</span>;</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;</div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#af03884eac1acde5bfcb583d61ea366a4">Gradient</a>(<span class="keyword">const</span> arma::mat&amp; parameters, arma::mat&amp; gradient) <span class="keyword">const</span>;</div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160;</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <span class="keywordtype">void</span> <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#af03884eac1acde5bfcb583d61ea366a4">Gradient</a>(<span class="keyword">const</span> arma::mat&amp; parameters,</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <span class="keyword">const</span> <span class="keywordtype">size_t</span> i,</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; arma::mat&amp; gradient) <span class="keyword">const</span>;</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160;</div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a5bd42c32840e753c1e59a9531356d710"> 108</a></span>&#160; <span class="keyword">const</span> arma::mat&amp; <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a5bd42c32840e753c1e59a9531356d710">GetInitialPoint</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#ab436707b0b1bd1d08ad001238dbfd0bd">initialPoint</a>; }</div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160;</div><div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#ac0d0ff92d64b228e873ff5f78cbc50c8"> 111</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#ac0d0ff92d64b228e873ff5f78cbc50c8">NumFunctions</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> predictors.n_cols; }</div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160;</div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#ab436707b0b1bd1d08ad001238dbfd0bd"> 115</a></span>&#160; arma::mat <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#ab436707b0b1bd1d08ad001238dbfd0bd">initialPoint</a>;</div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a0b1bd72084ee29066c58b2d8b0bf84ce"> 117</a></span>&#160; <span class="keyword">const</span> MatType&amp; <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a0b1bd72084ee29066c58b2d8b0bf84ce">predictors</a>;</div><div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#af7f264fee499538ed85c649f0485e944"> 119</a></span>&#160; <span class="keyword">const</span> arma::Row&lt;size_t&gt;&amp; <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#af7f264fee499538ed85c649f0485e944">responses</a>;</div><div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a5058f00c39a8846b5193c5ff81f315e2"> 121</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a5058f00c39a8846b5193c5ff81f315e2">lambda</a>;</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160;};</div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;} <span class="comment">// namespace regression</span></div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160;} <span class="comment">// namespace mlpack</span></div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;</div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160;<span class="comment">// Include implementation.</span></div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160;<span class="preprocessor">#include &quot;logistic_regression_function_impl.hpp&quot;</span></div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160;<span class="preprocessor">#endif // MLPACK_METHODS_LOGISTIC_REGRESSION_LOGISTIC_REGRESSION_FUNCTION_HPP</span></div><div class="ttc" id="classmlpack_1_1regression_1_1LogisticRegressionFunction_html"><div class="ttname"><a href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html">mlpack::regression::LogisticRegressionFunction</a></div><div class="ttdoc">The log-likelihood function for the logistic regression objective function. </div><div class="ttdef"><b>Definition:</b> <a href="logistic__regression__function_8hpp_source.html#l00028">logistic_regression_function.hpp:28</a></div></div>
<div class="ttc" id="namespacemlpack_html"><div class="ttname"><a href="namespacemlpack.html">mlpack</a></div><div class="ttdoc">Linear algebra utility functions, generally performed on matrices or vectors. </div><div class="ttdef"><b>Definition:</b> <a href="binarize_8hpp_source.html#l00018">binarize.hpp:18</a></div></div>
<div class="ttc" id="classmlpack_1_1regression_1_1LogisticRegressionFunction_html_ab436707b0b1bd1d08ad001238dbfd0bd"><div class="ttname"><a href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#ab436707b0b1bd1d08ad001238dbfd0bd">mlpack::regression::LogisticRegressionFunction::initialPoint</a></div><div class="ttdeci">arma::mat initialPoint</div><div class="ttdoc">The initial point, from which to start the optimization. </div><div class="ttdef"><b>Definition:</b> <a href="logistic__regression__function_8hpp_source.html#l00115">logistic_regression_function.hpp:115</a></div></div>
<div class="ttc" id="prereqs_8hpp_html"><div class="ttname"><a href="prereqs_8hpp.html">prereqs.hpp</a></div><div class="ttdoc">The core includes that mlpack expects; standard C++ includes and Armadillo. </div></div>
<div class="ttc" id="classmlpack_1_1regression_1_1LogisticRegressionFunction_html_a5bd42c32840e753c1e59a9531356d710"><div class="ttname"><a href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a5bd42c32840e753c1e59a9531356d710">mlpack::regression::LogisticRegressionFunction::GetInitialPoint</a></div><div class="ttdeci">const arma::mat &amp; GetInitialPoint() const </div><div class="ttdoc">Return the initial point for the optimization. </div><div class="ttdef"><b>Definition:</b> <a href="logistic__regression__function_8hpp_source.html#l00108">logistic_regression_function.hpp:108</a></div></div>
<div class="ttc" id="classmlpack_1_1regression_1_1LogisticRegressionFunction_html_a0b1bd72084ee29066c58b2d8b0bf84ce"><div class="ttname"><a href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a0b1bd72084ee29066c58b2d8b0bf84ce">mlpack::regression::LogisticRegressionFunction::predictors</a></div><div class="ttdeci">const MatType &amp; predictors</div><div class="ttdoc">The matrix of data points (predictors). </div><div class="ttdef"><b>Definition:</b> <a href="logistic__regression__function_8hpp_source.html#l00117">logistic_regression_function.hpp:117</a></div></div>
<div class="ttc" id="classmlpack_1_1regression_1_1LogisticRegressionFunction_html_ac79ecd4c714030022b855822d3797e88"><div class="ttname"><a href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#ac79ecd4c714030022b855822d3797e88">mlpack::regression::LogisticRegressionFunction::Lambda</a></div><div class="ttdeci">double &amp; Lambda()</div><div class="ttdoc">Modify the regularization parameter (lambda). </div><div class="ttdef"><b>Definition:</b> <a href="logistic__regression__function_8hpp_source.html#l00048">logistic_regression_function.hpp:48</a></div></div>
<div class="ttc" id="classmlpack_1_1regression_1_1LogisticRegressionFunction_html_ab142fc11fc0baa2f9137186009ece105"><div class="ttname"><a href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#ab142fc11fc0baa2f9137186009ece105">mlpack::regression::LogisticRegressionFunction::Lambda</a></div><div class="ttdeci">const double &amp; Lambda() const </div><div class="ttdoc">Return the regularization parameter (lambda). </div><div class="ttdef"><b>Definition:</b> <a href="logistic__regression__function_8hpp_source.html#l00046">logistic_regression_function.hpp:46</a></div></div>
<div class="ttc" id="classmlpack_1_1regression_1_1LogisticRegressionFunction_html_ac0d0ff92d64b228e873ff5f78cbc50c8"><div class="ttname"><a href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#ac0d0ff92d64b228e873ff5f78cbc50c8">mlpack::regression::LogisticRegressionFunction::NumFunctions</a></div><div class="ttdeci">size_t NumFunctions() const </div><div class="ttdoc">Return the number of separable functions (the number of predictor points). </div><div class="ttdef"><b>Definition:</b> <a href="logistic__regression__function_8hpp_source.html#l00111">logistic_regression_function.hpp:111</a></div></div>
<div class="ttc" id="classmlpack_1_1regression_1_1LogisticRegressionFunction_html_a0331f1eb0524c8baca3e6ce7f8af8ed0"><div class="ttname"><a href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a0331f1eb0524c8baca3e6ce7f8af8ed0">mlpack::regression::LogisticRegressionFunction::Responses</a></div><div class="ttdeci">const arma::vec &amp; Responses() const </div><div class="ttdoc">Return the vector of responses. </div><div class="ttdef"><b>Definition:</b> <a href="logistic__regression__function_8hpp_source.html#l00053">logistic_regression_function.hpp:53</a></div></div>
<div class="ttc" id="classmlpack_1_1regression_1_1LogisticRegressionFunction_html_af7f264fee499538ed85c649f0485e944"><div class="ttname"><a href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#af7f264fee499538ed85c649f0485e944">mlpack::regression::LogisticRegressionFunction::responses</a></div><div class="ttdeci">const arma::Row&lt; size_t &gt; &amp; responses</div><div class="ttdoc">The vector of responses to the input data points. </div><div class="ttdef"><b>Definition:</b> <a href="logistic__regression__function_8hpp_source.html#l00119">logistic_regression_function.hpp:119</a></div></div>
<div class="ttc" id="classmlpack_1_1regression_1_1LogisticRegressionFunction_html_a200729c6e8d9f433f930b8880f79eef5"><div class="ttname"><a href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a200729c6e8d9f433f930b8880f79eef5">mlpack::regression::LogisticRegressionFunction::Evaluate</a></div><div class="ttdeci">double Evaluate(const arma::mat &amp;parameters) const </div><div class="ttdoc">Evaluate the logistic regression log-likelihood function with the given parameters. </div></div>
<div class="ttc" id="classmlpack_1_1regression_1_1LogisticRegressionFunction_html_a71c8ab5910f1b3d9d79d2606401a73af"><div class="ttname"><a href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a71c8ab5910f1b3d9d79d2606401a73af">mlpack::regression::LogisticRegressionFunction::InitialPoint</a></div><div class="ttdeci">const arma::mat &amp; InitialPoint() const </div><div class="ttdoc">Return the initial point for the optimization. </div><div class="ttdef"><b>Definition:</b> <a href="logistic__regression__function_8hpp_source.html#l00041">logistic_regression_function.hpp:41</a></div></div>
<div class="ttc" id="classmlpack_1_1regression_1_1LogisticRegressionFunction_html_a348c31d2a43ee5f5243ecb1693a09ab5"><div class="ttname"><a href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a348c31d2a43ee5f5243ecb1693a09ab5">mlpack::regression::LogisticRegressionFunction::InitialPoint</a></div><div class="ttdeci">arma::mat &amp; InitialPoint()</div><div class="ttdoc">Modify the initial point for the optimization. </div><div class="ttdef"><b>Definition:</b> <a href="logistic__regression__function_8hpp_source.html#l00043">logistic_regression_function.hpp:43</a></div></div>
<div class="ttc" id="classmlpack_1_1regression_1_1LogisticRegressionFunction_html_af03884eac1acde5bfcb583d61ea366a4"><div class="ttname"><a href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#af03884eac1acde5bfcb583d61ea366a4">mlpack::regression::LogisticRegressionFunction::Gradient</a></div><div class="ttdeci">void Gradient(const arma::mat &amp;parameters, arma::mat &amp;gradient) const </div><div class="ttdoc">Evaluate the gradient of the logistic regression log-likelihood function with the given parameters...</div></div>
<div class="ttc" id="classmlpack_1_1regression_1_1LogisticRegressionFunction_html_a5058f00c39a8846b5193c5ff81f315e2"><div class="ttname"><a href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a5058f00c39a8846b5193c5ff81f315e2">mlpack::regression::LogisticRegressionFunction::lambda</a></div><div class="ttdeci">double lambda</div><div class="ttdoc">The regularization parameter for L2-regularization. </div><div class="ttdef"><b>Definition:</b> <a href="logistic__regression__function_8hpp_source.html#l00121">logistic_regression_function.hpp:121</a></div></div>
<div class="ttc" id="classmlpack_1_1regression_1_1LogisticRegressionFunction_html_ab58c04750d406c3f3e3de5d8b3e65f7f"><div class="ttname"><a href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#ab58c04750d406c3f3e3de5d8b3e65f7f">mlpack::regression::LogisticRegressionFunction::Predictors</a></div><div class="ttdeci">const MatType &amp; Predictors() const </div><div class="ttdoc">Return the matrix of predictors. </div><div class="ttdef"><b>Definition:</b> <a href="logistic__regression__function_8hpp_source.html#l00051">logistic_regression_function.hpp:51</a></div></div>
<div class="ttc" id="classmlpack_1_1regression_1_1LogisticRegressionFunction_html_a8f8a0ea4307d3f41dd4c2f864245eb12"><div class="ttname"><a href="classmlpack_1_1regression_1_1LogisticRegressionFunction.html#a8f8a0ea4307d3f41dd4c2f864245eb12">mlpack::regression::LogisticRegressionFunction::LogisticRegressionFunction</a></div><div class="ttdeci">LogisticRegressionFunction(const MatType &amp;predictors, const arma::Row&lt; size_t &gt; &amp;responses, const double lambda=0)</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
<script type="text/javascript">
var x = document.getElementsByClassName("formulaDsp");
var i;
for (i = 0; i < x.length; i++)
{
x[i].width /= 4;
}
</script>
</html>