简体   繁体   English

向量线性回归

[英]Vectors linear regression

I have two vectors:我有两个向量:

X - The input vector of generic dimension N X - 通用维度 N 的输入向量

Y - The output vector with the same dimension of X (N) Y - 与X (N) 维数相同的 output 向量

These vectors are related by:这些向量通过以下方式相关:

Y = FX Y = 外汇

Where F is a linear transformation, but it is unknown.其中F是一个线性变换,但它是未知的。 Potentially, I can build a dataset with a large number of X and Y .潜在地,我可以构建一个包含大量XY的数据集。 There is a way to find F through linear regression/neural network?有没有办法通过线性回归/神经网络找到F The vector size is not defined yet, but it is quite large (more than 1000 elements).向量大小尚未定义,但相当大(超过 1000 个元素)。

Can anyone help me to find some references on how to solve this problem using machine learning?谁能帮我找到一些关于如何使用机器学习解决这个问题的参考资料? I have already looked for multivariate linear regression, but it points to multi variables instead of vectors.我已经寻找多元线性回归,但它指向多变量而不是向量。

As far as I know,我所知道的,

Y = AX + epsilon (with normally distributed epsilon) Y = AX + epsilon(具有正态分布的 epsilon)

is exactly the equation of a linear regression.正是线性回归的方程。 Epsilon mostly represents the measurement error in case of empirically collected data. Epsilon 主要代表在经验收集数据的情况下的测量误差。

So I think this should work out with a linear regression所以我认为这应该通过线性回归来解决

https://heartbeat.fritz.ai/implementing-multiple-linear-regression-using-sklearn-43b3d3f2fe8b https://heartbeat.fritz.ai/implementing-multiple-linear-regression-using-sklearn-43b3d3f2fe8b

I think you have a much simpler problem than what you're thinking.我认为您的问题比您想象的要简单得多。 You have a linear regression problem, with only one feature observed (if I understood correctly).你有一个线性回归问题,只观察到一个特征(如果我理解正确的话)。 It's linear because F is, as you said, a linear function, so you don't need to resort to a neural network to estimate it.它是线性的,因为正如您所说,F 是线性 function,因此您无需借助神经网络来估计它。

The estimate F you're looking for is simply Y/(X T Y), assuming vectors are columns.假设向量是列,您正在寻找的估计值 F 只是 Y/(X T Y)。 If you need to prove this, a detailed solution for the general case (where you have more than one feature, so X is a matrix), you can have a look at Understanding Machine Learning - From Theory to Algorithms , pages 123-125.如果您需要证明这一点,一般情况下的详细解决方案(您有多个特征,所以 X 是一个矩阵),您可以查看了解机器学习 - 从理论到算法,第 123-125 页。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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