HOME/Articles/

pil example import libraries dataset (snippet)

Article Outline

Python pil example 'import libraries dataset'

Modules used in program:

  • import numpy as np
  • import matplotlib.pyplot as plt
  • import matplotlib.colors as colors
  • import matplotlib.cm as cmx
  • import matplotlib.animation as ani
  • import imageio

python import libraries dataset

Python pil example: import libraries dataset

import imageio
import matplotlib.animation as ani
import matplotlib.cm as cmx
import matplotlib.colors as colors
import matplotlib.pyplot as plt
import numpy as np

from matplotlib.patches import Ellipse
from PIL import Image
from sklearn import datasets
from sklearn.cluster import KMeans

iris = datasets.load_iris()
X = iris.data