title: What is the difference between bunch and dictionary type in python?
body: <p>I found out that <code>sklearn.utils.Bunch</code> and <code>dict</code> work more or less the same. Like if there is a <code>dict</code> object say</p>
  <pre><code>dict_1 = {&quot;a&quot;:1, &quot;b&quot;:2}
  </code></pre>
  <p>and a bunch object say bunch</p>
  <pre><code>bunch_1 = Bunch(a=1, b=2)
  </code></pre>
  <p>both have the same set of behaviour.</p>