Skip to content

Instantly share code, notes, and snippets.

@karishmadudani
Created November 5, 2017 03:23
Show Gist options
  • Save karishmadudani/c4b5bd0bca40a2468ae79d9ef9e1e6c9 to your computer and use it in GitHub Desktop.
Save karishmadudani/c4b5bd0bca40a2468ae79d9ef9e1e6c9 to your computer and use it in GitHub Desktop.
lat = X_test[:,0]
lat = lat.reshape((len(lat),1))
lon = X_test[:,1]
lon = lon.reshape((len(lon),1))
time = X_test[:,2]
time = time.reshape((len(time),1))
print y_test.shape
cols = ['Latitude (deg)', 'Longitude (deg)', 'time_secs', 'Speed (mph)', 'Actual' ]
data = np.concatenate((lat,lon,time, y_pred,y_test), axis=1)
pred_df = pd.DataFrame(data, columns=cols)
pred_df
pred_df.to_csv('C:\Users\lenovo\Desktop\Karishma\Project 2017\OBD\predict1.csv')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment