Changeset db2b6d3 in tol
- Timestamp:
- May 13, 2010, 2:57:32 PM (16 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- a399c87
- Parents:
- 9421997
- Location:
- tol_pkg/BysVecLinReg/test
- Files:
-
- 3 edited
-
test_0001/test.tol (modified) (3 diffs)
-
test_0002/test.tol (modified) (2 diffs)
-
test_0003/test.tol (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol_pkg/BysVecLinReg/test/test_0001/test.tol
r9421997 rdb2b6d3 12 12 Real numErr0 = Copy(NError); 13 13 14 #Require BysVecLinReg; 14 15 #Embed "../gen_multivariant_linear_regression.tol"; 15 16 … … 41 42 42 43 VMatrix vec.A_ = Tra(Constant(1,sampleLength,1/sampleLength)*mcmc); 43 VMatrix vec.A = BysVecLinReg::vmatrix2vec(A);44 44 VMatrix cmp.A = vec.A | vec.A_; 45 45 … … 59 59 Set partialResults_ = 60 60 [[ 61 numErr0, numErr1, stdErr, stdErr_, quality.adjust 61 numErr0, numErr1, stdErr, stdErr_, quality.adjust, 62 62 ok_.X.Li, ok_.IdxXL, ok_.IdxXLi, okLLt 63 63 -
tol_pkg/BysVecLinReg/test/test_0002/test.tol
r9421997 rdb2b6d3 12 12 Real numErr0 = Copy(NError); 13 13 14 #Require BysVecLinReg; 14 15 #Embed "../gen_multivariant_linear_regression.tol"; 15 16 … … 23 24 24 25 //Real MV::set.prior.V.none(0); 25 Real MV::set.prior.V.inverseWishart(0. 90, V);26 Real MV::set.prior.V.inverseWishart(0.10, V); 26 27 27 28 VMatrix mcmc = Group("ConcatRows", For(1,sampleLength,VMatrix(Real numSim) -
tol_pkg/BysVecLinReg/test/test_0003/test.tol
r9421997 rdb2b6d3 13 13 Real numErr0 = Copy(NError); 14 14 15 #Require BysVecLinReg; 16 //Se generará un modelo con r.eq restricciones de igualdad lineales 15 17 Real r.eq = 3; 18 Real rndSeed = 792466945; 16 19 #Embed "../gen_multivariant_linear_regression.tol"; 17 20 … … 42 45 })); 43 46 47 ////////////////////////////////////////////////////////////////////////////// 48 //Standard report 49 ////////////////////////////////////////////////////////////////////////////// 50 51 Set report = { 52 BysMcmc::@Config cfg = BysMcmc::@Config::Default(0); 53 BysMcmc::Inference::report( 54 MV::_.desc, 55 Set colNames_ = SetConcat(For(1,MV::_.m,Set(Real j) 56 { 57 For(1,MV::_.d,Text(Real i) 58 { 59 "linblk_a_"<<i<<"_"<<j+"_"+MV::_.outputNames[i]+"_"+MV::_.inputNames[j] 60 }) 61 })) << SetConcat(For(1,MV::_.d,Set(Real j) 62 { 63 For(1,MV::_.d,Text(Real i) 64 { 65 "sigblk_s_"<<i<<"_"<<j+"_"+MV::_.outputNames[i]+"_"+MV::_.outputNames[j] 66 }) 67 })), 68 Set BysMcmc::@BysInf.Report.Config 69 ( 70 cfg::report.raftery.diag.q, 71 cfg::report.raftery.diag.r, 72 cfg::report.raftery.diag.s, 73 cfg::report.raftery.diag.eps, 74 cfg::report.acf.lag, 75 cfg::report.histogram.parts, 76 cfg::report.kerDens.points 77 ), 78 Matrix VMat2Mat(mcmc))}; 79 80 ////////////////////////////////////////////////////////////////////////////// 81 //Reporting about average of simulations 82 ////////////////////////////////////////////////////////////////////////////// 44 83 VMatrix avg = Tra(Constant(1,sampleLength,1/sampleLength)*mcmc); 45 84 VMatrix vec.A_ = BysVecLinReg::vmatrix2vec(
Note: See TracChangeset
for help on using the changeset viewer.
