Update 'create_dataset.py'
This commit is contained in:
parent
889568384d
commit
a063eea17b
@ -49,5 +49,14 @@ water_test, water_dev = train_test_split(water_test, train_size=0.66, random_sta
|
||||
|
||||
#water["is_safe"].value_counts().plot(kind="bar")
|
||||
|
||||
waterNorm.to_csv('waterQuality.csv', index=False)
|
||||
|
||||
|
||||
directory ='dane'
|
||||
if not os.path.exists(directory):
|
||||
os.makedirs('dane')
|
||||
|
||||
waterNorm.to_csv('waterQuality.csv', index=False)
|
||||
water_train.to_csv('dane/diamonds_train.csv', index=False)
|
||||
water_test.to_csv('dane/diamonds_test.csv', index=False)
|
||||
water_dev.to_csv('dane/diamonds_dev.csv', index=False)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user