[Python] Calculate AUC manually without using any Numpy or Sklearn library

Discussão em 'Python' iniciado por Stack, Fevereiro 20, 2025.

  1. Stack

    Stack Membro Participativo

    I have given a set of X, Y coordinate and I need to find the AUC using trapezoidal formula, without using any numpy or sklearn library.

    (x0,y0) is always (0,0)
    (xn,yn) is always (1,1)


    Below diagram

    [​IMG]

    Without using any sklearn library, I understand I need to find below

    hi = ?
    wi= ?
    AUC = sum (hi * wi)


    Now I am not sure how to find hi, wi. I don't think I have all the necessary data to do the high school math. Am I missing something?

    Continue reading...

Compartilhe esta Página