Advertisement
Guest User

Untitled

a guest
Nov 26th, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. import sklearn
  2.  
  3. file = open('train.txt', 'r')
  4. text = file.read()
  5. result = []
  6. for line in text.splitlines():
  7. result.append(list(line.split()))
  8.  
  9. X=[]
  10. Y=[]
  11. for value in result:
  12. X.append(list(map(float, value[:176])))
  13. Y.append(list(map(float, value[176])))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement