asdasd
This commit is contained in:
parent
1483c3e08e
commit
1a610e8ce4
@ -39,8 +39,8 @@ disney['Review_Text'] = disney['Review_Text'].str.lower()
|
||||
|
||||
|
||||
# Podział na podzbiory: d_train, d_test, d_dev
|
||||
d_train, d_remainder = train_test_split(disney, test_size=0.2, random_state=1, stratify=disney["Branch"])
|
||||
d_dev, d_test = train_test_split(d_remainder, test_size=0.5, random_state=1, stratify=d_remainder["Branch"])
|
||||
d_train, d_test = train_test_split(disney, test_size=0.2, random_state=1, stratify=disney["Branch"])
|
||||
d_dev, d_test = train_test_split(d_test, test_size=0.5, random_state=1, stratify=d_test["Branch"])
|
||||
|
||||
# Zapis do plików
|
||||
d_train.to_csv('d_train.csv', index=False)
|
||||
|
Loading…
Reference in New Issue
Block a user