Documentation / Developer's manual
Available modules
Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,  ![]() |
Uranie / Modeler
v4.10.0
|
#include <TGLM.h>


Public Types | |
| enum | EDistribution { kUnknown, kPoisson, kGamma, kBinomial, kNormal } |
| enum | ELinkFunctin { kCanonical, kIdentity, kLogit, kProbit, kLogLog, kLog, kInverse } |
Public Member Functions | |
Constructor and Destructor | |
| TGLM (URANIE::DataServer::TDataServer *tds, TString architecture, Option_t *option="") | |
| Default constructor with the TDataServer and the architecture. More... | |
| TGLM (URANIE::DataServer::TDataServer *tds, const char *varexpinput, const char *varexpoutput, Option_t *option="") | |
| Default constructor with input and output attributes. More... | |
| virtual | ~TGLM () |
| Default destructor. More... | |
Get and Set methods | |
| void | setFamily (EDistribution nYDistribution=kUnknown, ELinkFunctin nLinkFunction=kCanonical) |
| Set the family of error (Distribution of \( Y\) and Link Function) More... | |
| EDistribution | getYDistribution () |
| Return the type of Y distribution. More... | |
| ELinkFunctin | getLinkFunction () |
| Return the link function. More... | |
| void | setMaxIteration (Int_t n) |
| Set the number of maximum iteration. More... | |
| Int_t | getNIteration () |
| Get the number iterations at convergence. More... | |
| Int_t | getMaxIteration () |
| Get the number of maximum iteration. More... | |
| void | setTolerance (Double_t dtol) |
| Set the Tolerance. More... | |
| Double_t | getTolerance () |
| Get the Tolerance. More... | |
| Double_t | getNullDeviance () |
| Get the Null Deviance value. More... | |
| Double_t | getResidualDeviance () |
| Get the Residual Deviance value. More... | |
| void | setInitialBeta (TVectorD vecIni) |
| Set the initial parameter. More... | |
| TVectorD | getInitialBeta () |
| Get the initial parameter. More... | |
Estimate | |
| void | estimate (Option_t *option="") |
| void | fillData (TMatrixD &Aw, TVectorD &yw, TMatrixD &matY) |
| Fill the data in a TMatrix and a TVector. More... | |
Export the model in extrenal langage | |
| void | exportModelCplusplus (std::ofstream *sourcefile) const |
| Export the model in C++ langage in a file. More... | |
| void | exportModelFortran (std::ofstream *sourcefile) const |
| Export the model in Fortran langage in a file. More... | |
| void | exportModelPMML (const char *file="", const char *name="", Option_t *option="") const |
| Export the model in a PMML file (not yet implemented) More... | |
| void | exportModelPython (std::ofstream *sourcefile) const |
| Export the model in Python langage in a file (not yet implemented) More... | |
Printing Log | |
| void | printLog (Option_t *option="") |
Public Member Functions inherited from URANIE::Modeler::TModeler | |
| TModeler (URANIE::DataServer::TDataServer *tds, TString architecture, Option_t *option="") | |
| Constructor with a dataserver. More... | |
| TModeler (URANIE::DataServer::TDataServer *tds, const char *varexpinput, const char *varexpoutput, Option_t *option="") | |
| Default constructor with input and output attributes. More... | |
| virtual | ~TModeler () |
| Default destructor. More... | |
| TVectorD | getParameters () |
| Return the parameter vector of the model. More... | |
| Double_t | getR2 () const |
| Return the R2 quality. More... | |
| const char * | getInputName (Int_t i) const |
| Return the name of input attributes. More... | |
| const char * | getOutputName (Int_t i=0) |
| Return the name of output attribute. More... | |
| Int_t | getNInput () |
| Gets the number of input. More... | |
| Bool_t | getIntercept () |
| Gets the boolean attribut _bIntercept. More... | |
| void | setDrawProgressBar (Bool_t bbool=kTRUE) |
| Set the "draw progress bar" flag. More... | |
| Bool_t | getDrawProgressBar () |
| Get the "draw progress bar" flag. More... | |
| void | train (Option_t *option="text") |
| virtual void | exportFunction (const char *lang, const char *file="", const char *name="", Option_t *option="") |
| Export the model in an external file with a specified langage. More... | |
| void | setLog () |
| void | unsetLog () |
| void | changeLog () |
| Bool_t | getLog () |
Private Attributes | |
| EDistribution | _nDistribution |
| The type of Y distribution. More... | |
| ELinkFunctin | _nLinkFunction |
| The link function (default kCanonical) More... | |
| Int_t | _nIteration |
| the number of iteration at convergence (default 0) More... | |
| Int_t | _nMaxIteration |
| the number of maximum iteration (default 25) More... | |
| TVectorD | _vecBetaInit |
| Inital Vector for beta. More... | |
| Double_t | _dTolerance |
| The tolerance to stop algorithm (default 1.e-6) More... | |
| Double_t | _dNullDeviance |
| The Null Deviance value. More... | |
| Double_t | _dResidualDeviance |
| The Residual Deviance value. More... | |
Additional Inherited Members | |
Public Attributes inherited from URANIE::Modeler::TModeler | |
| Bool_t | _blog |
| Boolean for edit the log. More... | |
| Bool_t | _bdrawProgressBar |
| Boolean to know if the progress bar has to be drawn. More... | |
| Bool_t | _bStoreYHat |
| Boolean to specify if we add the {} attribute in the TDS [default kTRUE]. More... | |
| URANIE::DataServer::TDataServer * | _tds |
| Int_t | _nS |
| Pointer to a TDS. More... | |
| TString | _sInputAttributes |
| The string of input attributes (separated by the character ":". More... | |
| TString | _sOutputAttributes |
| The string of output attributes (separated by the character ":". More... | |
| TString | _sIntermediateArchitecture |
| The intermediate (between the first and last character ",") information. More... | |
| TList * | _listOfInputAttributes |
| The list of input Leaf. More... | |
| TList * | _listOfOutputAttributes |
| The list of output Leaf. More... | |
| Int_t | _nX |
| The number of input attributes. More... | |
| Int_t | _nY |
| The number of output attributes. More... | |
| TString | _sFileName |
| The name of the file when export the model without extension. More... | |
| TString | _sFunctionName |
| The name of the function when export the model. More... | |
| TVectorD | _parameterValues |
| The list of parameters. More... | |
| Double_t | _dr2 |
| The R2 quality. More... | |
| Bool_t | _bIntercept |
| For certain models, add the intercept (Default is TRUE) More... | |
Member Enumeration Documentation
◆ EDistribution
◆ ELinkFunctin
Constructor & Destructor Documentation
◆ TGLM() [1/2]
| URANIE::Modeler::TGLM::TGLM | ( | URANIE::DataServer::TDataServer * | tds, |
| TString | architecture, | ||
| Option_t * | option = "" |
||
| ) |
Default constructor with the TDataServer and the architecture.
Referenced by ClassImp().
◆ TGLM() [2/2]
| URANIE::Modeler::TGLM::TGLM | ( | URANIE::DataServer::TDataServer * | tds, |
| const char * | varexpinput, | ||
| const char * | varexpoutput, | ||
| Option_t * | option = "" |
||
| ) |
Default constructor with input and output attributes.
◆ ~TGLM()
|
virtual |
Default destructor.
Referenced by ClassImp().
Member Function Documentation
◆ estimate()
| void URANIE::Modeler::TGLM::estimate | ( | Option_t * | option = "" | ) |
Referenced by ClassImp().
◆ exportModelCplusplus()
|
virtual |
Export the model in C++ langage in a file.
- Warning
- Don't use this method. Use the main method TModeler::exportFunction.
- Parameters
-
sourcefile (ofstream *) the pointer to the file to export the modeler.
Implements URANIE::Modeler::TModeler.
Referenced by ClassImp().
◆ exportModelFortran()
|
virtual |
Export the model in Fortran langage in a file.
- Warning
- Don't use this method. Use the main method TModeler::exportFunction.
- Parameters
-
sourcefile (ofstream *) the pointer to the file to export the modeler.
Implements URANIE::Modeler::TModeler.
Referenced by ClassImp().
◆ exportModelPMML()
|
inlinevirtual |
Export the model in a PMML file (not yet implemented)
- Warning
- Don't use this method. Use the main method TModeler::exportFunction.
- Parameters
-
sourcefile (ofstream *) the pointer to the file to export the modeler.
Implements URANIE::Modeler::TModeler.
◆ exportModelPython()
|
inlinevirtual |
Export the model in Python langage in a file (not yet implemented)
- Warning
- Don't use this method. Use the main method TModeler::exportFunction.
- Parameters
-
sourcefile (ofstream *) the pointer to the file to export the modeler.
Implements URANIE::Modeler::TModeler.
◆ fillData()
| void URANIE::Modeler::TGLM::fillData | ( | TMatrixD & | Aw, |
| TVectorD & | yw, | ||
| TMatrixD & | matY | ||
| ) |
Fill the data in a TMatrix and a TVector.
- Todo:
- To deplace in the TModeler Class because it is the same for TLinearRegression.
Referenced by ClassImp().
◆ getInitialBeta()
|
inline |
Get the initial parameter.
References _vecBetaInit.
◆ getLinkFunction()
|
inline |
Return the link function.
References _nLinkFunction.
◆ getMaxIteration()
|
inline |
Get the number of maximum iteration.
References _nMaxIteration.
◆ getNIteration()
|
inline |
Get the number iterations at convergence.
References _nIteration.
◆ getNullDeviance()
|
inline |
Get the Null Deviance value.
References _dNullDeviance.
◆ getResidualDeviance()
|
inline |
Get the Residual Deviance value.
References _dResidualDeviance.
◆ getTolerance()
|
inline |
Get the Tolerance.
References _dTolerance.
◆ getYDistribution()
|
inline |
Return the type of Y distribution.
References _nDistribution.
◆ printLog()
|
virtual |
Reimplemented from URANIE::Modeler::TModeler.
Referenced by ClassImp().
◆ setFamily()
| void URANIE::Modeler::TGLM::setFamily | ( | EDistribution | nYDistribution = kUnknown, |
| ELinkFunctin | nLinkFunction = kCanonical |
||
| ) |
Set the family of error (Distribution of \( Y\) and Link Function)
- Parameters
-
nYDistribution (EDistribution) The distribution of \( Y\) (kBinomial|kPoisson|kGamma) nLinkFunction (ELinkFunctin) The link function. By defulalt, the canonical function, which depend of the Y distribution, is used. [kCanonical](kCanonical|kIdentity|kLogit|kProbit|kLog)
Referenced by ClassImp().
◆ setInitialBeta()
| void URANIE::Modeler::TGLM::setInitialBeta | ( | TVectorD | vecIni | ) |
Set the initial parameter.
Referenced by ClassImp().
◆ setMaxIteration()
|
inline |
Set the number of maximum iteration.
References _nMaxIteration.
◆ setTolerance()
|
inline |
Set the Tolerance.
References _dTolerance.
Member Data Documentation
◆ _dNullDeviance
|
private |
The Null Deviance value.
Referenced by ClassImp(), and getNullDeviance().
◆ _dResidualDeviance
|
private |
The Residual Deviance value.
Referenced by ClassImp(), and getResidualDeviance().
◆ _dTolerance
|
private |
The tolerance to stop algorithm (default 1.e-6)
Referenced by ClassImp(), getTolerance(), and setTolerance().
◆ _nDistribution
|
private |
The type of Y distribution.
Referenced by ClassImp(), and getYDistribution().
◆ _nIteration
|
private |
the number of iteration at convergence (default 0)
Referenced by ClassImp(), and getNIteration().
◆ _nLinkFunction
|
private |
The link function (default kCanonical)
Referenced by ClassImp(), and getLinkFunction().
◆ _nMaxIteration
|
private |
the number of maximum iteration (default 25)
Referenced by ClassImp(), getMaxIteration(), and setMaxIteration().
◆ _vecBetaInit
|
private |
Inital Vector for beta.
Referenced by ClassImp(), and getInitialBeta().

Public Member Functions inherited from