|
SNAP Library, User Reference
2012-10-02 12:56:23
SNAP, a general purpose network analysis and graph mining library
|
Public Member Functions | |
| TMAGFitBern () | |
| TMAGFitBern (const PNGraph &G, const int &NAttrs) | |
| TMAGFitBern (const PNGraph &G, const TStr &InitFNm) | |
| void | Clr () |
| void | SaveTxt (const TStr &FNm) |
| const int | GetNodes () const |
| const int | GetAttrs () const |
| const TMAGParam< TMAGNodeBern > & | GetParams () const |
| const TMAGNodeBern & | GetNodeAttr () const |
| const TFltV & | GetMuV () const |
| void | SetMuV (const TFltV &MuV) |
| void | GetMtxV (TMAGAffMtxV &MtxV) const |
| void | SetMtxV (const TMAGAffMtxV &MtxV) |
| PNGraph | GetGraph () |
| void | SetGraph (const PNGraph &GraphPt) |
| void | SetDebug (const bool _Debug) |
| void | SetAlgConf (const bool EStep=true, const bool MStep=true) |
| void | Init (const TFltV &MuV, const TMAGAffMtxV &AffMtxV) |
| void | RandomInit (const TFltV &MuV, const TMAGAffMtxV &AffMtxV, const int &Seed) |
| const TFltVV & | GetPhiVV () const |
| void | SetPhiVV (const TIntVV &AttrVV, const int KnownIds=0) |
| void | SetPhiVV (const TFltVV &AttrVV, const int KnownIds=0) |
| const double | GetInCoeff (const int &i, const int &j, const int &l, const int &A, const TMAGAffMtx &Theta) const |
| const double | GetAvgInCoeff (const int &i, const int &AId, const int &A, const TMAGAffMtx &Theta) const |
| const double | GetOutCoeff (const int &i, const int &j, const int &l, const int &A, const TMAGAffMtx &Theta) const |
| const double | GetAvgOutCoeff (const int &i, const int &AId, const int &A, const TMAGAffMtx &Theta) const |
| const double | GetProbPhi (const int &NId1, const int &NId2, const int &AId, const int &Attr1, const int &Attr2) const |
| const double | GetProbMu (const int &NId1, const int &NId2, const int &AId, const int &Attr1, const int &Attr2, const bool Left=false, const bool Right=false) const |
| const double | GetThetaLL (const int &NId1, const int &NId2, const int &AId) const |
| const double | GetAvgThetaLL (const int &NId1, const int &NId2, const int &AId, const bool Left=false, const bool Right=false) const |
| const double | GetSqThetaLL (const int &NId1, const int &NId2, const int &AId) const |
| const double | GetAvgSqThetaLL (const int &NId1, const int &NId2, const int &AId, const bool Left=false, const bool Right=false) const |
| const double | GetProdLinWeight (const int &NId1, const int &NId2) const |
| const double | GetAvgProdLinWeight (const int &NId1, const int &NId2, const bool Left=false, const bool Right=false) const |
| const double | GetProdSqWeight (const int &NId1, const int &NId2) const |
| const double | GetAvgProdSqWeight (const int &NId1, const int &NId2, const bool Left=false, const bool Right=false) const |
| const double | GetEstNoEdgeLL (const int &NId, const int &AId) const |
| const double | GradPhiMI (const double &x, const int &NId, const int &AId, const double &Lambda, const double &DeltaQ, const TFltVV &CntVV) |
| const double | ObjPhiMI (const double &x, const int &NId, const int &AId, const double &Lambda, const double &Q0, const double &Q1, const TFltVV &CntVV) |
| const double | UpdatePhiMI (const double &Lambda, const int &NId, const int &AId, double &Phi) |
| const double | UpdateApxPhiMI (const double &Lambda, const int &NId, const int &AId, double &Phi, TFltVV &ProdVV) |
| const double | UpdatePhi (const int &NId, const int &AId, double &Phi) |
| const double | UpdateMu (const int &AId) |
| const void | PrepareUpdateAffMtx (TFltVV &ProdVV, TFltVV &SqVV) |
| const void | PrepareUpdateApxAffMtx (TFltVV &ProdVV, TFltVV &SqVV) |
| const double | UpdateAffMtx (const int &AId, const double &LrnRate, const double &MaxGrad, const double &Lambda, TFltVV &ProdVV, TFltVV &SqVV, TMAGAffMtx &NewMtx) |
| const double | UpdateAffMtxV (const int &GradIter, const double &LrnRate, const double &MaxGrad, const double &Lambda, const int &NReal=0) |
| const void | GradAffMtx (const int &AId, const TFltVV &ProdVV, const TFltVV &SqVV, const TMAGAffMtx &CurMtx, TFltV &GradV) |
| const void | GradApxAffMtx (const int &AId, const TFltVV &ProdVV, const TFltVV &SqVV, const TMAGAffMtx &CurMtx, TFltV &GradV) |
| double | DoEStepOneIter (const TFltV &TrueMuV, TFltVV &NewPhi, const double &Lambda) |
| double | DoEStepApxOneIter (const TFltV &TrueMuV, TFltVV &NewPhi, const double &Lambda) |
| double | DoEStep (const TFltV &TrueMuV, const int &NIter, double &LL, const double &Lambda) |
| void | DoMStep (const int &GradIter, const double &LrnRate, const double &MaxGrad, const double &Lambda, const int &NReal=0) |
| void | DoEMAlg (const int &NStep, const int &NEstep, const int &NMstep, const double &LrnRate, const double &MaxGrad, const double &Lambda, const double &ReInit, const int &NReal=0) |
| void | CountAttr (TFltV &EstMuV) const |
| void | SortAttrOrdering (const TFltV &TrueMuV, TIntV &IndexV) const |
| const double | ComputeJointOneLL (const TIntVV &AttrVV) const |
| const double | ComputeJointLL (int NSample) const |
| const double | ComputeJointAdjLL (const TIntVV &AttrVV) const |
| const double | ComputeApxLL () const |
| const double | ComputeApxAdjLL () const |
| void | MakeCCDF (const TFltPrV &RawV, TFltPrV &CcdfV) |
| void | PlotProperties (const TStr &FNm) |
| void | NormalizeAffMtxV (TMAGAffMtxV &MtxV, const bool UseMu=false) |
| void | UnNormalizeAffMtxV (TMAGAffMtxV &MtxV, const bool UseMu=false) |
Static Public Member Functions | |
| static const double | ComputeMI (const TIntVV &AttrV, const int AId1, const int AId2) |
| static const double | ComputeMI (const TFltVV &AttrV, const int AId1, const int AId2) |
| static const double | ComputeMI (const TIntVV &AttrV) |
| static const double | ComputeMI (const TFltVV &AttrV) |
| TMAGFitBern::TMAGFitBern | ( | ) | [inline] |
| TMAGFitBern::TMAGFitBern | ( | const PNGraph & | G, |
| const int & | NAttrs | ||
| ) | [inline] |
| TMAGFitBern::TMAGFitBern | ( | const PNGraph & | G, |
| const TStr & | InitFNm | ||
| ) | [inline] |
| void TMAGFitBern::Clr | ( | ) | [inline] |
| const double TMAGFitBern::ComputeApxAdjLL | ( | ) | const |
| const double TMAGFitBern::ComputeApxLL | ( | ) | const |
| const double TMAGFitBern::ComputeJointAdjLL | ( | const TIntVV & | AttrVV | ) | const |
| const double TMAGFitBern::ComputeJointLL | ( | int | NSample | ) | const |
| const double TMAGFitBern::ComputeJointOneLL | ( | const TIntVV & | AttrVV | ) | const |
| const double TMAGFitBern::ComputeMI | ( | const TIntVV & | AttrV, |
| const int | AId1, | ||
| const int | AId2 | ||
| ) | [static] |
| const double TMAGFitBern::ComputeMI | ( | const TFltVV & | AttrV, |
| const int | AId1, | ||
| const int | AId2 | ||
| ) | [static] |
| const double TMAGFitBern::ComputeMI | ( | const TIntVV & | AttrV | ) | [static] |
| const double TMAGFitBern::ComputeMI | ( | const TFltVV & | AttrV | ) | [static] |
| void TMAGFitBern::CountAttr | ( | TFltV & | EstMuV | ) | const |
| void TMAGFitBern::DoEMAlg | ( | const int & | NStep, |
| const int & | NEstep, | ||
| const int & | NMstep, | ||
| const double & | LrnRate, | ||
| const double & | MaxGrad, | ||
| const double & | Lambda, | ||
| const double & | ReInit, | ||
| const int & | NReal = 0 |
||
| ) |
| double TMAGFitBern::DoEStep | ( | const TFltV & | TrueMuV, |
| const int & | NIter, | ||
| double & | LL, | ||
| const double & | Lambda | ||
| ) |
| double TMAGFitBern::DoEStepApxOneIter | ( | const TFltV & | TrueMuV, |
| TFltVV & | NewPhi, | ||
| const double & | Lambda | ||
| ) |
| double TMAGFitBern::DoEStepOneIter | ( | const TFltV & | TrueMuV, |
| TFltVV & | NewPhi, | ||
| const double & | Lambda | ||
| ) |
| void TMAGFitBern::DoMStep | ( | const int & | GradIter, |
| const double & | LrnRate, | ||
| const double & | MaxGrad, | ||
| const double & | Lambda, | ||
| const int & | NReal = 0 |
||
| ) |
| const int TMAGFitBern::GetAttrs | ( | ) | const [inline] |
| const double TMAGFitBern::GetAvgInCoeff | ( | const int & | i, |
| const int & | AId, | ||
| const int & | A, | ||
| const TMAGAffMtx & | Theta | ||
| ) | const |
| const double TMAGFitBern::GetAvgOutCoeff | ( | const int & | i, |
| const int & | AId, | ||
| const int & | A, | ||
| const TMAGAffMtx & | Theta | ||
| ) | const |
| const double TMAGFitBern::GetAvgProdLinWeight | ( | const int & | NId1, |
| const int & | NId2, | ||
| const bool | Left = false, |
||
| const bool | Right = false |
||
| ) | const |
| const double TMAGFitBern::GetAvgProdSqWeight | ( | const int & | NId1, |
| const int & | NId2, | ||
| const bool | Left = false, |
||
| const bool | Right = false |
||
| ) | const |
| const double TMAGFitBern::GetAvgSqThetaLL | ( | const int & | NId1, |
| const int & | NId2, | ||
| const int & | AId, | ||
| const bool | Left = false, |
||
| const bool | Right = false |
||
| ) | const |
| const double TMAGFitBern::GetAvgThetaLL | ( | const int & | NId1, |
| const int & | NId2, | ||
| const int & | AId, | ||
| const bool | Left = false, |
||
| const bool | Right = false |
||
| ) | const |
| const double TMAGFitBern::GetEstNoEdgeLL | ( | const int & | NId, |
| const int & | AId | ||
| ) | const |
| PNGraph TMAGFitBern::GetGraph | ( | ) | [inline] |
| const double TMAGFitBern::GetInCoeff | ( | const int & | i, |
| const int & | j, | ||
| const int & | l, | ||
| const int & | A, | ||
| const TMAGAffMtx & | Theta | ||
| ) | const |
| void TMAGFitBern::GetMtxV | ( | TMAGAffMtxV & | MtxV | ) | const [inline] |
| const TFltV& TMAGFitBern::GetMuV | ( | ) | const [inline] |
| const TMAGNodeBern& TMAGFitBern::GetNodeAttr | ( | ) | const [inline] |
| const int TMAGFitBern::GetNodes | ( | ) | const [inline] |
| const double TMAGFitBern::GetOutCoeff | ( | const int & | i, |
| const int & | j, | ||
| const int & | l, | ||
| const int & | A, | ||
| const TMAGAffMtx & | Theta | ||
| ) | const |
| const TMAGParam<TMAGNodeBern>& TMAGFitBern::GetParams | ( | ) | const [inline] |
| const TFltVV& TMAGFitBern::GetPhiVV | ( | ) | const [inline] |
| const double TMAGFitBern::GetProbMu | ( | const int & | NId1, |
| const int & | NId2, | ||
| const int & | AId, | ||
| const int & | Attr1, | ||
| const int & | Attr2, | ||
| const bool | Left = false, |
||
| const bool | Right = false |
||
| ) | const |
| const double TMAGFitBern::GetProbPhi | ( | const int & | NId1, |
| const int & | NId2, | ||
| const int & | AId, | ||
| const int & | Attr1, | ||
| const int & | Attr2 | ||
| ) | const |
| const double TMAGFitBern::GetProdLinWeight | ( | const int & | NId1, |
| const int & | NId2 | ||
| ) | const |
| const double TMAGFitBern::GetProdSqWeight | ( | const int & | NId1, |
| const int & | NId2 | ||
| ) | const |
| const double TMAGFitBern::GetSqThetaLL | ( | const int & | NId1, |
| const int & | NId2, | ||
| const int & | AId | ||
| ) | const |
| const double TMAGFitBern::GetThetaLL | ( | const int & | NId1, |
| const int & | NId2, | ||
| const int & | AId | ||
| ) | const |
| const void TMAGFitBern::GradAffMtx | ( | const int & | AId, |
| const TFltVV & | ProdVV, | ||
| const TFltVV & | SqVV, | ||
| const TMAGAffMtx & | CurMtx, | ||
| TFltV & | GradV | ||
| ) |
| const void TMAGFitBern::GradApxAffMtx | ( | const int & | AId, |
| const TFltVV & | ProdVV, | ||
| const TFltVV & | SqVV, | ||
| const TMAGAffMtx & | CurMtx, | ||
| TFltV & | GradV | ||
| ) |
| const double TMAGFitBern::GradPhiMI | ( | const double & | x, |
| const int & | NId, | ||
| const int & | AId, | ||
| const double & | Lambda, | ||
| const double & | DeltaQ, | ||
| const TFltVV & | CntVV | ||
| ) |
| void TMAGFitBern::Init | ( | const TFltV & | MuV, |
| const TMAGAffMtxV & | AffMtxV | ||
| ) |
| void TMAGFitBern::MakeCCDF | ( | const TFltPrV & | RawV, |
| TFltPrV & | CcdfV | ||
| ) |
| void TMAGFitBern::NormalizeAffMtxV | ( | TMAGAffMtxV & | MtxV, |
| const bool | UseMu = false |
||
| ) |
| const double TMAGFitBern::ObjPhiMI | ( | const double & | x, |
| const int & | NId, | ||
| const int & | AId, | ||
| const double & | Lambda, | ||
| const double & | Q0, | ||
| const double & | Q1, | ||
| const TFltVV & | CntVV | ||
| ) |
| void TMAGFitBern::PlotProperties | ( | const TStr & | FNm | ) |
| const void TMAGFitBern::PrepareUpdateAffMtx | ( | TFltVV & | ProdVV, |
| TFltVV & | SqVV | ||
| ) |
| const void TMAGFitBern::PrepareUpdateApxAffMtx | ( | TFltVV & | ProdVV, |
| TFltVV & | SqVV | ||
| ) |
| void TMAGFitBern::RandomInit | ( | const TFltV & | MuV, |
| const TMAGAffMtxV & | AffMtxV, | ||
| const int & | Seed | ||
| ) |
| void TMAGFitBern::SaveTxt | ( | const TStr & | FNm | ) |
| void TMAGFitBern::SetAlgConf | ( | const bool | EStep = true, |
| const bool | MStep = true |
||
| ) | [inline] |
| void TMAGFitBern::SetDebug | ( | const bool | _Debug | ) | [inline] |
| void TMAGFitBern::SetGraph | ( | const PNGraph & | GraphPt | ) |
| void TMAGFitBern::SetMtxV | ( | const TMAGAffMtxV & | MtxV | ) | [inline] |
| void TMAGFitBern::SetMuV | ( | const TFltV & | MuV | ) | [inline] |
| void TMAGFitBern::SetPhiVV | ( | const TIntVV & | AttrVV, |
| const int | KnownIds = 0 |
||
| ) |
| void TMAGFitBern::SetPhiVV | ( | const TFltVV & | AttrVV, |
| const int | KnownIds = 0 |
||
| ) | [inline] |
| void TMAGFitBern::SortAttrOrdering | ( | const TFltV & | TrueMuV, |
| TIntV & | IndexV | ||
| ) | const |
| void TMAGFitBern::UnNormalizeAffMtxV | ( | TMAGAffMtxV & | MtxV, |
| const bool | UseMu = false |
||
| ) |
| const double TMAGFitBern::UpdateAffMtx | ( | const int & | AId, |
| const double & | LrnRate, | ||
| const double & | MaxGrad, | ||
| const double & | Lambda, | ||
| TFltVV & | ProdVV, | ||
| TFltVV & | SqVV, | ||
| TMAGAffMtx & | NewMtx | ||
| ) |
| const double TMAGFitBern::UpdateAffMtxV | ( | const int & | GradIter, |
| const double & | LrnRate, | ||
| const double & | MaxGrad, | ||
| const double & | Lambda, | ||
| const int & | NReal = 0 |
||
| ) |
| const double TMAGFitBern::UpdateApxPhiMI | ( | const double & | Lambda, |
| const int & | NId, | ||
| const int & | AId, | ||
| double & | Phi, | ||
| TFltVV & | ProdVV | ||
| ) |
| const double TMAGFitBern::UpdateMu | ( | const int & | AId | ) |
| const double TMAGFitBern::UpdatePhi | ( | const int & | NId, |
| const int & | AId, | ||
| double & | Phi | ||
| ) |
| const double TMAGFitBern::UpdatePhiMI | ( | const double & | Lambda, |
| const int & | NId, | ||
| const int & | AId, | ||
| double & | Phi | ||
| ) |