Changeset db2b6d3 in tol


Ignore:
Timestamp:
May 13, 2010, 2:57:32 PM (16 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
a399c87
Parents:
9421997
Message:

Uso de Require

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@2166 be4846ae-f051-483a-831f-b64e7d08527f

Location:
tol_pkg/BysVecLinReg/test
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tol_pkg/BysVecLinReg/test/test_0001/test.tol

    r9421997 rdb2b6d3  
    1212Real numErr0 = Copy(NError);
    1313
     14#Require BysVecLinReg;
    1415#Embed "../gen_multivariant_linear_regression.tol";
    1516
    … …  
    4142
    4243VMatrix vec.A_ = Tra(Constant(1,sampleLength,1/sampleLength)*mcmc);
    43 VMatrix vec.A = BysVecLinReg::vmatrix2vec(A);
    4444VMatrix cmp.A = vec.A | vec.A_;
    4545
    … …  
    5959Set partialResults_ =
    6060[[
    61   numErr0, numErr1, stdErr, stdErr_, quality.adjust
     61  numErr0, numErr1, stdErr, stdErr_, quality.adjust,
    6262  ok_.X.Li, ok_.IdxXL, ok_.IdxXLi, okLLt
    6363
  • tol_pkg/BysVecLinReg/test/test_0002/test.tol

    r9421997 rdb2b6d3  
    1212Real numErr0 = Copy(NError);
    1313
     14#Require BysVecLinReg;
    1415#Embed "../gen_multivariant_linear_regression.tol";
    1516
    … …  
    2324
    2425//Real MV::set.prior.V.none(0);
    25 Real MV::set.prior.V.inverseWishart(0.90, V);
     26Real MV::set.prior.V.inverseWishart(0.10, V);
    2627
    2728VMatrix mcmc = Group("ConcatRows", For(1,sampleLength,VMatrix(Real numSim)
  • tol_pkg/BysVecLinReg/test/test_0003/test.tol

    r9421997 rdb2b6d3  
    1313Real numErr0 = Copy(NError);
    1414
     15#Require BysVecLinReg;
     16//Se generará un modelo con r.eq restricciones de igualdad lineales
    1517Real r.eq = 3;
     18Real rndSeed = 792466945;
    1619#Embed "../gen_multivariant_linear_regression.tol";
    1720
    … …  
    4245}));
    4346
     47//////////////////////////////////////////////////////////////////////////////
     48//Standard report
     49//////////////////////////////////////////////////////////////////////////////
     50
     51Set 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//////////////////////////////////////////////////////////////////////////////
    4483VMatrix avg = Tra(Constant(1,sampleLength,1/sampleLength)*mcmc);
    4584VMatrix vec.A_ = BysVecLinReg::vmatrix2vec(
Note: See TracChangeset for help on using the changeset viewer.