Advertisement
Guest User

Untitled

a guest
Nov 15th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. import binary_classifier
  2. import classifier
  3. import classifier_box
  4. import handler
  5. import observation
  6.  
  7.  
  8. def function(_):
  9. return 0.2
  10. bc = binary_classifier.BinaryClassifier("001", function)
  11.  
  12. cl = classifier.Classifier()
  13. cl.add_binary_classifier(bc)
  14.  
  15. cl_box = classifier_box.ClassifierBox()
  16. cl_box.add_classifier(cl)
  17.  
  18. host = "localhost"
  19. database = raw_input("Database:")
  20. username = raw_input("Username:")
  21. password = raw_input("Password:")
  22. h = handler.MySqlDatabaseHandler(host, database, username, password)
  23. h.set_classifier_box(cl_box)
  24.  
  25. time = float(raw_input("Time:"))
  26. obs = observation.Observation("LSST-0001A", time, 50.4, 0.005)
  27. h.run(obs)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement