VitalyD

Untitled

Nov 5th, 2017
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.76 KB | None | 0 0
  1. from sklearn import linear_model
  2. from sklearn.metrics import r2_score, mean_squared_error
  3. from sklearn.neighbors import KNeighborsClassifier
  4. import numpy as np
  5. import matplotlib.pyplot as plt
  6.  
  7. ### x
  8. testx = open("test.txt")
  9. testx.readline()
  10. Xtest= np.loadtxt(testx)
  11. print (Xtest.shape)
  12.  
  13.  
  14. ### target x
  15. targetx = open("testTargett.txt")
  16. targetx.readline()
  17. Xtarget = np.loadtxt(targetx)
  18. print (datasettargettrain.shape)
  19.  
  20. ### y
  21. train = open("forecast.txt")
  22. train.readline()
  23. datasettrain = np.loadtxt(train)
  24. print (datasettrain.shape)
  25.  
  26. ### target y
  27. traintarget = open("TICTGTS2000.txt")
  28. traintarget.readline()
  29. targetTrain = np.loadtxt(traintarget)
  30. print (targetTrain.shape)
  31.  
  32.  
  33. x = Xtest
  34. targetX = x[:, 85]
  35. y = datasettrain
  36. targetY = datasettargettrain
Advertisement
Add Comment
Please, Sign In to add comment