Last active
November 5, 2021 19:06
-
-
Save khuyentran1401/b6aa684c0cc553a0faf8d42b7adef958 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Define parameters | |
target_col = 'species' | |
test_data_ratio = 0.2 | |
# Run functions | |
data = load_data(path="data/raw/iris.csv") | |
categorical_columns = encode_categorical_columns(data=data, target_col=target_col) | |
classes = get_classes(data=data, target_col=target_col) | |
train_test_dict = split_data(data=categorical_columns, | |
test_data_ratio=test_data_ratio, | |
classes=classes) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment