← Quiz: Feature Engineering: all 10 questions
Quiz: Feature Engineering · Question 7 of 10
What does this print? (code)
What does this print?
import numpy as np
print(np.log1p(0), round(float(np.expm1(np.log1p(99))), 6))
- A.0.0 99.0
- B.-inf 99.0
- C.1.0 100.0
- D.0.0 100.0
Answer & explanation
Correct answer: 0.0 99.0
log1p(0) = log(1) = 0, and expm1 undoes log1p.
Can you get the rest right without peeking?
Take the timed Quiz: Feature Engineering quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →