Debug Logistic Regression Gradient and Cross-Entropy Loss

Problem: Debug Logistic Regression Gradient and Cross-Entropy Loss

Given a binary logistic-regression model:

  • feature matrix $X \in \mathbb{R}^{m \times d}$;
  • label vector $y \in {0,1}^m$;
  • ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: