9</p></td>
</tr>
</tbody>
</table>
</dd>
</dl>
<p>Let’s generate more samples and learn again the parameters. You will see that these results are much closer to the true values.</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">df</span> <span class="o">=</span> <span class="n">bnlearn</span><span class="o">.</span><span class="n">sampling</span><span class="p">(</span><span class="n">DAG</span><span class="p">,</span> <span class="n">n</span><span clas