ASCI Logo
ASCI
Programs
Practice DSA
Degrees & Careers
Pricing
Log inGet Started

Quick Navigation & Search

Search curriculum tracks, DSA problems, systems theory and tools...

deep learning-specialization

Curriculum Index

Current LevelInitiate
0/ 500 XP
Gravit Certificate:
100% Required
  • 1.1 Vectorized Logistic Regression for Binary Classification
  • 1.2 Computing Binary Cross-Entropy Loss
•
1
2
3
4
5
6
7
8
9
10
Module 1: Deep Neural Network Foundations & Backprop•Lesson 2

1.2 Computing Binary Cross-Entropy Loss

### Cross-Entropy Cost
Cross-entropy penalizes confident wrong predictions asymptotically toward infinity.
Python 3.11
•
Interactive Challenge
+80 XP
Challenge Objective

Compute cross-entropy loss for y=1, y_hat=0.9 and output 'LOSS: 0.11'.

solution.py
UTF-84 SpacesAuto-saved
cpython3.11:~/workspace
CPython 3.11.8 (WASM)
$python3 -u solution.py
Click "Compile & Run" (or press Ctrl + Enter) to compile AST, verify bytecode, and execute the solution.