Created
July 15, 2024 17:33
-
-
Save ThomasParistech/33e756f2ead8e0be93c45b310e4a5c68 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
from sklearn.neighbors import KernelDensity | |
kde = KernelDensity(kernel='linear', bandwidth="silverman") | |
kde.fit(input_xy) | |
density = np.exp(kde.score_samples(pred_xy)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment