About 219,000 results
Open links in new tab
  1. python - Purpose of `numpy.log1p ( )`? - Stack Overflow

    I just came across one of these Kernels and couldn't understand what does numpy.log1p() do in the third pipeline of this code (House Prediction dataset in Kaggle). Numpy documentation …

  2. python - is log1p the "correct" way of doing log scale …

    Jan 31, 2021 · The importance of log1p is that the function log (1 + 𝑥) is well-conditioned near zero, and often turns up in numerical algorithms or algebraic rearrangements of other functions.

  3. python - Unexpected behaviour of log1p numpy - Stack Overflow

    Apr 12, 2024 · I am using the function numpy.log1p to calculate the value of log(1 + x) for very small complex numbers, and I am getting unexpected results. I would expect that outputs …

  4. What is the inverse of numpy's log1p ()? - Stack Overflow

    Apr 26, 2018 · I transformed my data with: Y = np.log1p(Y) What is the formula to transform the values back to the natural values? back = np.e**Y This did not work.

  5. Why are the results from log1p(x) and log(x+1) not identical in R?

    May 9, 2023 · The function log1p exists to improve the numerical accuracy of the calculation of ln (1+x). See, for instance, this article that gives more explanation for why log1p is necessary. …

  6. How to backtransform variables transformed with log1p when …

    Mar 2, 2022 · I fitted a glm model and had to transform some variables with log1p. I now want to create a ggpredict plot with a backtransformed scale. I transformed the variables before using …

  7. r - Is there a way to back-transform log (x+1)? - Stack Overflow

    Mar 27, 2021 · df.log1p <- log1p(df) mean(df.log1p) This gives us 3.0382116 Now, can I back-transform that single mean value to get the non- log1p mean value of 32.9375? I used …

  8. How to log(x + 1) a data frame or matrix in R - Stack Overflow

    Oct 12, 2021 · I am new to coding and am doing some gene expression analysis. I have a very naïve question. I have a a few gene expression data frames with gene names as rows and cell …

  9. Numpy: RuntimeWarning: invalid value encountered in log1p

    Aug 3, 2019 · I am encountering a warning during np.log1p: RuntimeWarning: invalid value encountered in log1p, but I can't figure why. As far as I can tell, the input is proper. It contains …

  10. Why are log2 and log1p so much faster than log and log10, in …

    Why are log2 and log1p so much faster than log and log10, in numpy? Asked 10 years ago Modified 3 years, 4 months ago Viewed 12k times