项目作者: dudupo

项目描述 :
efficiently linear regression
高级语言: C++
项目地址: git://github.com/dudupo/linear-regression.git
创建时间: 2020-04-14T19:47:26Z
项目社区:https://github.com/dudupo/linear-regression

开源协议:

下载


Linear Regression

efficiently linear regression O( n^2 log( √n/ε ) ) Time algorithm ( ε-accuracy ).
an Hebrew analyze of the time running could be found here : https://github.com/dudupo/linear-regression/blob/master/svd.pdf

I have ‘copy-pasted’ the document as it was, directly from assignment, so it might seem strange (for who is’t an exercises examiner). I hope to update the manner in future.

currently, it’s not working (yet), and has a buggy nature. As a first step I focusing on demonstrate a polynomial regression. after that I planning to improve the code by constant Time factor, and ‘righter cpp literary’.

Issuses

(I) reordering the vectors of the orthonormal matrix

the svd decompaction, calculating the vectors by ascending order ( matched to the eigenvalue ), currently there is no regard to the subject while assembling back.

(II) results of polynomial regression aren’t even similar to the expectations.

Testing

note that you might want to decrease the size of the matrix.

  1. mingw32-make
  2. python ./scripts/svdtest_gen.py
  3. python ./scripts/svdtest_run.py