Skip to content

Instantly share code, notes, and snippets.

@dottyz
Created May 2, 2019 18:44
Show Gist options
  • Save dottyz/e244f7fd28aed652c2b57d4a2c21a490 to your computer and use it in GitHub Desktop.
Save dottyz/e244f7fd28aed652c2b57d4a2c21a490 to your computer and use it in GitHub Desktop.
popt, pcov = curve_fit(exp_growth_no_shift, x, y, maxfev=2000)
# Estimate the first knee point
kneedle = KneeLocator(x=x, y=exp_growth_no_shift(x, *popt), curve='convex', direction='increasing')
knee_start = kneedle.knee
print(knee_start)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment