Machine Learning Coursera Practice Lab: Logistic regression

Поділитися
Вставка
  • Опубліковано 25 жов 2024

КОМЕНТАРІ • 32

  • @scottjobe4967
    @scottjobe4967 9 місяців тому +3

    Thank you. I understood the concepts of the course but don't have python experience. this was very helpful

  • @Fahad-yc7xe
    @Fahad-yc7xe 6 місяців тому +1

    bro i love you so much i have been stuck in a question for a million years and you came up and helped me ,thank you so much

    • @عبدللهفراسعبدللهرشيد
      @عبدللهفراسعبدللهرشيد 4 місяці тому

      i pass all test but when i submit he gave me 0 and told me this (Cell #UNQ_C4. Can't compile the student's code. Error: IndentationError('expected an indented block', ('/tmp/student_solution_cells/cell_19.py', 48, 9, ' p[i]= 0
      '))

    • @mmm2233
      @mmm2233 2 місяці тому

      @@عبدللهفراسعبدللهرشيد try to keep the code within the indentation of the function.

    • @atharvajoshi610
      @atharvajoshi610 Місяць тому

      @@عبدللهفراسعبدللهرشيد same

  • @oscareddytrejos
    @oscareddytrejos 9 місяців тому +1

    Simple and efficient explanation, thanks!!!

  • @ImranRafique-e6i
    @ImranRafique-e6i Місяць тому +2

    Here what is (np.exp) but in formula it give (e)

  • @atharvajoshi610
    @atharvajoshi610 Місяць тому +1

    hello , I have been facing this issue of "Comment line with index: `UNQ_C2` wasn't found in code" . Please help to resolve this .

  • @nehalagarwal8895
    @nehalagarwal8895 Місяць тому

    In ex2, after running the code , its saying that x is not defined can some one please help me out

  • @senorperez
    @senorperez 8 місяців тому

    hey how can i come to this level of coding, like i literally have to watch your vide, even if i had watched the course

  • @NiroshanVidanagamage
    @NiroshanVidanagamage 4 місяці тому +1

    this was really helpful...

  • @narges2034
    @narges2034 Рік тому

    Please create video for linear Algebras assessments course from Deep learning AI,

  • @leogodofnone2706
    @leogodofnone2706 5 місяців тому +1

    Thanks, mate.

  • @andreinita2078
    @andreinita2078 Рік тому

    For me it didn't worked :((
    NameError: name 'X_train' is not defined
    I constantly get this error for all the exercises excepting the first one

    • @magicalayush6141
      @magicalayush6141 Рік тому

      did you find any other solution?

    • @nadashreef2633
      @nadashreef2633 Рік тому +1

      Run all the above cells first

    • @simranlahrani
      @simranlahrani Рік тому

      Please share all the codes to me are u don't with all 4 weeks?

    • @magicalayush6141
      @magicalayush6141 Рік тому

      well i do have codes now, i can share if you want
      @@simranlahrani

    • @PiSquareTheta
      @PiSquareTheta 11 місяців тому +2

      Same thing is happening with me but with qn1
      It says sigmoid is not defined

  • @amrrasslan4329
    @amrrasslan4329 6 місяців тому

    ty so much

  • @OyenugaDaniel
    @OyenugaDaniel 5 місяців тому

    ive been trying to submit it keeps denying my submission and all the tests have been passed

    • @عبدللهفراسعبدللهرشيد
      @عبدللهفراسعبدللهرشيد 4 місяці тому

      i pass all test but when i submit he gave me 0 and told me this (Cell #UNQ_C4. Can't compile the student's code. Error: IndentationError('expected an indented block', ('/tmp/student_solution_cells/cell_19.py', 48, 9, ' p[i]= 0
      '))

  • @shivanshukumar9862
    @shivanshukumar9862 Рік тому +1

    4 th is not running

  • @magicalayush6141
    @magicalayush6141 Рік тому

    Same issue

    • @syedilyasjaweedsyed3385
      @syedilyasjaweedsyed3385 Рік тому

      I'm also getting the same issue of errors, what did you do solve this issue please share possible solution if you know

    • @senorperez
      @senorperez 8 місяців тому

      @@syedilyasjaweedsyed3385 what is the error

  • @priyadav817
    @priyadav817 8 місяців тому

    I am getting this error
    # UNIT TEST
    compute_cost_reg_test(compute_cost_reg)
    X_mapped = map_feature(X_train[:, 0], X_train[:, 1])
    np.random.seed(1)
    initial_w = np.random.rand(X_mapped.shape[1]) - 0.5
    initial_b = 0.5
    lambda_ = 0.5
    cost = compute_cost_reg(X_mapped, y_train, initial_w, initial_b, lambda_)

    print("Regularized cost :", cost)

    # UNIT TEST
    compute_cost_reg_test(compute_cost_reg)
    ---------------------------------------------------------------------------
    IndexError Traceback (most recent call last)
    in
    4 initial_b = 0.5
    5 lambda_ = 0.5
    ----> 6 cost = compute_cost_reg(X_mapped, y_train, initial_w, initial_b, lambda_)
    7
    8 print("Regularized cost :", cost)
    in compute_cost_reg(X, y, w, b, lambda_)
    23 ### START CODE HERE ###
    24 for j in range(m):
    ---> 25 reg_cost = reg_cost + w[j] ** 2
    26 reg_cost = reg_cost / (2*m) * lambda_
    27
    IndexError: index 27 is out of bounds for axis 0 with size 27

    • @MaleekaSanketh
      @MaleekaSanketh 7 місяців тому

      use
      for j in range(n)
      you are most probably using range(m)

    • @noavailable31
      @noavailable31 Місяць тому

      lo mismo me paso a mi, y el error estaba en el mal uso de un parentesis por un bracket

  • @عبدللهفراسعبدللهرشيد

    i pass all test but when i submit he gave me 0 and told me this (Cell #UNQ_C4. Can't compile the student's code. Error: IndentationError('expected an indented block', ('/tmp/student_solution_cells/cell_19.py', 48, 9, ' p[i]= 0
    '))