Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. x_min, x_max = X_t[:, 0].min()-2, X_t[:, 0].max() + 2
  2. y_min, y_max = X_t[:, 1].min()-2, X_t[:, 1].max() + 2
  3.  
  4. xx, yy = np.meshgrid(np.arange(x_min,x_max,0.1),
  5. np.arange(y_min, y_max,0.1))
  6.  
  7. Z = gas_pca.predict(np.c_[xx.ravel(), yy.ravel()])
  8. Z = Z.reshape(xx.shape)
  9.  
  10. fig, ax = plt.subplots()
  11. ax.contourf(xx, yy, Z, colors = ('#75bbfd', '#fff9d0', '#ffb07c', '#c2ff89') )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement