Changeset 5e3cfca in tol


Ignore:
Timestamp:
Feb 9, 2010, 1:47:47 PM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
1134230
Parents:
681fb68
Message:

Just traces

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/stdlib/math/stat/models/bayesian/bysMcmc/bsr/_oneNode.tol

    r681fb68 r5e3cfca  
    8383  {
    8484    Text _MID = "[BysMcmc::Bsr::OneNode::GetCycler]";
    85   //WriteLn(_MID+" TRACE 1");
     85  //WriteLn(" TRACE "+_MID+" 1");
    8686    //Output matrix
    8787    VMatrix Y = data::_.Y;
    88   //WriteLn(_MID+" TRACE 2");
     88  //WriteLn("TRACE "+_MID+" 2");
    8989    //Input matrix
    9090    VMatrix X = data::_.X;
    9191
    92   //WriteLn(_MID+" TRACE 3");
     92  //WriteLn("TRACE "+_MID+" 3");
    9393    //Observational data length
    9494    Real m = VRows(Y);
    … …  
    106106    Matrix  domain.A.triplet = Rand(0,3,0,0);
    107107   
    108   //WriteLn(_MID+" TRACE 4");
     108  //WriteLn("TRACE "+_MID+" 4");
    109109    //Builds linear block and collects prior and domain information
    110110    Set linearBlock = For(1,n, Set(Real j)
    … …  
    112112      Set pi = (data::_.linearParamInfo)[j];
    113113      Set aux = [[@BSR.LinearBlock(pi->Name, pi->InitValue, True, False)]];
    114     //WriteLn(_MID+" TRACE 4.["<<j+"].1");
     114    //WriteLn("TRACE "+_MID+" 4.["<<j+"].1");
    115115      Real prior.Average = If(ObjectExist("Real","pi->Prior.Average"),
    116116                              pi->Prior.Average, ?);
    … …  
    129129        0
    130130      });
    131     //WriteLn(_MID+" TRACE 4.["<<j+"].2");
     131    //WriteLn("TRACE "+_MID+" 4.["<<j+"].2");
    132132      Real prior.LowerBound = If(ObjectExist("Real","pi->Prior.LowerBound"),
    133133                              pi->Prior.LowerBound, -1/0);
    … …  
    140140        0
    141141      });
    142     //WriteLn(_MID+" TRACE 4.["<<j+"].3");
     142    //WriteLn("TRACE "+_MID+" 4.["<<j+"].3");
    143143      Real prior.UpperBound = If(ObjectExist("Real","pi->Prior.UpperBound"),
    144144                              pi->Prior.UpperBound, +1/0);
    … …  
    157157    //Checks unique name and prepares for hashed searching by name
    158158    Real SetIndexByName(linearBlock);
    159   //WriteLn(_MID+" TRACE 5");
     159  //WriteLn("TRACE "+_MID+" 5");
    160160    //Domain constraints
    161161    VMatrix domain.A = Triplet(domain.A.triplet,domain.num,n);
    … …  
    184184    Real m.full = m+prior.num;
    185185
    186   //WriteLn(_MID+" TRACE 6");
     186  //WriteLn("TRACE "+_MID+" 6");
    187187    //Observational information
    188188    Real sigmaIsUnknown = IsUnknown(data::_.sigma);
    … …  
    207207    ]]};
    208208
    209   //WriteLn(_MID+" TRACE 7");
     209  //WriteLn("TRACE "+_MID+" 7.1");
    210210    //Prior information
    211     VMatrix prior.X = Triplet(prior.X.triplet,prior.num,n);
     211    VMatrix prior.X = Convert(Triplet(prior.X.triplet,prior.num,n),"Cholmod.R.Sparse");
     212  //WriteLn("TRACE "+_MID+" 7.2");
    212213    Real sigmaIndex = If(sigmaIsUnknown,1,0);
    213214    Set noisePrior = For(1,Card(prior.index),Set(Real j)
    214215    {
     216    //If(!j%100, WriteLn("TRACE "+_MID+"  8."<<j));
    215217      Set pi = (data::_.linearParamInfo)[prior.index[j] ];
    216218      Real estimSigma = Case(
    … …  
    246248        Set NonLinFilters = Copy(Empty)
    247249      )
    248    });
    249 
    250   //WriteLn(_MID+" TRACE 8");
     250    });
     251
     252  //WriteLn("TRACE "+_MID+" 9.1");
    251253    //All allowed segments in this simplified API are obs and prior (optionally)
    252254    Set noiseDistrib_ = noiseObs << noisePrior;
    … …  
    259261    //Checks unique name and prepares for hashed searching by name
    260262    Real SetIndexByName(noiseDistrib);
    261   //WriteLn(_MID+" TRACE 9");
     263  //WriteLn("TRACE "+_MID+" 9.2");
    262264    //Building generic model definition
    263265    Set modelDef = @BSR.ModelDef (
    … …  
    275277      VMatrix A = domain.A << order.A
    276278    );
     279  //WriteLn("TRACE "+_MID+" 9.3");
    277280    BysMcmc::@Cycler cycler = BysMcmc::Bsr::Gibbs::GetCyclerFromParsed
    278    (
     281    (
    279282      modelDef,
    280283      BysMcmc::@McmcPartialHandler::Null(0),
    … …  
    282285      BysMcmc::@Notifier::Null(0)
    283286    );
     287  //WriteLn("TRACE "+_MID+" 9.4");
    284288    Set Append(cycler::auxInfo,[[data]]);
    285   //WriteLn(_MID+" TRACE 12");
     289  //WriteLn("TRACE "+_MID+" 9.5");
    286290    cycler
    287291  };
Note: See TracChangeset for help on using the changeset viewer.