Update 'dataset-create.py'
This commit is contained in:
parent
04af7163a0
commit
d9f0fa862a
@ -22,8 +22,9 @@ if csv_file is None:
|
||||
|
||||
data = pd.read_csv(csv_file)
|
||||
data.sample(CUTOFF)
|
||||
data_tmp = data.copy()
|
||||
|
||||
df = pd.DataFrame(data.pop('Price'))
|
||||
df = pd.DataFrame(data_tmp.pop('Price'))
|
||||
|
||||
train_data, temp_data, train_data2, temp_data2 = train_test_split(data, df, test_size=0.4, random_state=42)
|
||||
dev_data, test_data, dev_data2, test_data2 = train_test_split(temp_data, temp_data2, test_size=0.4, random_state=42)
|
||||
|
Loading…
Reference in New Issue
Block a user