[英]Sklearn predict function
I am using sklearn
's Linear Regression ML model in Python to predict.我在 Python 中使用
sklearn
的线性回归 ML 模型进行预测。 The predict
function returns an array
with a lot of floating point numbers, (which is correct) but I don't quite understand what the floating point numbers represent. predict
函数返回一个包含大量浮点数的array
(这是正确的),但我不太明白浮点数代表什么。 Is it possible to map them back?是否可以将它们映射回来?
For context, I am trying to predict sales of a product (label) from stocks available.就上下文而言,我试图从可用库存中预测产品(标签)的销售额。 The predict function returns a large array of floating point numbers.
predict 函数返回一个大的浮点数数组。 How do I know what each floating point number represents?
我怎么知道每个浮点数代表什么?
For instance, the array is like [11.5, 12.0, 6.1,..].例如,数组类似于 [11.5, 12.0, 6.1,..]。 It seems 6.1 is the sales qty but with what stock quantity is it associated with?
似乎 6.1 是销售数量,但它与什么库存数量相关?
i'th output is prediction for i'th input.第 i 个输出是对第 i 个输入的预测。 Whatever you passed to .predict is a collection of objects, and the ordering of predictions is the same as the ordering of data passed in.
无论你传递给 .predict 的是一个对象的集合,预测的顺序与传入的数据的顺序相同。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.