Skip to content Skip to sidebar Skip to footer

How This Type Of Image Displays Are Done With Scikit-learn?

I was watching a tutorial on machine learning. The tutorial has a csv file and some python codes. And it was saying that if I implement this code then I will get the visual of data

Solution 1:

  1. run the fitting process and get the model parameters as a result
  2. define a 2-dimensional area where your trainings data are somehow in the center
  3. compute a (x,y) mesh for that area
  4. run the model for each (x,y)-point of the mesh
  5. plot the result with matplotlib pcolormesh

Here a coded example. The dividing lines are an additional task.You could draw isolines (1 isoline with matplotlib contour) for that.


Post a Comment for "How This Type Of Image Displays Are Done With Scikit-learn?"