xinychen / transdim

Machine learning for transportation data imputation and prediction.
https://transdim.github.io
MIT License
1.22k stars 303 forks source link

About Your RMSE #2

Open Padfoot-Luna opened 5 years ago

Padfoot-Luna commented 5 years ago

In CP_ALS and Tucker_ALS, why do you calculate the RMSE on the training set ( sparse_tensor) not on the test set as you do in BGCP?

Btw, final_mape = np.sum(np.abs(dense_tensor[pos] - tensor_hat[pos]) / dense_tensor[pos]) / dense_tensor[pos].shape[0], the np.abs() should cover (dense_tensor[pos] - tensor_hat[pos]) / dense_tensor[pos] instead of dense_tensor[pos] - tensor_hat[pos]

xinychen commented 5 years ago

This is a good question. Of course, you could replace that performance metric, and I will do that soon.