Skip to content

Instantly share code, notes, and snippets.

@nikkisharma536
Created January 29, 2019 04:30
Show Gist options
  • Select an option

  • Save nikkisharma536/3d2242c2edf21fc4e3454ae1d76dffab to your computer and use it in GitHub Desktop.

Select an option

Save nikkisharma536/3d2242c2edf21fc4e3454ae1d76dffab to your computer and use it in GitHub Desktop.
upload dataset
# import libraries
import numpy as np
import tensorflow as tf
import pandas as pd
# upload train and test data
train = pd.read_csv('/users/nikki/Downloads/all (1)/train.csv')
test = pd.read_csv('/users/nikki/Downloads/all (1)/test.csv')
target = train["label"]
# Drop 'label' column
X_train = train.drop(labels = ["label"],axis = 1)
# free some space
del train
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment