Skip to content

Instantly share code, notes, and snippets.

@dottyz
Created May 2, 2019 18:45
Show Gist options
  • Save dottyz/b80db8caf26c49037d146a994fb80746 to your computer and use it in GitHub Desktop.
Save dottyz/b80db8caf26c49037d146a994fb80746 to your computer and use it in GitHub Desktop.
for idx, val in enumerate(x):
if val > knee_start:
kneedle = KneeLocator(x=x[idx:], y=y_fit[idx:], curve='concave', direction='increasing')
knee_end = kneedle.knee
print(knee_end)
break
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment