docker task 2 try_9

This commit is contained in:
Kamila 2022-04-03 13:23:41 +02:00
parent f2b9b21c5b
commit 4204e871f5

View File

@ -34,14 +34,14 @@ np.random.seed(123)
train, validate, test = np.split(data.sample(frac=1, random_state=42), [int(.6*len(data)), int(.8*len(data))]) train, validate, test = np.split(data.sample(frac=1, random_state=42), [int(.6*len(data)), int(.8*len(data))])
print(f"Data shape: {data.shape}\nTrain shape: {train.shape}\nTest shape: {test.shape}\nValidation shape:{validate.shape}") print(f"Data shape: {data.shape}\nTrain shape: {train.shape}\nTest shape: {test.shape}\nValidation shape:{validate.shape}")
f = open("apps_train.csv", "w") f = open("appstrain.csv", "w")
f.write(str(train)) f.write(str(train))
f.close() f.close()
f = open("apps_test.csv", "w") f = open("appstest.csv", "w")
f.write(str(test)) f.write(str(test))
f.close() f.close()
f = open("apps_validate.csv", "w") f = open("appsvalidate.csv", "w")
f.write(str(validate)) f.write(str(validate))
f.close() f.close()