Decision_trees #3
@ -23,8 +23,6 @@ X = data.drop('target_column', axis=1)
|
|||||||
y = data['target_column']
|
y = data['target_column']
|
||||||
X = pd.get_dummies(X)
|
X = pd.get_dummies(X)
|
||||||
|
|
||||||
print(X)
|
|
||||||
print(y)
|
|
||||||
|
|
||||||
# Podział danych na zbiór treningowy i testowy
|
# Podział danych na zbiór treningowy i testowy
|
||||||
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)
|
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)
|
||||||
|
Loading…
Reference in New Issue
Block a user