Module Expr Str Import alias identifier Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias Import alias Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If CompareEq NameLoad Str body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr BinOpSub Num AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpSub Call NameLoad AttributeLoad NameLoad attr SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num ExtSlice Slice Index AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return ListLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Num Num NameLoad kwarg body Expr Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad Num Assign SubscriptStore SubscriptLoad NameLoad Index Str ExtSlice Index NameLoad Slice BinOpAdd BinOpAdd SubscriptLoad AttributeLoad NameLoad attr ExtSlice Index NameLoad Slice AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Index NameLoad Slice AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Assign SubscriptStore SubscriptLoad NameLoad Index Str Index NameLoad Call AttributeLoad NameLoad attr BinOpAdd Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd SubscriptLoad AttributeLoad NameLoad attr ExtSlice Index NameLoad Slice AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Index NameLoad Slice AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad BinOpMult Call AttributeLoad NameLoad attr BinOpAdd SubscriptLoad AttributeLoad NameLoad attr ExtSlice Index NameLoad Slice AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Index NameLoad Slice AttributeLoad NameLoad attr BinOpSub Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str ExtSlice Index NameLoad Slice SubscriptLoad AttributeLoad NameLoad attr ExtSlice Index NameLoad Slice AttributeLoad NameLoad attr Assign SubscriptStore SubscriptLoad NameLoad Index Str ExtSlice Index NameLoad Slice SubscriptLoad AttributeLoad NameLoad attr ExtSlice Index NameLoad Slice AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Str AugAssignSub NameStore SubscriptLoad Call AttributeLoad NameLoad attr keyword Num ExtSlice Slice Index AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Num Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword Num Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str BinOpSub Call NameLoad NameLoad SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr keyword Num ExtSlice Slice Index AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign SubscriptStore NameLoad Slice SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Str ExtSlice Slice Slice NameLoad For NameStore Call NameLoad AttributeLoad NameLoad attr body AugAssignAdd SubscriptStore NameLoad ExtSlice Slice SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad Num SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad Num Slice SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Expr Call AttributeLoad NameLoad attr NameLoad Assert Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index Str attr keyword Num Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign TupleStore NameStore NameStore AttributeLoad SubscriptLoad NameLoad Index Str attr Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str For NameStore Call NameLoad NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad Num Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad NameLoad Num AugAssignAdd SubscriptStore NameLoad ExtSlice Index NameLoad Slice SubscriptLoad NameLoad Index NameLoad AugAssignAdd SubscriptStore NameLoad ExtSlice Index NameLoad Slice SubscriptLoad NameLoad Index NameLoad AugAssignAdd SubscriptStore NameLoad ExtSlice Index NameLoad Slice SubscriptLoad SubscriptLoad NameLoad Index Str Index NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad keyword TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Str NameLoad keyword TupleLoad Str Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad NameLoad Index Str Slice AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str SubscriptLoad SubscriptLoad NameLoad Index Str Index Num keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpAdd BinOpMult NameLoad SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr BinOpMult BinOpSub Num NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr BinOpAdd BinOpMult NameLoad SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr BinOpMult BinOpSub Num NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignAdd NameStore BinOpAdd BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str If BoolOpAnd Call NameLoad NameLoad Str CompareEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr ListLoad Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMult AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryExcept body Assign TupleStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareEq Call AttributeLoad Call NameLoad NameLoad attr Str Num body Raise NameLoad If BoolOpAnd Call NameLoad NameLoad Str CompareEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad Return orelse Expr Call AttributeLoad NameLoad attr BinOpAdd Str Call NameLoad NameLoad Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad Num NameLoad NameLoad NameLoad NameLoad NameLoad kwarg body If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Return If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpSub AttributeLoad NameLoad attr Num orelse If CompareIsNot NameLoad NameLoad body Assert CompareEq AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr ListLoad NameLoad BinOpDiv Call AttributeLoad NameLoad attr NameLoad Num Assign NameStore BinOpDiv NameLoad Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpSub AttributeLoad NameLoad attr Num orelse Raise Call NameLoad Str Assert CompareEq AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Num Assert CompareLt Call NameLoad BinOpSub Call AttributeLoad NameLoad attr NameLoad Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpDiv Num NameLoad BinOpDiv AttributeLoad NameLoad attr BinOpSub Num NameLoad Assign AttributeStore NameLoad attr BinOpMult NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpMult NameLoad BinOpSub Num NameLoad Assert Call AttributeLoad NameLoad attr CompareGtE AttributeLoad NameLoad attr BinOpSub Num Num Assert Call AttributeLoad NameLoad attr CompareGtE AttributeLoad NameLoad attr BinOpSub AttributeLoad NameLoad attr Num Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpSub BinOpAdd BinOpSub BinOpAdd BinOpSub NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword Num Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword Num Assign NameStore BinOpMult BinOpAdd SubscriptLoad NameLoad Index Str BinOpMult Call AttributeLoad NameLoad attr BinOpAdd SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str ExtSlice Slice Index AttributeLoad NameLoad attr BinOpSub Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str AugAssignAdd NameStore BinOpMult BinOpAdd SubscriptLoad NameLoad Index Str BinOpMult Call AttributeLoad NameLoad attr BinOpAdd SubscriptLoad NameLoad Index Str SubscriptLoad SubscriptLoad NameLoad Index Str ExtSlice Slice Index AttributeLoad NameLoad attr BinOpSub Call AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Index AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword Num BinOpMult SubscriptLoad NameLoad Index Str BinOpSub Num Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword Num Call AttributeLoad NameLoad attr BinOpSub BinOpMult SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad NameLoad Index Str ExtSlice Slice Index AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str AugAssignAdd NameStore NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpSub BinOpAdd NameLoad Num Call AttributeLoad NameLoad attr Num BinOpAdd NameLoad Num Assign NameStore BinOpAdd Call NameLoad AttributeLoad NameLoad attr BinOpMult BinOpAdd NameLoad Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AugAssignAdd NameStore BinOpAdd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpSub BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num NameLoad Return BinOpAdd BinOpMult AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpSub Call NameLoad Call AttributeLoad NameLoad attr keyword Num Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr BinOpMult BinOpSub NameLoad Num AttributeLoad NameLoad attr Return BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr keyword Num Assign NameStore BinOpSub Call AttributeLoad NameLoad attr BinOpMult BinOpSub NameLoad Num SubscriptLoad NameLoad Index Str keyword Num Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword Num Return TupleLoad NameLoad SubscriptLoad NameLoad Slice Num SubscriptLoad NameLoad Index Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpSub Call NameLoad BinOpAdd AttributeLoad NameLoad attr Num Call NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpMult BinOpSub AttributeLoad NameLoad attr Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return BinOpAdd BinOpMult AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore BinOpSub BinOpSub Call NameLoad BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign NameStore BinOpAdd Call AttributeLoad NameLoad attr BinOpSub AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpSub AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr Return BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr keyword Num ExtSlice Slice Index AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad ExtSlice Slice Slice Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpSub BinOpSub AttributeLoad NameLoad attr NameLoad Num Assign NameStore BinOpAdd SubscriptLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad ExtSlice Slice Index AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Slice BinOpAdd NameLoad Num Assign NameStore BinOpSub Call NameLoad NameLoad NameLoad Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad Assign NameStore BinOpAdd SubscriptLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad ExtSlice Slice Index AttributeLoad NameLoad attr SubscriptLoad NameLoad ExtSlice Slice Slice BinOpAdd NameLoad Num Assign SubscriptStore NameLoad ExtSlice Index NameLoad Slice BinOpAdd NameLoad Num Call AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad keyword Num Assign SubscriptStore NameLoad ExtSlice Index NameLoad Slice BinOpAdd NameLoad Num Call AttributeLoad NameLoad attr NameLoad keyword Num Assign NameStore BinOpSub Call AttributeLoad NameLoad attr BinOpMult BinOpSub NameLoad Num NameLoad keyword Num Call AttributeLoad NameLoad attr Call NameLoad NameLoad keyword Num Assert CompareEq AttributeLoad NameLoad attr NameLoad Assign SubscriptStore NameLoad ExtSlice Index NameLoad Slice BinOpAdd NameLoad Num NameLoad Return TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Return BinOpMod NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A 
HDPModel.py
Bayesian nonparametric admixture model with unbounded number of components K

Attributes
-------
K        : # of components
alpha0   : scalar concentration param for global-level stick-breaking params v
gamma    : scalar conc. param for document-level mixture weights pi[d]

Local Parameters (document-specific)
--------
alphaPi : nDoc x K matrix, 
             row d has params for doc d's distribution pi[d] over the K topics
             q( pi[d] ) ~ Dir( alphaPi[d] )
E_logPi : nDoc x K matrix
             row d has E[ log pi[d] ]
DocTopicCount : nDoc x K matrix
                  entry d,k gives the expected number of times
                              that topic k is used in document d
word_variational : nDistinctWords x K matrix
                  row i has params for word i's Discrete distr over K topics

Global Parameters (shared across all documents)
--------
U1, U0   : K-length vectors, params for variational distribution over 
           stickbreaking fractions v1, v2, ... vK
            q(v[k]) ~ Beta(U1[k], U0[k])
 N/A numpy np N/A OptimizerForHDPFullVarModel OptimHDP AllocModel AllocModel bnpy.suffstats SuffStatBag util NumericUtil util digamma gammaln util EPS np2flatstr N/A logging N/A Log N/A N/A logging getLogger bnpy HDPRelAssortModel N/A AllocModel N/A __init__ N/A N/A self inferType priorDict N/A None N/A N/A N/A inferType EM N/A N/A N/A ValueError HDPModel cannot do EM. Only VB possible. N/A N/A self inferType inferType N/A N/A self K 0 N/A N/A N/A self set_prior priorDict N/A N/A self epsilon 0.001 N/A set_prior N/A N/A self PriorParamDict N/A N/A N/A N/A self alpha0 N/A PriorParamDict N/A alpha0 N/A N/A self gamma N/A PriorParamDict N/A gamma N/A set_helper_params N/A N/A self N/A N/A N/A  Set dependent attribs of this model, given the primary params U1, U0
          This includes expectations of various stickbreaking quantities
       N/A E N/A N/A OptimHDP _calcExpectations N/A self U1 N/A self U0 N/A N/A self Ebeta N/A E N/A beta N/A N/A self Elogv N/A E N/A logv N/A N/A self Elog1mv N/A E N/A log1-v N/A N/A self ElogEps1 N/A N/A np log N/A self epsilon N/A N/A self ElogEps0 N/A N/A np log N/A 1 N/A self epsilon N/A N/A self ElogTheta N/A N/A digamma N/A self theta N/A N/A digamma N/A N/A np sum N/A self theta axis 1 N/A N/A N/A N/A np newaxis N/A get_keys_for_memoized_local_params N/A N/A self N/A N/A N/A  Return list of string names of the LP fields
            that moVB needs to memoize across visits to a particular batch
         N/A N/A alphaPi N/A calc_local_params N/A N/A self Data LP nCoordAscentItersLP convThrLP doOnlySomeDocsLP N/A 20 0.01 False kwargs N/A N/A  Calculate document-specific quantities (E-step)
          Alternate updates to two terms until convergence
            (1) Approx posterior on topic-token assignment
            (2) Approx posterior on doc-topic probabilities

          Returns
          -------
          LP : local params dict, with fields
              alphaPi : nDoc x K+1 matrix, 
                 row d has params for doc d's Dirichlet over K+1 topics
              E_logPi : nDoc x K+1 matrix,
                 row d has doc d's expected log probability of each topic
              word_variational : nDistinctWords x K matrix
                 row i has params for word i's Discrete distr over K topics
              DocTopicCount : nDoc x K matrix

          Returns
          -------
          LP : local params dict, with fields
              edge_variational : nDistinctEdges x K matrix
                 row i has params for edge i's Discrete distr over K topics
              DocTopicCount : nDoc x K matrix
     N/A N/A LP N/A edge_variational N/A N/A np zeros N/A N/A Data nEdgeTotal N/A self K N/A N/A LP N/A E_logsoftev_NormConst N/A N/A np zeros N/A Data nEdgeTotal N/A N/A LP N/A E_logsoftev_pi_i N/A N/A np zeros N/A N/A Data nEdgeTotal N/A self K N/A N/A LP N/A E_logsoftev_pi_j N/A N/A np zeros N/A N/A Data nEdgeTotal N/A self K N/A E_logPiSumD N/A N/A np sum N/A self ElogTheta axis 1 N/A E_logEdgeLik N/A LP N/A E_logsoftev_EdgeLik N/A E_logEdgeEps N/A LP N/A E_logsoftev_EdgeEps N/A e N/A xrange N/A Data nEdgeTotal N/A N/A row_id N/A N/A Data edges N/A N/A e 0 N/A col_id N/A N/A Data edges N/A N/A e 1 N/A N/A N/A LP N/A edge_variational N/A N/A e N/A N/A N/A N/A N/A self ElogTheta N/A N/A row_id N/A N/A self K N/A N/A self ElogTheta N/A N/A col_id N/A N/A self K N/A E_logEdgeLik N/A N/A e N/A N/A N/A N/A LP N/A E_logsoftev_NormConst N/A e N/A N/A np sum N/A N/A N/A np exp N/A N/A N/A N/A self ElogTheta N/A N/A row_id N/A N/A self K N/A N/A self ElogTheta N/A N/A col_id N/A N/A self K N/A E_logEdgeEps N/A e N/A N/A N/A np exp N/A N/A N/A self ElogTheta N/A N/A row_id N/A N/A self K N/A N/A self ElogTheta N/A N/A col_id N/A N/A self K N/A N/A N/A np exp N/A E_logEdgeLik N/A N/A e N/A N/A N/A np exp N/A E_logEdgeEps N/A e N/A N/A N/A LP N/A E_logsoftev_pi_i N/A N/A e N/A N/A N/A self ElogTheta N/A N/A row_id N/A N/A self K N/A N/A N/A LP N/A E_logsoftev_pi_j N/A N/A e N/A N/A N/A self ElogTheta N/A N/A col_id N/A N/A self K N/A expEloglik N/A LP N/A edge_variational N/A expEloglik N/A N/A N/A expEloglik max axis 1 N/A N/A N/A N/A np newaxis N/A N/A N/A NumericUtil inplaceExpAndNormalizeRows expEloglik N/A N/A LP N/A E_logsoftev_EdgeVar expEloglik N/A N/A LP N/A E_logPiSumD E_logPiSumD N/A N/A LP N/A E_logPiSumK N/A N/A np sum N/A self ElogTheta axis 0 N/A N/A LP N/A E_pi_i_sum N/A N/A np sum N/A LP N/A E_logsoftev_pi_i axis 1 N/A N/A LP N/A E_pi_j_sum N/A N/A np sum N/A LP N/A E_logsoftev_pi_j axis 1 N/A LP N/A calc_ElogPi N/A N/A self LP N/A N/A N/A  Update expected log topic probability distr. for each document d
         N/A alph N/A LP N/A alphaPi N/A N/A LP N/A E_logPi N/A N/A digamma alph N/A N/A digamma N/A N/A alph sum axis 1 N/A N/A N/A N/A np newaxis N/A LP N/A get_edge_variational N/A N/A self Data LP N/A N/A N/A  Update and return edge-topic assignment variational parameters
         N/A ev N/A LP N/A edge_variational N/A K N/A N/A ev shape N/A 1 N/A N/A ev N/A N/A LP N/A E_logsoftev_WordsData N/A ElogPi N/A N/A LP N/A E_logPi N/A N/A N/A K N/A d N/A xrange N/A Data nDoc N/A N/A N/A ev N/A N/A N/A N/A Data doc_range N/A N/A d 0 N/A N/A Data doc_range N/A N/A d 1 N/A N/A ElogPi N/A N/A d N/A N/A N/A N/A NumericUtil inplaceExpAndNormalizeRows ev N/A N/A N/A np allclose N/A N/A N/A LP N/A word_variational sum axis 1 1 N/A LP N/A get_global_suff_stats N/A N/A self Data LP doPrecompEntropy doPrecompMergeEntropy mPairIDs N/A False False None N/A N/A  Theta is a global parameter here so we need to get its sufficient stats
          Sufficient statistics for these require precomputing certain terms

         N/A N/A E K N/A N/A LP N/A E_logsoftev_EdgeLik shape N/A N N/A Data nNodeTotal N/A SS N/A SuffStatBag K K D N N/A node_ss N/A N/A np zeros N/A N K N/A node_z_ss N/A N/A np zeros N/A N K N/A node_offset N/A N/A np zeros N/A E K N/A ev N/A LP N/A edge_variational N/A edgeEps N/A LP N/A E_logsoftev_EdgeEps N/A e N/A xrange E N/A N/A ii N/A N/A Data edges N/A N/A e 0 N/A jj N/A N/A Data edges N/A N/A e 1 N/A N/A node_ss N/A N/A ii N/A N/A ev N/A e N/A N/A node_ss N/A N/A jj N/A N/A ev N/A e N/A N/A node_z_ss N/A N/A ii N/A N/A N/A LP N/A E_logsoftev_EdgeEps N/A e N/A N/A N/A SS setField nNodeTotal N dims None N/A N/A N/A SS setField nEdgeTotal E dims None N/A N/A N/A SS setField node_ss node_ss dims N/A D K N/A N/A N/A SS setField node_z_ss node_z_ss dims N/A D K N/A N/A N/A SS setField sumLogPiActive N/A N/A LP N/A E_logPiSumK N/A N/A self K dims K N/A N/A N/A SS setField sumLogPiUnused N/A N/A LP N/A E_logPiSumK N/A -1 dims None N/A SS N/A update_global_params_VB N/A N/A self SS N/A kwargs N/A N/A  Update global parameters that control topic probabilities
            v[k] ~ Beta( U1[k], U0[k])

            Also update theta, which we consider a global parameter in the HDP relational model
            theta ~ Dirichlet(alpha
         N/A N/A self K N/A SS K N/A u N/A N/A self _estimate_u SS N/A N/A self U1 N/A u N/A N/A self K N/A N/A self U0 N/A u N/A N/A self K N/A theta N/A N/A self _estimate_theta SS N/A N/A self theta theta N/A N/A N/A self set_helper_params N/A update_global_params_soVB N/A N/A self SS rho N/A kwargs N/A N/A N/A N/A self K N/A SS K N/A u N/A N/A self _estimate_u SS N/A N/A self U1 N/A N/A rho N/A u N/A N/A self K N/A N/A 1 rho N/A self U1 N/A N/A self U0 N/A N/A rho N/A u N/A N/A self K N/A N/A 1 rho N/A self U0 N/A N/A N/A self set_helper_params N/A _estimate_theta N/A N/A self SS N/A kwargs N/A N/A  grabs update for theta, requires SS + calculation of normalization
        constant terms z_ij
         N/A theta N/A N/A np zeros N/A N/A SS nNodeTotal N/A SS K N/A theta N/A N/A N/A SS node_ss N/A SS node_z_ss N/A N/A self alpha0 N/A self Ebeta N/A theta N/A _estimate_u N/A N/A self SS N/A kwargs N/A N/A  Calculate best 2*K-vector u via L-BFGS gradient descent
              performing multiple tries in case of numerical issues
         N/A N/A N/A hasattr self U1 N/A N/A N/A self U1 size N/A self K N/A N/A initU N/A N/A np hstack N/A N/A self U1 N/A self U0 N/A N/A initU N/A N/A np hstack N/A N/A N/A np ones N/A self K N/A N/A self alpha0 N/A N/A np ones N/A self K N/A sumLogPi N/A N/A np hstack N/A N/A SS sumLogPiActive N/A SS sumLogPiUnused N/A N/A N/A N/A u fofu Info N/A N/A OptimHDP estimate_u_multiple_tries sumLogPi sumLogPi nDoc N/A SS nDoc gamma N/A self gamma alpha0 N/A self alpha0 initU initU N/A N/A N/A ValueError N/A error N/A N/A N/A N/A N/A N/A str error count FAILURE 0 N/A N/A error N/A N/A N/A hasattr self U1 N/A N/A N/A self U1 size N/A self K N/A N/A N/A N/A Log error N/A ***** Optim failed. Stay put.  N/A str error N/A N/A N/A N/A N/A Log error N/A ***** Optim failed. Stuck at prior.  N/A str error N/A u initU N/A u N/A set_global_params N/A N/A self hmodel U1 U0 K beta topic_prior Ebeta EbetaLeftover theta N/A None None None 0 None None None None None kwargs N/A N/A N/A hmodel None N/A N/A N/A self K N/A N/A hmodel allocModel K N/A N/A self U1 N/A N/A hmodel allocModel U1 N/A N/A self U0 N/A N/A hmodel allocModel U0 N/A N/A N/A self set_helper_params N/A N/A N/A N/A U1 None N/A U0 None N/A N/A N/A self U1 U1 N/A N/A self U0 U0 N/A N/A self K N/A U1 size N/A N/A N/A self set_helper_params N/A N/A N/A N/A Ebeta None N/A EbetaLeftover None N/A N/A Ebeta N/A N/A np squeeze Ebeta N/A EbetaLeftover N/A N/A np squeeze EbetaLeftover N/A beta N/A N/A np hstack N/A Ebeta EbetaLeftover N/A N/A self K N/A N/A beta size 1 N/A N/A N/A beta None N/A N/A N/A N/A beta size K N/A beta N/A N/A np hstack N/A beta N/A N/A N/A np min beta 100.0 N/A beta N/A beta N/A N/A np sum beta N/A N/A self K N/A N/A beta size 1 N/A N/A N/A ValueError Bad parameters. Vector beta not specified. N/A N/A N/A beta size N/A N/A self K 1 N/A N/A N/A abs N/A N/A N/A np sum beta 1.0 0.001 N/A vMean N/A N/A OptimHDP beta2v beta N/A vMass N/A N/A np maximum N/A 1.0 vMean N/A N/A self alpha0 N/A 1.0 vMean N/A N/A self U1 N/A vMass vMean N/A N/A self U0 N/A vMass N/A 1 vMean N/A N/A N/A np all N/A N/A self U1 N/A 1.0 1e-05 N/A N/A N/A np all N/A N/A self U0 N/A N/A self alpha0 1e-05 N/A N/A N/A N/A self U1 size N/A self K N/A N/A N/A N/A self U0 size N/A self K N/A N/A N/A theta None N/A beta None N/A N/A N/A self theta theta N/A N/A N/A self theta N/A N/A np ones N/A N/A self nNodeTotal N/A N/A self K 1 N/A N/A N/A self set_helper_params N/A calc_evidence N/A N/A self Data SS LP N/A N/A N/A  Calculate ELBO terms related to allocation model
         N/A E_logpV N/A N/A self E_logpV N/A E_logqV N/A N/A self E_logqV N/A E_logpPi N/A N/A self E_logpPi SS N/A E_logqPi N/A N/A self E_logqPi LP N/A E_logpZ N/A N/A self E_logpZ Data LP N/A E_logqZ N/A N/A self E_logqZ Data LP N/A elbo N/A N/A N/A N/A N/A E_logpPi E_logqPi E_logpZ E_logqZ E_logpV E_logqV N/A elbo N/A E_logpZ N/A N/A self Data LP N/A N/A N/A  This term is a bit complicated for the structured mean-field approach
        We have to calculate Z_ij, which we have in LP
         N/A E_pi_i_sum N/A N/A np sum N/A LP N/A E_logsoftev_pi_i axis 1 N/A E_pi_j_sum N/A N/A np sum N/A LP N/A E_logsoftev_pi_j axis 1 N/A E_logpZ N/A N/A N/A LP N/A edge_variational N/A N/A N/A np exp N/A N/A LP N/A E_logsoftev_pi_i N/A N/A LP N/A E_logsoftev_EdgeEps N/A N/A N/A N/A np newaxis N/A N/A N/A np exp N/A E_pi_j_sum N/A N/A N/A N/A np newaxis N/A N/A np exp N/A LP N/A E_logsoftev_pi_j N/A LP N/A E_logsoftev_pi_i N/A E_logpZ N/A N/A N/A LP N/A edge_variational N/A N/A N/A np exp N/A N/A LP N/A E_logsoftev_pi_j N/A N/A LP N/A E_logsoftev_EdgeEps N/A N/A N/A N/A np newaxis N/A N/A N/A np exp N/A E_pi_i_sum N/A N/A N/A N/A np newaxis N/A N/A np exp N/A LP N/A E_logsoftev_pi_i N/A LP N/A E_logsoftev_pi_j N/A N/A N/A np sum E_logpZ N/A E_logqZ N/A N/A self Data LP N/A N/A N/A  Returns K-length vector with E[ log q(Z) ] for each topic k
                r_{dwk} * E[ log r_{dwk} ]
            where z_{dw} ~ Discrete( r_dw1 , r_dw2, ... r_dwK )
         N/A E_logqZ N/A N/A N/A N/A N/A np sum N/A LP N/A E_logsoftev_epsilon_ii axis 1 N/A N/A np sum N/A LP N/A E_logsoftev_epsilon_jj axis 1 N/A N/A LP N/A E_logsoftev_EdgeEps N/A 1 N/A N/A np sum N/A LP N/A edge_variational axis 1 N/A N/A np sum N/A N/A N/A LP N/A E_logsoftev_EdgeLik N/A LP N/A edge_variational N/A N/A np log N/A N/A LP N/A E_logsoftev_NormConst N/A N/A N/A N/A np newaxis N/A N/A N/A np sum E_logqZ N/A E_logqZ_memo_terms_for_merge N/A N/A self Data LP mPairIDs N/A None N/A N/A  Returns KxK matrix 
         N/A wv N/A LP N/A word_variational N/A wv EPS N/A N/A mPairIDs None N/A N/A ElogqZMat N/A N/A NumericUtil calcRlogRdotv_allpairs wv N/A Data word_count N/A N/A ElogqZMat N/A N/A NumericUtil calcRlogRdotv_specificpairs wv N/A Data word_count mPairIDs N/A ElogqZMat N/A E_logpPi N/A N/A self SS N/A N/A N/A  Returns scalar value of E[ log p(PI | alpha0)]
     N/A K N/A SS K N/A kvec N/A N/A K 1 N/A N/A np arange 1 N/A K 1 N/A logDirNormC N/A N/A gammaln N/A self gamma N/A N/A K 1 N/A N/A np log N/A self gamma N/A logDirNormC N/A N/A N/A np sum N/A self Elogv N/A N/A np inner kvec N/A self Elog1mv N/A sumLogPi N/A N/A np hstack N/A N/A SS sumLogPiActive N/A SS sumLogPiUnused N/A logDirPDF N/A N/A np inner N/A N/A N/A self gamma N/A self Ebeta 1.0 sumLogPi N/A N/A N/A N/A SS nNodeTotal logDirNormC logDirPDF N/A E_logqPi N/A N/A self LP N/A N/A N/A  Returns scalar value of E[ log q(PI)],
          calculated directly from local param dict LP
     N/A alph N/A self theta N/A logDirNormC N/A N/A gammaln N/A N/A alph sum axis 1 N/A N/A np sum N/A gammaln alph axis 1 N/A logDirPDF N/A N/A np sum N/A N/A alph 1.0 N/A self ElogTheta N/A N/A N/A N/A np sum logDirNormC logDirPDF N/A E_logqPi_Memoized_from_LP N/A N/A self LP N/A N/A N/A  Returns three variables 
                logDirNormC (scalar),
                logqPiActive (length K)
                logqPiUnused (scalar)
                whose sum is equal to E[log q(PI)]
            when added to other results of this function from different batches,
                the sum is equal to E[log q(PI)] of the entire dataset
     N/A alph N/A LP N/A alphaPi N/A logDirNormC N/A N/A np sum N/A gammaln N/A N/A alph sum axis 1 N/A piEntropyVec N/A N/A N/A np sum N/A N/A alph 1.0 N/A LP N/A E_logPi axis 0 N/A N/A np sum N/A gammaln alph axis 0 N/A N/A logDirNormC N/A piEntropyVec N/A -1 N/A piEntropyVec N/A -1 N/A E_logpV N/A N/A self N/A N/A N/A logBetaNormC N/A N/A gammaln N/A N/A self alpha0 1.0 N/A gammaln N/A self alpha0 N/A logBetaPDF N/A N/A N/A self alpha0 1.0 N/A N/A np sum N/A self Elog1mv N/A N/A N/A N/A self K logBetaNormC logBetaPDF N/A E_logqV N/A N/A self N/A N/A N/A logBetaNormC N/A N/A N/A gammaln N/A N/A self U1 N/A self U0 N/A gammaln N/A self U0 N/A gammaln N/A self U1 N/A logBetaPDF N/A N/A N/A np inner N/A N/A self U1 1.0 N/A self Elogv N/A N/A np inner N/A N/A self U0 1.0 N/A self Elog1mv N/A N/A N/A N/A np sum logBetaNormC logBetaPDF N/A memo_elbo_terms_for_merge N/A N/A self LP N/A N/A N/A  Calculate some ELBO terms for merge proposals for current batch

        Returns
        --------
        ElogpZMat   : KxK matrix
        sumLogPiMat : KxK matrix
        ElogqPiMat  : KxK matrix
     N/A CMat N/A LP N/A DocTopicCount N/A alph N/A LP N/A alphaPi N/A digammaPerDocSum N/A N/A digamma N/A N/A alph sum axis 1 N/A N/A N/A N/A np newaxis N/A alph N/A alph N/A N/A N/A -1 N/A ElogpZMat N/A N/A np zeros N/A N/A self K N/A self K N/A sumLogPiMat N/A N/A np zeros N/A N/A self K N/A self K N/A ElogqPiMat N/A N/A np zeros N/A N/A self K N/A self K N/A jj N/A range N/A self K N/A N/A M N/A N/A N/A self K jj 1 N/A mergeAlph N/A N/A N/A alph N/A N/A N/A jj N/A N/A N/A N/A np newaxis N/A alph N/A N/A N/A N/A jj 1 N/A mergeElogPi N/A N/A digamma mergeAlph digammaPerDocSum N/A N/A N/A N/A mergeElogPi shape N/A 1 M N/A mergeCMat N/A N/A N/A CMat N/A N/A N/A jj N/A N/A N/A N/A np newaxis N/A CMat N/A N/A N/A N/A jj 1 N/A N/A ElogpZMat N/A N/A jj N/A N/A jj 1 N/A N/A np sum N/A mergeCMat mergeElogPi axis 0 N/A N/A sumLogPiMat N/A N/A jj N/A N/A jj 1 N/A N/A np sum mergeElogPi axis 0 N/A curElogqPiMat N/A N/A N/A np sum N/A N/A mergeAlph 1.0 mergeElogPi axis 0 N/A N/A np sum N/A gammaln mergeAlph axis 0 N/A N/A N/A curElogqPiMat size M N/A N/A ElogqPiMat N/A N/A jj N/A N/A jj 1 curElogqPiMat N/A N/A ElogpZMat sumLogPiMat ElogqPiMat N/A get_info_string N/A N/A self N/A N/A N/A  Returns human-readable name of this object N/A s HDP admixture model with K=%d comps. alpha=%.2f, gamma=%.2f N/A N/A s N/A N/A self K N/A self alpha0 N/A self gamma N/A to_dict N/A N/A self N/A N/A N/A N/A dict U1 N/A self U1 U0 N/A self U0 N/A from_dict N/A N/A self Dict N/A N/A N/A N/A self inferType N/A Dict N/A inferType N/A N/A self K N/A Dict N/A K N/A N/A self U1 N/A Dict N/A U1 N/A N/A self U0 N/A Dict N/A U0 N/A N/A N/A self set_helper_params N/A get_prior_dict N/A N/A self N/A N/A N/A N/A dict K N/A self K alpha0 N/A self alpha0 gamma N/A self gamma N/A N/A