擅长:python、mysql、java
<p>基于上述解决方案,我认为以下方法更简洁一些:</p>
<pre><code>from skimage import transform
newfeatures=[transform.resize(features[i].reshape(8,8),(32,32))for i in
range(len(features))]
plt.imshow(newfeatures[0].reshape((32,32)))
</code></pre>
<p><a href="https://i.stack.imgur.com/6haGp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6haGp.png" alt="enter image description here"/></a></p>