Created
February 4, 2017 13:00
-
-
Save YohanObadia/a3e568cd7e3c57228e474b5f1608c27e to your computer and use it in GitHub Desktop.
Example of use for the knn_impute function
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
knn_impute(target=df['Age'], attributes=df.drop(['Age', 'PassengerId'], 1), | |
aggregation_method="median", k_neighbors=10, numeric_distance='euclidean', | |
categorical_distance='hamming', missing_neighbors_threshold=0.8) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment