BayesNet/html/bayesnet/network/Network.cc.func-c.html

356 lines
23 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>LCOV - coverage.info - bayesnet/network/Network.cc - functions</title>
<link rel="stylesheet" type="text/css" href="../../gcov.css">
</head>
<body>
<table width="100%" border=0 cellspacing=0 cellpadding=0>
<tr><td class="title">LCOV - code coverage report</td></tr>
<tr><td class="ruler"><img src="../../glass.png" width=3 height=3 alt=""></td></tr>
<tr>
<td width="100%">
<table cellpadding=1 border=0 width="100%">
<tr>
<td width="10%" class="headerItem">Current view:</td>
<td width="10%" class="headerValue"><a href="../../index.html">top level</a> - <a href="index.html">bayesnet/network</a> - Network.cc<span style="font-size: 80%;"> (<a href="Network.cc.gcov.html">source</a> / functions)</span></td>
<td width="5%"></td>
<td width="5%"></td>
<td width="5%" class="headerCovTableHead">Coverage</td>
<td width="5%" class="headerCovTableHead" title="Covered + Uncovered code">Total</td>
<td width="5%" class="headerCovTableHead" title="Exercised code only">Hit</td>
</tr>
<tr>
<td class="headerItem">Test:</td>
<td class="headerValue">coverage.info</td>
<td></td>
<td class="headerItem">Lines:</td>
<td class="headerCovTableEntryHi">98.3&nbsp;%</td>
<td class="headerCovTableEntry">295</td>
<td class="headerCovTableEntry">290</td>
</tr>
<tr>
<td class="headerItem">Test Date:</td>
<td class="headerValue">2024-04-30 13:59:18</td>
<td></td>
<td class="headerItem">Functions:</td>
<td class="headerCovTableEntryHi">100.0&nbsp;%</td>
<td class="headerCovTableEntry">40</td>
<td class="headerCovTableEntry">40</td>
</tr>
<tr><td><img src="../../glass.png" width=3 height=3 alt=""></td></tr>
</table>
</td>
</tr>
<tr><td class="ruler"><img src="../../glass.png" width=3 height=3 alt=""></td></tr>
</table>
<center>
<table cellpadding=1 cellspacing=1 border=0>
<tr><td><br></td></tr>
<tr>
<td class="tableHead">Function Name <span title="Click to sort table by function name" class="tableHeadSort"><a href="Network.cc.func.html"><img src="../../updown.png" width=10 height=14 alt="Sort by function name" title="Click to sort table by function name" border=0></a></span></td>
<td class="tableHead">Hit count <span title="Click to sort table by function hit count" class="tableHeadSort"><img src="../../glass.png" width=10 height=14 alt="Sort by function hit count" title="Click to sort table by function hit count" border=0></span></td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L156">bayesnet::Network::fit(at::Tensor const&amp;, at::Tensor const&amp;, at::Tensor const&amp;, std::vector&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::allocator&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt; &gt; const&amp;, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, std::map&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::vector&lt;int, std::allocator&lt;int&gt; &gt;, std::less&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, std::allocator&lt;std::pair&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const, std::vector&lt;int, std::allocator&lt;int&gt; &gt; &gt; &gt; &gt; const&amp;)</a></td>
<td class="coverFnHi">2</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L14">bayesnet::Network::Network(float)</a></td>
<td class="coverFnHi">4</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L418">bayesnet::Network::dump_cpt[abi:cxx11]() const</a></td>
<td class="coverFnHi">4</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L273">bayesnet::Network::score(std::vector&lt;std::vector&lt;int, std::allocator&lt;int&gt; &gt;, std::allocator&lt;std::vector&lt;int, std::allocator&lt;int&gt; &gt; &gt; &gt; const&amp;, std::vector&lt;int, std::allocator&lt;int&gt; &gt; const&amp;)</a></td>
<td class="coverFnHi">10</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L342">bayesnet::Network::show[abi:cxx11]() const</a></td>
<td class="coverFnHi">14</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L40">bayesnet::Network::getSamples()</a></td>
<td class="coverFnHi">24</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L65">bayesnet::Network::getStates() const</a></td>
<td class="coverFnHi">24</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L235">bayesnet::Network::predict(std::vector&lt;std::vector&lt;int, std::allocator&lt;int&gt; &gt;, std::allocator&lt;std::vector&lt;int, std::allocator&lt;int&gt; &gt; &gt; &gt; const&amp;)</a></td>
<td class="coverFnHi">24</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L175">bayesnet::Network::fit(std::vector&lt;std::vector&lt;int, std::allocator&lt;int&gt; &gt;, std::allocator&lt;std::vector&lt;int, std::allocator&lt;int&gt; &gt; &gt; &gt; const&amp;, std::vector&lt;int, std::allocator&lt;int&gt; &gt; const&amp;, std::vector&lt;double, std::allocator&lt;double&gt; &gt; const&amp;, std::vector&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::allocator&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt; &gt; const&amp;, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, std::map&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::vector&lt;int, std::allocator&lt;int&gt; &gt;, std::less&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, std::allocator&lt;std::pair&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const, std::vector&lt;int, std::allocator&lt;int&gt; &gt; &gt; &gt; &gt; const&amp;)</a></td>
<td class="coverFnHi">42</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L355">bayesnet::Network::graph(std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;) const</a></td>
<td class="coverFnHi">44</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L381">bayesnet::Network::getNumEdges() const</a></td>
<td class="coverFnHi">110</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L385">bayesnet::Network::topological_sort[abi:cxx11]()</a></td>
<td class="coverFnHi">110</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L57">bayesnet::Network::getFeatures[abi:cxx11]() const</a></td>
<td class="coverFnHi">118</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L369">bayesnet::Network::getEdges[abi:cxx11]() const</a></td>
<td class="coverFnHi">132</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L257">bayesnet::Network::predict_proba(std::vector&lt;std::vector&lt;int, std::allocator&lt;int&gt; &gt;, std::allocator&lt;std::vector&lt;int, std::allocator&lt;int&gt; &gt; &gt; &gt; const&amp;)</a></td>
<td class="coverFnHi">132</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L27">bayesnet::Network::initialize()</a></td>
<td class="coverFnHi">634</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L167">bayesnet::Network::fit(at::Tensor const&amp;, at::Tensor const&amp;, std::vector&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::allocator&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt; &gt; const&amp;, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, std::map&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::vector&lt;int, std::allocator&lt;int&gt; &gt;, std::less&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, std::allocator&lt;std::pair&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const, std::vector&lt;int, std::allocator&lt;int&gt; &gt; &gt; &gt; &gt; const&amp;)</a></td>
<td class="coverFnHi">668</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L188">bayesnet::Network::completeFit(std::map&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::vector&lt;int, std::allocator&lt;int&gt; &gt;, std::less&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, std::allocator&lt;std::pair&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const, std::vector&lt;int, std::allocator&lt;int&gt; &gt; &gt; &gt; &gt; const&amp;, at::Tensor const&amp;)</a></td>
<td class="coverFnHi">684</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L147">bayesnet::Network::setStates(std::map&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::vector&lt;int, std::allocator&lt;int&gt; &gt;, std::less&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, std::allocator&lt;std::pair&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const, std::vector&lt;int, std::allocator&lt;int&gt; &gt; &gt; &gt; &gt; const&amp;)</a></td>
<td class="coverFnHi">684</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L118">bayesnet::Network::checkFitData(int, int, int, std::vector&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::allocator&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt; &gt; const&amp;, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, std::map&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::vector&lt;int, std::allocator&lt;int&gt; &gt;, std::less&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, std::allocator&lt;std::pair&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const, std::vector&lt;int, std::allocator&lt;int&gt; &gt; &gt; &gt; &gt; const&amp;, at::Tensor const&amp;)</a></td>
<td class="coverFnHi">712</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L222">bayesnet::Network::predict_proba(at::Tensor const&amp;)</a></td>
<td class="coverFnHi">738</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L228">bayesnet::Network::predict(at::Tensor const&amp;)</a></td>
<td class="coverFnHi">850</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L18">bayesnet::Network::Network(bayesnet::Network const&amp;)</a></td>
<td class="coverFnHi">888</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L36">bayesnet::Network::getMaxThreads() const</a></td>
<td class="coverFnHi">894</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L11">bayesnet::Network::Network()</a></td>
<td class="coverFnHi">930</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L61">bayesnet::Network::getClassNumStates() const</a></td>
<td class="coverFnHi">1070</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L203">bayesnet::Network::predict_tensor(at::Tensor const&amp;, bool)</a></td>
<td class="coverFnHi">1588</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L44">bayesnet::Network::addNode(std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;)</a></td>
<td class="coverFnHi">13374</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L194">bayesnet::Network::completeFit(std::map&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::vector&lt;int, std::allocator&lt;int&gt; &gt;, std::less&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, std::allocator&lt;std::pair&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const, std::vector&lt;int, std::allocator&lt;int&gt; &gt; &gt; &gt; &gt; const&amp;, at::Tensor const&amp;)::{lambda()#1}::operator()() const</a></td>
<td class="coverFnHi">14194</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L150">bayesnet::Network::setStates(std::map&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::vector&lt;int, std::allocator&lt;int&gt; &gt;, std::less&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, std::allocator&lt;std::pair&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const, std::vector&lt;int, std::allocator&lt;int&gt; &gt; &gt; &gt; &gt; const&amp;)::{lambda(std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;)#1}::operator()(std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;) const</a></td>
<td class="coverFnHi">14194</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L93">bayesnet::Network::addEdge(std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;)</a></td>
<td class="coverFnHi">24954</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L285">bayesnet::Network::predict_sample(std::vector&lt;int, std::allocator&lt;int&gt; &gt; const&amp;)</a></td>
<td class="coverFnHi">26440</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L77">bayesnet::Network::isCyclic(std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, std::unordered_set&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::hash&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, std::equal_to&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, std::allocator&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt; &gt;&amp;, std::unordered_set&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, std::hash&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, std::equal_to&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, std::allocator&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt; &gt;&amp;)</a></td>
<td class="coverFnHi">30532</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L299">bayesnet::Network::predict_sample(at::Tensor const&amp;)</a></td>
<td class="coverFnHi">375448</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L320">bayesnet::Network::exactInference(std::map&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, int, std::less&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, std::allocator&lt;std::pair&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const, int&gt; &gt; &gt;&amp;)</a></td>
<td class="coverFnHi">401880</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L312">bayesnet::Network::computeFactor(std::map&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, int, std::less&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, std::allocator&lt;std::pair&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const, int&gt; &gt; &gt;&amp;)</a></td>
<td class="coverFnHi">1590148</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L326">bayesnet::Network::exactInference(std::map&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, int, std::less&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, std::allocator&lt;std::pair&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const, int&gt; &gt; &gt;&amp;)::{lambda()#1}::operator()() const</a></td>
<td class="coverFnHi">1590148</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L339">bayesnet::Network::exactInference(std::map&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, int, std::less&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, std::allocator&lt;std::pair&lt;std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const, int&gt; &gt; &gt;&amp;)::{lambda(double const&amp;)#1}::operator()(double const&amp;) const</a></td>
<td class="coverFnHi">1590148</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L73">bayesnet::Network::getClassName[abi:cxx11]() const</a></td>
<td class="coverFnHi">1590160</td>
</tr>
<tr>
<td class="coverFn"><a href="Network.cc.gcov.html#L114">bayesnet::Network::getNodes[abi:cxx11]()</a></td>
<td class="coverFnHi">1590294</td>
</tr>
</table>
<br>
</center>
<table width="100%" border=0 cellspacing=0 cellpadding=0>
<tr><td class="ruler"><img src="../../glass.png" width=3 height=3 alt=""></td></tr>
<tr><td class="versionInfo">Generated by: <a href="https://github.com//linux-test-project/lcov" target="_parent">LCOV version 2.0-1</a></td></tr>
</table>
<br>
</body>
</html>