Changeset 1176 for library/tests/stresssuite
- Timestamp:
- 09/02/10 14:40:42 (14 years ago)
- Location:
- library/tests/stresssuite
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
library/tests/stresssuite/arx_elem_stress.cpp
r1064 r1176 39 39 X2.set_row ( 0, x ); 40 40 41 mlstudent* Ap = Ar.predictor _student();41 mlstudent* Ap = Ar.predictor(); 42 42 vec Ap_x = Ap->evallogcond_mat ( X, empty_vec ); 43 43 vec ll_x = Ar.logpred_mat ( X2 , empty_vec); -
library/tests/stresssuite/arx_stress.cpp
r1064 r1176 55 55 56 56 // Build predictor 57 mlstudent* Pr = Ar.predictor_student ( ); 58 // Test similarity of likelihoods from the Bayes rule and the predictor 57 mlstudent* Pr = Ar.predictor ( ); 58 estudent<ldmat>* PrS = Ar.epredictor_student (rgr ); 59 60 cout << "m1: " << Pr->_A()*rgr+Pr->_mu_const() << 61 " v1:" << Pr->e()._R(); 62 cout << "ms: " << PrS->mean() << " vs:" << PrS->variance() << 63 " del:" << PrS->_delta() <<endl; 64 65 // Test similarity of likelihoods from the Bayes rule and the predictor 59 66 cout << "BR log-lik: " << Ar._ll(); 60 cout << " , predictor ll: " << Pr->evallogcond ( vec_1 ( Yt ( t ) ), rgr ) << endl; 61 delete Pr; 62 } 67 cout << " , predictor ll: " << Pr->evallogcond ( vec_1 ( Yt ( t ) ), rgr ); 68 cout << " , epredictor_student ll: " << PrS->evallog ( vec_1 ( Yt ( t ) ) ) << endl; 69 delete Pr; 70 delete PrS; 71 } 63 72 //print posterior moments 64 73 cout << "posterior mean: " << f_thr.mean() << endl;