Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including
Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Data Science Stack Exchange is a question and answer site for Data science professionals, Machine Learning specialists, and those interested in learning more about the field. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
3 years, 2 months ago
. This question needs to be more
. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
I was trying to reduce the skewness of data using boxcox transformation. But was facing an error:
ValueError: Data must be positive.
I figured out why it was throwing an error, my data ranged from .0 to 1
so I added one and it worked.
Although is it the right way to deal with it?
Jan 8, 2020 at 5:01
189 11 11 bronze badges
Boxcox you need to tune the lambda parameter, in order to transform the data to normal one (and than its implicitly non-skewed) however, I would suggest to rather use log transform, its faster.
Jan 8, 2020 at 9:22
Noah Weber Noah Weber
5,519 1 1 gold badge 11 11 silver badges 26 26 bronze badges
By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our
Accept all cookies
Necessary cookies only