Advertisement
Guest User

Untitled

a guest
Dec 9th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1. import matplotlib
  2. matplotlib.use('TkAgg')
  3. from balu.ImagesAndData import balu_load
  4. from balu.Classification import Bcl_lda
  5. from balu.InputOutput import Bio_plotfeatures
  6. from balu.PerformanceEvaluation import Bev_performance
  7.  
  8. data = balu_load('datagauss')  # simulated data (2 classes, 2 features)
  9. X = data['X']
  10. d = data['d']
  11. Xt = data['Xt']
  12. dt = data['dt']
  13. Bio_plotfeatures(X, d)  # plot feature space
  14. op = {'p': []}
  15. ds, options = Bcl_lda(X, d, Xt, op)  # LDA classifier
  16. p = Bev_performance(ds, dt)  # performance on test data
  17. print p
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement