This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.cross_validation import train_test_split | |
test_data = range(0,100) | |
for i in range(0,1): | |
Xtrain,Xtest,ytrain,ytest = train_test_split(test_data, test_data, random_state=0) | |
print("XTrain") | |
print(Xtrain) | |
print("XTest") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from io import BytesIO | |
import time | |
from fastavro import ( | |
acquaint_schema, | |
writer | |
) | |
from fastavro.write import write_data |