quickfix
This commit is contained in:
parent
212b5fd3e5
commit
83b9cd31e3
@ -42,6 +42,11 @@ disney['Review_Text'] = disney['Review_Text'].str.lower()
|
|||||||
d_train, d_remainder = train_test_split(disney, test_size=0.2, random_state=1, stratify=disney["Branch"])
|
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_dev, d_test = train_test_split(d_remainder, test_size=0.5, random_state=1, stratify=d_remainder["Branch"])
|
||||||
|
|
||||||
|
# Zapis do plików
|
||||||
|
d_train.to_csv('d_train.csv', index=False)
|
||||||
|
d_test.to_csv('d_test.csv', index=False)
|
||||||
|
d_dev.to_csv('d_dev.csv', index=False)
|
||||||
|
|
||||||
# Statystyki
|
# Statystyki
|
||||||
print(f"Wielkość całego zbioru: {disney.shape[0]}\n"
|
print(f"Wielkość całego zbioru: {disney.shape[0]}\n"
|
||||||
f"Inne statystyki:")
|
f"Inne statystyki:")
|
||||||
|
Loading…
Reference in New Issue
Block a user