2017-05-05 9 views
1

경우에 따라 pymc3은 변수 변환을 자동으로 수행합니다 (What are the interval transforms in pymc3 for uniform distributions?, what does the 'find_MAP' output mean in pymc3? 참조).pymc3에서 변환하기위한 편리한 방법

답변에서 https://stackoverflow.com/a/42170938/5142797 어떤 변형이 적용되는지를 발견했습니다. 따라서 원칙적으로 전후방 변환을 수행 할 수 있습니다.

그러나 자동 변환 된 변수에 대해 앞뒤 변환을 수행하는 더 편리한 방법이 있습니까? 그것은 매우 편리 할 것입니다. find_MAP 결과입니다.

답변

2

다음 작품 :

test_model = pymc3.Model() 

with test_model: 
    u = pymc3.Uniform('u', 0, 1) 

test_model.u_interval__.distribution.transform_used.backward(0.5).eval()