Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/338.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 在sklearn GradientBoostingClassifier中将分数范围固定为[-1,1]_Python_Machine Learning_Scikit Learn_Ensemble Learning - Fatal编程技术网

Python 在sklearn GradientBoostingClassifier中将分数范围固定为[-1,1]

Python 在sklearn GradientBoostingClassifier中将分数范围固定为[-1,1],python,machine-learning,scikit-learn,ensemble-learning,Python,Machine Learning,Scikit Learn,Ensemble Learning,在sklearn中使用GradientBoostingClassifier时,我从decision_函数得到的分数大于[-1,1]之间。是否可以强制分类器仅计算[-1,1]之间的分数 问题是,我需要将分类转换为xml文件,该文件将在tmva内部使用,tmva只能处理该范围内的分数,因此仅将我的分数缩放到该范围是不够的。为什么不在训练和预测中通过arctan进行引导?@Willem arctan不受[-1,1]的限制,你可能是指hiperbolic切线(tanh)?是的。或具有(0,1)域的任何类

在sklearn中使用GradientBoostingClassifier时,我从decision_函数得到的分数大于[-1,1]之间。是否可以强制分类器仅计算[-1,1]之间的分数


问题是,我需要将分类转换为xml文件,该文件将在tmva内部使用,tmva只能处理该范围内的分数,因此仅将我的分数缩放到该范围是不够的。

为什么不在训练和预测中通过
arctan
进行引导?@Willem arctan不受[-1,1]的限制,你可能是指hiperbolic切线(tanh)?是的。或具有(0,1)域的任何类型的变换。