April 2020
Intermediate to advanced
438 pages
12h 2m
English
In this recipe, we are going to use an RGB image of apples and orange and segment the image with SOM. Let's first start by importing the required packages:
!pip install MiniSomfrom minisom import MiniSomimport numpy as npimport matplotlib.pyplot as pltfrom matplotlib.gridspec import GridSpecfrom pylab import pcolorfrom collections import defaultdictfrom sklearn import datasetsfrom sklearn.preprocessing import scale
Read now
Unlock full access