Skip to content

Potentially wrong plot and/or knee identification #160

Description

@jagandecapri

Hi @arvkevi,

Thank you for this cool library! 💯

I am experimenting with the following code:

from kneed import KneeLocator
import matplotlib.pyplot as plt

x = [0.90000, 0.99000, 0.99900, 0.99990, 0.99999]
y = [0.000019, 0.000046, 0.000050, 0.000050, 0.000050]

knee = KneeLocator(x, y, S=0.0, direction="increasing", curve="convex", online=True, interp_method="interp1d")
print(f"knee points: ({knee.knee}, {knee.knee_y})")
knee.plot_knee()
plt.show()
knee.plot_knee_normalized()
plt.show()

Output:

knee points: (0.99999, 5e-05)
knee_point
knee_normalized

I am not sure why the normalized knee plot is identifying the knee/elbow at 0 and I'm wondering why the knee point identified is at 0.99999? Shouldn't it be at 0.99?

Looking forward to your kind reply.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions