• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 3 fuera de 23 páginas
Examen

UC Berkeley CS 189/289A Introduction to Machine Learning Fall 2025 Midterm Exam Solutions | Solved Questions, Correct Answers & Step-by-Step Explanations | Machine Learning Exam Study Guide 2026

Document preview thumbnail
Vista previa 3 fuera de 23 páginas

UC Berkeley CS 189/289A Introduction to Machine Learning Fall 2025 Midterm Exam Solutions | Solved Questions, Correct Answers & Step-by-Step Explanations | Machine Learning Exam Study Guide 2026

Vista previa del contenido

CS 189/289A, Midterm

Fall 2025


Name:

Email: @berkeley.edu

Student ID:

Room where you’re taking the exam:

Name and SID of the person on your right:

Name and SID of the person on your left:


Instructions:
This exam consists of 69 points spread out over 7 questions and the Honor Code certi-
fication. The exam must be completed in 110 minutes unless you have accommodations
supported by a DSP letter.
Note that you should select one choice for questions with circular bubbles. There is al-
ways at least one correct answer. Please fully shade in the circle to mark your answer.
For all math questions, please simplify your answer. Please also show your work if a
large box is provided. For all coding questions, you may use commas and/or one or more
function calls in each blank.
For all Python questions, you may assume Pandas has been imported as pd, NumPy has
been imported as np, and Plotly Express has been imported as px.
You MUST write your Student ID number at the top of each page.


Honor Code [1 Pt]:
As a member of the UC Berkeley community, I act with honesty, integrity, and respect
for others. I am the person whose name is on the exam, and I completed this exam in
accordance with the Honor Code.

Signature:


1

,CS 189/289A Midterm, Page 2 of 23 SID:

This page has been intentionally left blank.

, CS 189/289A Midterm, Page 3 of 23 SID:

1 Matching the Loss Surface

The following plots depict the error surfaces for several models on different datasets. The contour
plots show the contours of the error surface. Use these plots to answer the questions below.

60
35 50
50
30
40 40
25
30
Error




Error




Error
20 30

15 20 20

10 10 10
5
0 0
−6 −4 −2 0 2 4 6 −6 −4 −2 0 2 4 6 −6 −4 −2 0 2 4 6
w w w


(A) (B) (C)




(D) (E) (F)

(a) [1 Pt] Which of the following most accurately describes the loss surface in Figure (A)?
⃝ This is the loss for a least squares regression problem.
⃝ This is the loss of a linearly separable classification problem.
⃝ Significant L2 regularization is needed for this loss surface.
⃝ This is the loss of the classification problem.

(b) [2 Pts] Which of the above loss functions corresponds to the cross entropy loss for a logistic
regression model of the form y(x) = σ (x × w) where x, w ∈ R with the following data:

⃝ (A)
class 1
⃝ (B)
⃝ (C)
⃝ (D)
label




⃝ (E)
⃝ (F)
class 0

−3 −2 −1 0 1 2 3
x

Información del documento

Subido en
9 de octubre de 2026
Número de páginas
23
Escrito en
2026/2027
Tipo
Examen
Contiene
Preguntas y respuestas
$18.49

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
wisenurse
5.0
(1)
Vendido
52
Seguidores
2
Artículos
1351
Última venta
1 día hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes