简体   繁体   中英

Inequality Constraint for a PYMC3 Model

I want to define an inequality constraint for a PYMC3 model. I found this post about defining an equality constraint (ie, a+b1+b2=1) using pm.Potential. Does anyone know how to change that equality constraint into an inequality constraint like 0.9<a+b1+b2<1? Thanks!

The post you mention uses pm.math.eq which stands for "equal". There are also pm.math.lt (lower than) and pm.math.le (lower or equal than). See the pymc3.math documentation

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM