Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想用多个参数执行几次拟合,其中一些在第一次拟合中是固定的。如何定义不浮动的参数以及如何更改它?无限制地创造似乎并不能让它固定下来。
要创建固定的参数(但可以设为浮动),您可以指定floating为False:
floating
False
param = zfit.Parameter('param', 1, 0, 2, floating=False)
为了使其稍后浮动,请使用属性floating:
param.floating = True