Skip to content

Instantly share code, notes, and snippets.

@MLWhiz
Created September 7, 2020 15:07
Show Gist options
  • Save MLWhiz/dc06e6529b02db5fe234dcc515e1c4ab to your computer and use it in GitHub Desktop.
Save MLWhiz/dc06e6529b02db5fe234dcc515e1c4ab to your computer and use it in GitHub Desktop.
import numpy as np
train_data_size = 1024
sizes = np.random.randint(low=50,high=300,size=(train_data_size,))
X = [np.random.randint(0,10000, (sizes[i])) for i in range(train_data_size)]
y = np.random.rand(train_data_size).round()
#checking one example in dataset
print((X[0],y[0]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment