Skip to content

Instantly share code, notes, and snippets.

@rajeshmr
Created December 7, 2017 10:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rajeshmr/16553e400ad2257112c0ae9473a9a1a4 to your computer and use it in GitHub Desktop.
Save rajeshmr/16553e400ad2257112c0ae9473a9a1a4 to your computer and use it in GitHub Desktop.
print("clothing shape: ", clothing_data.shape)
print("electronics shape: ", electronics_data.shape)
print("home appliances shape: ", home_appliances_data.shape)
data = np.vstack((clothing_data, electronics_data, home_appliances_data))
category = pd.concat([clothing['category'], cameras['category'], home_appliances['category']]).values
category = to_categorical(category)
print("-"*10)
print("combined data shape: ", data.shape)
print("combined category/label shape: ", category.shape)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment