Cost Function, Linear Regression, trying to avoid hard coding theta. Octave.

You can use vectorize of operations in Octave/Matlab. Iterate over entire vector – it is really bad idea, if your programm language let you vectorize operations. R, Octave, Matlab, Python (numpy) allow this operation. For example, you can get scalar production, if theta = (t0, t1, t2, t3) and X = (x0, x1, x2, x3) … Read more

How to get a regression summary in scikit-learn like R does?

There exists no R type regression summary report in sklearn. The main reason is that sklearn is used for predictive modelling / machine learning and the evaluation criteria are based on performance on previously unseen data (such as predictive r^2 for regression). There does exist a summary function for classification called sklearn.metrics.classification_report which calculates several … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)