scipy로 수치적분하는데 power가 너무 커서 오류나는데 해결하는 방법 아는사람?
축약하자면 (w1^alpha)*(w2^alpha2)*np.exp(x)*(x^(sum(data1)+sum(data2)))같은 꼴을 x는0~inf w1,w2는 0~1까지 삼중적분하는데 대충 두 데이터 총합은 120정도라고 생각하면 됨
overflow encountered in power
RuntimeWarning: overflow encountered in double_scalarsIntegrationWarning: The occurrence of roundoff error is detected, which prevents
the requested tolerance from being achieved. The error may be
underestimated.이런 문제 해결방안 아는 사람 제발 좀 도와줘 3일 넘게 해결못함
뭔 소리를 하는거냐
e^x * x^120을 0부터 무한대까지 적분하면 뭐겠니?
(w1^alpha)*(w2^alpha2) 얘는 왜 써놓은지도 모르겠네
아 실수함 e^(-x)임 likelihood 적분하는 중임