What is the effect of applying np.log1p() instead of np.log() when log-transforming a feature that may contain zeros?
-
A
It clips negative values to zero before transforming
-
B
It computes log(1 + x), avoiding undefined results for zero values
-
C
It applies base-10 logarithm instead of natural log
-
D
It squares values before applying the logarithm