Skip to content

Instantly share code, notes, and snippets.

@YohanObadia
Created February 4, 2017 13:00
Show Gist options
  • Save YohanObadia/870482bf50031e2cdb8dedca8f1a0394 to your computer and use it in GitHub Desktop.
Save YohanObadia/870482bf50031e2cdb8dedca8f1a0394 to your computer and use it in GitHub Desktop.
Example of use for the knn_impute function
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)
@koren88i
Copy link

koren88i commented Dec 1, 2017

can you explain the parameters?

@VetMomen
Copy link

this function in which pakage ?

@that-data-scientist
Copy link

https://gist.github.com/YohanObadia/b310793cd22a4427faaadd9c381a5850 - Refer to this for the explanation on the parameters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment