Refactor coverage report generation
Add some tests to reach 99%
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>LCOV - coverage.info - bayesnet/ensembles/Ensemble.cc - functions</title>
|
||||
<title>LCOV - BayesNet Coverage Report - bayesnet/ensembles/Ensemble.cc - functions</title>
|
||||
<link rel="stylesheet" type="text/css" href="../../gcov.css">
|
||||
</head>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<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/ensembles</a> - Ensemble.cc<span style="font-size: 80%;"> (<a href="Ensemble.cc.gcov.html">source</a> / functions)</span></td>
|
||||
<td width="10%" class="headerValue"><a href="../../index.html" target="_parent">top level</a> - <a href="index.html" target="_parent">bayesnet/ensembles</a> - Ensemble.cc<span style="font-size: 80%;"> (<a href="Ensemble.cc.gcov.html">source</a> / functions)</span></td>
|
||||
<td width="5%"></td>
|
||||
<td width="5%"></td>
|
||||
<td width="5%" class="headerCovTableHead">Coverage</td>
|
||||
@@ -28,21 +28,29 @@
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="headerItem">Test:</td>
|
||||
<td class="headerValue">coverage.info</td>
|
||||
<td class="headerValue">BayesNet Coverage Report</td>
|
||||
<td></td>
|
||||
<td class="headerItem">Lines:</td>
|
||||
<td class="headerCovTableEntryHi">98.1 %</td>
|
||||
<td class="headerCovTableEntry">154</td>
|
||||
<td class="headerCovTableEntry">151</td>
|
||||
<td class="headerCovTableEntryHi">100.0 %</td>
|
||||
<td class="headerCovTableEntry">155</td>
|
||||
<td class="headerCovTableEntry">155</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="headerItem">Test Date:</td>
|
||||
<td class="headerValue">2024-04-30 20:26:57</td>
|
||||
<td class="headerValue">2024-05-06 17:54:04</td>
|
||||
<td></td>
|
||||
<td class="headerItem">Functions:</td>
|
||||
<td class="headerCovTableEntryHi">100.0 %</td>
|
||||
<td class="headerCovTableEntry">25</td>
|
||||
<td class="headerCovTableEntry">25</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="headerItem">Legend:</td>
|
||||
<td class="headerValueLeg"> Lines:
|
||||
<span class="coverLegendCov">hit</span>
|
||||
<span class="coverLegendNoCov">not hit</span>
|
||||
</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr><td><img src="../../glass.png" width=3 height=3 alt=""></td></tr>
|
||||
</table>
|
||||
@@ -65,175 +73,175 @@
|
||||
<tr>
|
||||
<td class="coverFn"><a href="Ensemble.cc.gcov.html#L9">bayesnet::Ensemble::Ensemble(bool)</a></td>
|
||||
|
||||
<td class="coverFnHi">156</td>
|
||||
<td class="coverFnHi">324</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="coverFn"><a href="Ensemble.cc.gcov.html#L31">bayesnet::Ensemble::compute_arg_max(at::Tensor&)</a></td>
|
||||
|
||||
<td class="coverFnHi">212</td>
|
||||
<td class="coverFnHi">424</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="coverFn"><a href="Ensemble.cc.gcov.html#L22">bayesnet::Ensemble::compute_arg_max(std::vector<std::vector<double, std::allocator<double> >, std::allocator<std::vector<double, std::allocator<double> > > >&)</a></td>
|
||||
|
||||
<td class="coverFnHi">22</td>
|
||||
<td class="coverFnHi">56</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="coverFn"><a href="Ensemble.cc.gcov.html#L204">bayesnet::Ensemble::getNumberOfEdges() const</a></td>
|
||||
|
||||
<td class="coverFnHi">12</td>
|
||||
<td class="coverFnHi">28</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="coverFn"><a href="Ensemble.cc.gcov.html#L196">bayesnet::Ensemble::getNumberOfNodes() const</a></td>
|
||||
|
||||
<td class="coverFnHi">12</td>
|
||||
<td class="coverFnHi">28</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="coverFn"><a href="Ensemble.cc.gcov.html#L212">bayesnet::Ensemble::getNumberOfStates() const</a></td>
|
||||
|
||||
<td class="coverFnHi">2</td>
|
||||
<td class="coverFnHi">4</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="coverFn"><a href="Ensemble.cc.gcov.html#L187">bayesnet::Ensemble::graph(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) const</a></td>
|
||||
|
||||
<td class="coverFnHi">6</td>
|
||||
<td class="coverFnHi">16</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="coverFn"><a href="Ensemble.cc.gcov.html#L77">bayesnet::Ensemble::predict(at::Tensor&)</a></td>
|
||||
|
||||
<td class="coverFnHi">218</td>
|
||||
<td class="coverFnHi">436</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="coverFn"><a href="Ensemble.cc.gcov.html#L72">bayesnet::Ensemble::predict(std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >&)</a></td>
|
||||
|
||||
<td class="coverFnHi">28</td>
|
||||
<td class="coverFnHi">68</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="coverFn"><a href="Ensemble.cc.gcov.html#L82">bayesnet::Ensemble::predict_average_proba(at::Tensor&)</a></td>
|
||||
|
||||
<td class="coverFnHi">148</td>
|
||||
<td class="coverFnHi">296</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="coverFn"><a href="Ensemble.cc.gcov.html#L89">bayesnet::Ensemble::predict_average_proba(at::Tensor&)::{lambda()#1}::operator()() const</a></td>
|
||||
|
||||
<td class="coverFnHi">734</td>
|
||||
<td class="coverFnHi">1468</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="coverFn"><a href="Ensemble.cc.gcov.html#L102">bayesnet::Ensemble::predict_average_proba(std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >&)</a></td>
|
||||
|
||||
<td class="coverFnHi">18</td>
|
||||
<td class="coverFnHi">44</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="coverFn"><a href="Ensemble.cc.gcov.html#L109">bayesnet::Ensemble::predict_average_proba(std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >&)::{lambda()#1}::operator()() const</a></td>
|
||||
|
||||
<td class="coverFnHi">122</td>
|
||||
<td class="coverFnHi">532</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="coverFn"><a href="Ensemble.cc.gcov.html#L117">bayesnet::Ensemble::predict_average_proba(std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >&)::{lambda()#1}::operator()() const::{lambda(double, double)#1}::operator()(double, double) const</a></td>
|
||||
|
||||
<td class="coverFnHi">129960</td>
|
||||
<td class="coverFnHi">629712</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="coverFn"><a href="Ensemble.cc.gcov.html#L127">bayesnet::Ensemble::predict_average_proba(std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >&)::{lambda(double)#1}::operator()(double) const</a></td>
|
||||
|
||||
<td class="coverFnHi">16440</td>
|
||||
<td class="coverFnHi">43152</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="coverFn"><a href="Ensemble.cc.gcov.html#L138">bayesnet::Ensemble::predict_average_voting(at::Tensor&)</a></td>
|
||||
|
||||
<td class="coverFnHi">80</td>
|
||||
<td class="coverFnHi">164</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="coverFn"><a href="Ensemble.cc.gcov.html#L145">bayesnet::Ensemble::predict_average_voting(at::Tensor&)::{lambda()#1}::operator()() const</a></td>
|
||||
|
||||
<td class="coverFnHi">536</td>
|
||||
<td class="coverFnHi">1216</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="coverFn"><a href="Ensemble.cc.gcov.html#L131">bayesnet::Ensemble::predict_average_voting(std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >&)</a></td>
|
||||
|
||||
<td class="coverFnHi">14</td>
|
||||
<td class="coverFnHi">32</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="coverFn"><a href="Ensemble.cc.gcov.html#L65">bayesnet::Ensemble::predict_proba(at::Tensor&)</a></td>
|
||||
|
||||
<td class="coverFnHi">226</td>
|
||||
<td class="coverFnHi">452</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="coverFn"><a href="Ensemble.cc.gcov.html#L58">bayesnet::Ensemble::predict_proba(std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >&)</a></td>
|
||||
|
||||
<td class="coverFnHi">44</td>
|
||||
<td class="coverFnHi">100</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="coverFn"><a href="Ensemble.cc.gcov.html#L156">bayesnet::Ensemble::score(at::Tensor&, at::Tensor&)</a></td>
|
||||
|
||||
<td class="coverFnHi">40</td>
|
||||
<td class="coverFnHi">80</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="coverFn"><a href="Ensemble.cc.gcov.html#L167">bayesnet::Ensemble::score(std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > >&, std::vector<int, std::allocator<int> >&)</a></td>
|
||||
|
||||
<td class="coverFnHi">20</td>
|
||||
<td class="coverFnHi">52</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="coverFn"><a href="Ensemble.cc.gcov.html#L178">bayesnet::Ensemble::show[abi:cxx11]() const</a></td>
|
||||
|
||||
<td class="coverFnHi">2</td>
|
||||
<td class="coverFnHi">4</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="coverFn"><a href="Ensemble.cc.gcov.html#L14">bayesnet::Ensemble::trainModel(at::Tensor const&)</a></td>
|
||||
|
||||
<td class="coverFnHi">12</td>
|
||||
<td class="coverFnHi">40</td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="coverFn"><a href="Ensemble.cc.gcov.html#L36">bayesnet::Ensemble::voting(at::Tensor&)</a></td>
|
||||
|
||||
<td class="coverFnHi">80</td>
|
||||
<td class="coverFnHi">164</td>
|
||||
|
||||
|
||||
</tr>
|
||||
|
Reference in New Issue
Block a user