我在用
def findT(values, passFraction):
#...<skipping func body>
def findT90(values):
return findT(values, 0.9)
frac90_result = scipy.stats.binned_statistic(m_test, [y_pred], bins=5, range=(0,1),
statistic=findT90)
但我想对此进行概括,以便我可以传递任何其他值来代替0.9而不必创建新函数。passFraction调用时如何包含 值scipy.stats.binned_statistic
森林海
相关分类