prediction analysis and fixes
fixed test error calculation
fixed test error calculation