Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sklearn
- file = open('train.txt', 'r')
- text = file.read()
- result = []
- for line in text.splitlines():
- result.append(list(line.split()))
- X=[]
- Y=[]
- for value in result:
- X.append(list(map(float, value[:176])))
- Y.append(list(map(float, value[176])))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement