Module Expr Str ImportFrom alias alias alias Import alias identifier Import alias identifier Import alias TryExcept body ImportFrom alias handlers ExceptHandler type NameLoad body Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str FunctionDef arguments args NameParam defaults body Assign TupleStore NameStore NameStore Call NameLoad ListComp TupleLoad AttributeLoad NameLoad attr NameLoad comprehension TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Return TupleLoad NameLoad NameLoad NameLoad decorator_list ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias alias ImportFrom alias Assign NameStore Dict Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Num Num body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str keyword Call AttributeLoad NameLoad attr Str Str keyword Str keyword ListLoad Str Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str keyword Num keyword NameLoad keyword Str Assign AttributeStore NameLoad attr NameStore Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad Num Num keyword NameLoad keyword Str Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Slice Index Num ListLoad Num Num Num Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad Num keyword NameLoad keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Num keyword NameLoad keyword Str Assign AttributeStore NameLoad attr NameStore Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Num keyword NameLoad keyword Str Assign SubscriptStore AttributeLoad NameLoad attr Index TupleLoad ListLoad Num Num Num Num Num Num ListLoad Num Num Num Num Num Num ListLoad Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad Num keyword NameLoad keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr NameLoad ExtSlice Slice Slice Index NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Num keyword NameLoad keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad keyword NameLoad keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr BinOpMult Call AttributeLoad NameLoad attr NameLoad Num keyword NameLoad Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str keyword NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index TupleLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index BinOpAdd Call AttributeLoad NameLoad attr NameLoad TupleLoad Call AttributeLoad NameLoad attr NameLoad keyword NameLoad ListLoad BinOpPow NameLoad Num BinOpPow NameLoad Num Num BinOpPow NameLoad Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Slice Index Num AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Slice Index Num attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad TupleLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Return Dict Str Str Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice NameLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad Call SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr ExtSlice Slice Index Num Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr ExtSlice Slice Index Num Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr ExtSlice Slice Index Num Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad Call SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr ExtSlice Slice Index Num keyword Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr ExtSlice Slice Index Num keyword Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr ExtSlice Slice Index Num keyword Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword Num Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Raise Call NameLoad Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword Num Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad Call SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad NameLoad attr Index Str keyword Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr ExtSlice Slice Index Num keyword Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr ExtSlice Slice Index Num keyword Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr ExtSlice Slice Index Num keyword Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword Num Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword BinOpBitOr Num Num Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Num Num body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Index Num Slice BinOpMult ListLoad AttributeLoad NameLoad attr NameLoad keyword Num keyword NameLoad keyword Str decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Str UnaryOpUSub AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr ExtSlice Slice Index Num Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Str UnaryOpUSub AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr ExtSlice Slice Index Num Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Str UnaryOpUSub AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr ExtSlice Slice Index Num Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword BinOpBitOr Num Num Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword BinOpBitOr BinOpBitOr BinOpBitOr Num Num Num Num Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad Call SubscriptLoad AttributeLoad NameLoad attr Index Str Num SubscriptLoad AttributeLoad NameLoad attr Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Index Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index TupleLoad BinOpSub NameLoad Num Num Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Index Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index TupleLoad BinOpSub NameLoad Num Num Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Num Num body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str keyword Call AttributeLoad NameLoad attr Str Str keyword Str keyword ListLoad Str Str Slice Num Assign SubscriptStore NameLoad Index Str Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str BinOpDiv SubscriptLoad NameLoad Index Str Num Assign AttributeStore NameLoad attr AttributeLoad Call AttributeLoad NameLoad attr NameLoad keyword Num keyword NameLoad keyword Str attr Assign AttributeStore NameLoad attr NameStore Num Assign AttributeStore NameLoad attr NameStore Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Num keyword NameLoad keyword Str Assign SubscriptStore AttributeLoad NameLoad attr ExtSlice Slice Slice Index Num ListLoad ListLoad Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad Num keyword NameLoad keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Num keyword NameLoad keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Num keyword NameLoad keyword Str Assign SubscriptStore AttributeLoad NameLoad attr Index TupleLoad ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num ListLoad Num Num Num Num Num Num Num Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad Num keyword NameLoad keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad Call AttributeLoad NameLoad attr NameLoad ExtSlice Slice Slice Index NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Num keyword NameLoad keyword Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr TupleLoad NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr BinOpMult Call AttributeLoad NameLoad attr NameLoad Num keyword NameLoad Assign TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str keyword NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index TupleLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad NameLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index TupleLoad ListLoad Num Num ListLoad Num Num ListLoad Num Num ListLoad NameLoad NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index TupleLoad Num Num Num BinOpPow NameLoad Num Assign SubscriptStore AttributeLoad NameLoad attr Index BinOpAdd Call AttributeLoad NameLoad attr NameLoad TupleLoad Call AttributeLoad NameLoad attr NameLoad keyword NameLoad ListLoad BinOpPow NameLoad Num BinOpPow NameLoad Num Num Num BinOpPow NameLoad Num BinOpPow NameLoad Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Slice Index Num AttributeLoad NameLoad attr AttributeLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Slice Index Num attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad TupleLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Return TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Return Dict Str Str Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Slice NameLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad Call SubscriptLoad AttributeLoad NameLoad attr Index Str Num SubscriptLoad AttributeLoad NameLoad attr Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr ExtSlice Slice Index Num Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr ExtSlice Slice Index Num Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr ExtSlice Slice Index Num Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr ExtSlice Slice Index Num Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword Num Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword BinOpBitOr Num Num Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad Num Num body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index BinOpMult ListLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad attr Num NameLoad keyword Num keyword NameLoad keyword Str Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Str UnaryOpUSub AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr ExtSlice Slice Index Num Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Str UnaryOpUSub AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr ExtSlice Slice Index Num Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Str UnaryOpUSub AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr ExtSlice Slice Index Num Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Slice SubscriptLoad AttributeLoad NameLoad attr Index Str UnaryOpUSub AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr ExtSlice Slice Index Num Num decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword BinOpBitOr Num Num Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword BinOpBitOr BinOpBitOr BinOpBitOr Num Num Num Num Assign AttributeStore NameLoad attr Num Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Call NameLoad Call SubscriptLoad AttributeLoad NameLoad attr Index Str Num SubscriptLoad AttributeLoad NameLoad attr Index Str Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Index Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index TupleLoad BinOpSub NameLoad Num Num Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Index Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index TupleLoad BinOpSub NameLoad Num Num Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Index Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index TupleLoad BinOpSub NameLoad Num Num Num Expr Call NameLoad SubscriptLoad SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Index Num SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index TupleLoad BinOpSub NameLoad Num Num Num decorator_list decorator_list
N/A N/A 
Tests for _statespace module

Author: Chad Fulton
License: Simplified-BSD

References
----------

Kim, Chang-Jin, and Charles R. Nelson. 1999.
"State-Space Models with Regime Switching:
Classical and Gibbs-Sampling Approaches with Applications".
MIT Press Books. The MIT Press.

Hamilton, James D. 1994.
Time Series Analysis.
Princeton, N.J.: Princeton University Press.
 __future__ division absolute_import print_function N/A numpy np N/A pandas pd N/A os N/A N/A scipy.linalg.blas find_best_blas_type N/A N/A N/A ImportError N/A N/A _type_conv N/A f d F D G s d c z z find_best_blas_type N/A N/A arrays N/A N/A N/A N/A dtype index N/A max N/A N/A N/A ar dtype i N/A N/A i ar N/A enumerate arrays N/A prefix N/A N/A _type_conv get N/A dtype char d N/A N/A prefix dtype None N/A statsmodels.tsa.statespace.sarimax SARIMAX statsmodels.tsa.statespace _statespace ss results results_kalman_filter numpy.testing assert_almost_equal assert_allclose nose.exc SkipTest N/A prefix_statespace_map N/A s d c z N/A ss sStatespace N/A ss dStatespace N/A ss cStatespace N/A ss zStatespace N/A prefix_kalman_filter_map N/A s d c z N/A ss sKalmanFilter N/A ss dKalmanFilter N/A ss cKalmanFilter N/A ss zKalmanFilter N/A current_path N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ Clark1987 N/A object N/A N/A 
    Clark's (1987) univariate unobserved components model of real GDP (as
    presented in Kim and Nelson, 1999)

    Test data produced using GAUSS code described in Kim and Nelson (1999) and
    found at http://econ.korea.ac.kr/~cjkim/SSMARKOV.htm

    See `results.results_kalman_filter` for more information.
     setup_class N/A N/A cls dtype conserve_memory loglikelihood_burn N/A float 0 0 N/A N/A N/A cls true N/A results_kalman_filter uc_uni N/A N/A cls true_states N/A N/A pd DataFrame N/A N/A cls true N/A states N/A data N/A N/A pd DataFrame N/A N/A cls true N/A data index N/A N/A pd date_range 1947-01-01 1995-07-01 freq QS columns N/A GDP N/A N/A data N/A lgdp N/A N/A np log N/A data N/A GDP N/A N/A cls conserve_memory conserve_memory N/A N/A cls loglikelihood_burn loglikelihood_burn N/A N/A cls obs N/A N/A np array N/A data N/A lgdp ndmin 2 dtype dtype order F N/A N/A cls k_endog k_endog 1 N/A N/A cls design N/A N/A np zeros N/A k_endog 4 1 dtype dtype order F N/A N/A N/A cls design N/A N/A N/A N/A 0 N/A 1 1 0 0 N/A N/A cls obs_intercept N/A N/A np zeros N/A k_endog 1 dtype dtype order F N/A N/A cls obs_cov N/A N/A np zeros N/A k_endog k_endog 1 dtype dtype order F N/A N/A cls k_states k_states 4 N/A N/A cls transition N/A N/A np zeros N/A k_states k_states 1 dtype dtype order F N/A N/A N/A cls transition N/A N/A N/A 0 0 1 1 2 3 N/A 0 3 1 2 1 3 N/A 0 0 0 0 0 0 N/A 1 1 0 0 1 1 N/A N/A cls state_intercept N/A N/A np zeros N/A k_states 1 dtype dtype order F N/A N/A cls selection N/A N/A np asfortranarray N/A N/A N/A np eye k_states N/A N/A N/A N/A None dtype dtype N/A N/A cls state_cov N/A N/A np zeros N/A k_states k_states 1 dtype dtype order F N/A N/A cls initial_state N/A N/A np zeros N/A k_states dtype dtype order F N/A N/A cls initial_state_cov N/A N/A np asfortranarray N/A N/A N/A np eye k_states 100 dtype dtype N/A N/A sigma_v sigma_e sigma_w phi_1 phi_2 N/A N/A np array N/A N/A cls true N/A parameters dtype dtype N/A N/A N/A cls transition N/A N/A N/A 1 1 N/A 1 2 N/A 0 0 N/A phi_1 phi_2 N/A N/A N/A cls state_cov N/A N/A N/A N/A np diag_indices k_states N/A N/A N/A np zeros k_states dtype int N/A N/A sigma_v 2 N/A sigma_e 2 0 N/A sigma_w 2 N/A N/A cls initial_state_cov N/A N/A np asfortranarray N/A N/A np dot N/A N/A np dot N/A N/A cls transition N/A N/A N/A N/A 0 N/A cls initial_state_cov N/A N/A N/A cls transition N/A N/A N/A N/A 0 T N/A classmethod init_filter N/A N/A cls N/A N/A N/A prefix N/A find_best_blas_type N/A N/A cls obs N/A klass N/A prefix_statespace_map N/A N/A prefix N/A 0 N/A model N/A klass N/A cls obs N/A cls design N/A cls obs_intercept N/A cls obs_cov N/A cls transition N/A cls state_intercept N/A cls selection N/A cls state_cov N/A N/A N/A model initialize_known N/A cls initial_state N/A cls initial_state_cov N/A klass N/A prefix_kalman_filter_map N/A N/A prefix N/A 0 N/A kfilter N/A klass model conserve_memory N/A cls conserve_memory loglikelihood_burn N/A cls loglikelihood_burn N/A N/A model kfilter N/A classmethod run_filter N/A N/A cls N/A N/A N/A N/A N/A cls filter N/A N/A loglike state N/A N/A N/A burn N/A N/A N/A np sum N/A N/A N/A cls filter loglikelihood N/A burn N/A N/A np array N/A N/A cls filter filtered_state N/A classmethod test_loglike N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A N/A self result N/A loglike N/A N/A self true N/A start N/A N/A self true N/A loglike 5 N/A test_filtered_state N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A N/A N/A self result N/A state N/A 0 N/A N/A N/A self true N/A start N/A N/A N/A self true_states iloc N/A N/A N/A 0 4 N/A N/A assert_almost_equal N/A N/A N/A N/A self result N/A state N/A 1 N/A N/A N/A self true N/A start N/A N/A N/A self true_states iloc N/A N/A N/A 1 4 N/A N/A assert_almost_equal N/A N/A N/A N/A self result N/A state N/A 3 N/A N/A N/A self true N/A start N/A N/A N/A self true_states iloc N/A N/A N/A 2 4 N/A N/A TestClark1987Single N/A Clark1987 N/A N/A 
    Basic single precision test for the loglikelihood and filtered states.
     setup_class N/A N/A cls N/A N/A N/A N/A SkipTest Not implemented N/A N/A N/A N/A super TestClark1987Single cls setup_class dtype N/A np float32 conserve_memory 0 N/A N/A N/A cls model N/A cls filter N/A N/A cls init_filter N/A N/A cls result N/A N/A cls run_filter N/A classmethod test_loglike N/A N/A self N/A N/A N/A N/A assert_allclose N/A N/A N/A self result N/A loglike N/A N/A self true N/A start N/A N/A self true N/A loglike rtol 0.001 N/A test_filtered_state N/A N/A self N/A N/A N/A N/A assert_allclose N/A N/A N/A N/A self result N/A state N/A 0 N/A N/A N/A self true N/A start N/A N/A N/A self true_states iloc N/A N/A N/A 0 atol 0.01 N/A N/A assert_allclose N/A N/A N/A N/A self result N/A state N/A 1 N/A N/A N/A self true N/A start N/A N/A N/A self true_states iloc N/A N/A N/A 1 atol 0.01 N/A N/A assert_allclose N/A N/A N/A N/A self result N/A state N/A 3 N/A N/A N/A self true N/A start N/A N/A N/A self true_states iloc N/A N/A N/A 2 atol 0.01 N/A N/A TestClark1987Double N/A Clark1987 N/A N/A 
    Basic double precision test for the loglikelihood and filtered states.
     setup_class N/A N/A cls N/A N/A N/A N/A N/A N/A super TestClark1987Double cls setup_class dtype float conserve_memory 0 N/A N/A N/A cls model N/A cls filter N/A N/A cls init_filter N/A N/A cls result N/A N/A cls run_filter N/A classmethod N/A TestClark1987SingleComplex N/A Clark1987 N/A N/A 
    Basic single precision complex test for the loglikelihood and filtered
    states.
     setup_class N/A N/A cls N/A N/A N/A N/A SkipTest Not implemented N/A N/A N/A N/A super TestClark1987SingleComplex cls setup_class dtype N/A np complex64 conserve_memory 0 N/A N/A N/A cls model N/A cls filter N/A N/A cls init_filter N/A N/A cls result N/A N/A cls run_filter N/A classmethod test_loglike N/A N/A self N/A N/A N/A N/A assert_allclose N/A N/A N/A self result N/A loglike N/A N/A self true N/A start N/A N/A self true N/A loglike rtol 0.001 N/A test_filtered_state N/A N/A self N/A N/A N/A N/A assert_allclose N/A N/A N/A N/A self result N/A state N/A 0 N/A N/A N/A self true N/A start N/A N/A N/A self true_states iloc N/A N/A N/A 0 atol 0.01 N/A N/A assert_allclose N/A N/A N/A N/A self result N/A state N/A 1 N/A N/A N/A self true N/A start N/A N/A N/A self true_states iloc N/A N/A N/A 1 atol 0.01 N/A N/A assert_allclose N/A N/A N/A N/A self result N/A state N/A 3 N/A N/A N/A self true N/A start N/A N/A N/A self true_states iloc N/A N/A N/A 2 atol 0.01 N/A N/A TestClark1987DoubleComplex N/A Clark1987 N/A N/A 
    Basic double precision complex test for the loglikelihood and filtered
    states.
     setup_class N/A N/A cls N/A N/A N/A N/A N/A N/A super TestClark1987DoubleComplex cls setup_class dtype complex conserve_memory 0 N/A N/A N/A cls model N/A cls filter N/A N/A cls init_filter N/A N/A cls result N/A N/A cls run_filter N/A classmethod N/A TestClark1987Conserve N/A Clark1987 N/A N/A 
    Memory conservation test for the loglikelihood and filtered states.
     setup_class N/A N/A cls N/A N/A N/A N/A N/A N/A super TestClark1987Conserve cls setup_class dtype float conserve_memory N/A 1 2 N/A N/A N/A cls model N/A cls filter N/A N/A cls init_filter N/A N/A cls result N/A N/A cls run_filter N/A classmethod N/A Clark1987Forecast N/A Clark1987 N/A N/A 
    Forecasting test for the loglikelihood and filtered states.
     setup_class N/A N/A cls dtype nforecast conserve_memory N/A float 100 0 N/A N/A N/A N/A N/A super Clark1987Forecast cls setup_class dtype conserve_memory N/A N/A cls nforecast nforecast N/A N/A cls _obs N/A cls obs N/A N/A cls obs N/A N/A np array N/A N/A np r_ N/A N/A N/A N/A cls obs N/A N/A 0 N/A N/A N/A N/A np nan nforecast ndmin 2 dtype dtype order F N/A classmethod test_filtered_state N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A N/A N/A self result N/A state N/A 0 N/A N/A N/A self true N/A start N/A N/A self nforecast N/A N/A N/A self true_states iloc N/A N/A N/A 0 4 N/A N/A assert_almost_equal N/A N/A N/A N/A self result N/A state N/A 1 N/A N/A N/A self true N/A start N/A N/A self nforecast N/A N/A N/A self true_states iloc N/A N/A N/A 1 4 N/A N/A assert_almost_equal N/A N/A N/A N/A self result N/A state N/A 3 N/A N/A N/A self true N/A start N/A N/A self nforecast N/A N/A N/A self true_states iloc N/A N/A N/A 2 4 N/A N/A TestClark1987ForecastDouble N/A Clark1987Forecast N/A N/A 
    Basic double forecasting test for the loglikelihood and filtered states.
     setup_class N/A N/A cls N/A N/A N/A N/A N/A N/A super TestClark1987ForecastDouble cls setup_class N/A N/A N/A cls model N/A cls filter N/A N/A cls init_filter N/A N/A cls result N/A N/A cls run_filter N/A classmethod N/A TestClark1987ForecastDoubleComplex N/A Clark1987Forecast N/A N/A 
    Basic double complex forecasting test for the loglikelihood and filtered
    states.
     setup_class N/A N/A cls N/A N/A N/A N/A N/A N/A super TestClark1987ForecastDoubleComplex cls setup_class dtype complex N/A N/A N/A cls model N/A cls filter N/A N/A cls init_filter N/A N/A cls result N/A N/A cls run_filter N/A classmethod N/A TestClark1987ForecastConserve N/A Clark1987Forecast N/A N/A 
    Memory conservation forecasting test for the loglikelihood and filtered
    states.
     setup_class N/A N/A cls N/A N/A N/A N/A N/A N/A super TestClark1987ForecastConserve cls setup_class dtype float conserve_memory N/A 1 2 N/A N/A N/A cls model N/A cls filter N/A N/A cls init_filter N/A N/A cls result N/A N/A cls run_filter N/A classmethod N/A TestClark1987ConserveAll N/A Clark1987 N/A N/A 
    Memory conservation forecasting test for the loglikelihood and filtered
    states.
     setup_class N/A N/A cls N/A N/A N/A N/A N/A N/A super TestClark1987ConserveAll cls setup_class dtype float conserve_memory N/A N/A N/A 1 2 4 8 N/A N/A cls loglikelihood_burn N/A N/A cls true N/A start N/A N/A N/A cls model N/A cls filter N/A N/A cls init_filter N/A N/A cls result N/A N/A cls run_filter N/A classmethod test_loglike N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A N/A self result N/A loglike 0 N/A N/A self true N/A loglike 5 N/A test_filtered_state N/A N/A self N/A N/A N/A end N/A N/A N/A self true_states shape N/A 0 N/A N/A assert_almost_equal N/A N/A N/A N/A self result N/A state N/A 0 N/A -1 N/A N/A N/A self true_states iloc N/A N/A N/A end 1 0 4 N/A N/A assert_almost_equal N/A N/A N/A N/A self result N/A state N/A 1 N/A -1 N/A N/A N/A self true_states iloc N/A N/A N/A end 1 1 4 N/A N/A Clark1989 N/A object N/A N/A 
    Clark's (1989) bivariate unobserved components model of real GDP (as
    presented in Kim and Nelson, 1999)

    Tests two-dimensional observation data.

    Test data produced using GAUSS code described in Kim and Nelson (1999) and
    found at http://econ.korea.ac.kr/~cjkim/SSMARKOV.htm

    See `results.results_kalman_filter` for more information.
     setup_class N/A N/A cls dtype conserve_memory loglikelihood_burn N/A float 0 0 N/A N/A N/A cls true N/A results_kalman_filter uc_bi N/A N/A cls true_states N/A N/A pd DataFrame N/A N/A cls true N/A states N/A data N/A N/A N/A pd DataFrame N/A N/A cls true N/A data index N/A N/A pd date_range 1947-01-01 1995-07-01 freq QS columns N/A GDP UNEMP N/A 4 N/A N/A data N/A GDP N/A N/A np log N/A data N/A GDP N/A N/A data N/A UNEMP N/A N/A data N/A UNEMP 100 N/A N/A cls obs N/A N/A N/A np array data ndmin 2 dtype dtype order C T N/A N/A cls k_endog k_endog 2 N/A N/A cls k_states k_states 6 N/A N/A cls conserve_memory conserve_memory N/A N/A cls loglikelihood_burn loglikelihood_burn N/A N/A cls design N/A N/A np zeros N/A k_endog k_states 1 dtype dtype order F N/A N/A N/A cls design N/A N/A N/A N/A 0 N/A N/A 1 1 0 0 0 0 N/A 0 0 0 0 0 1 N/A N/A cls obs_intercept N/A N/A np zeros N/A k_endog 1 dtype dtype order F N/A N/A cls obs_cov N/A N/A np zeros N/A k_endog k_endog 1 dtype dtype order F N/A N/A cls transition N/A N/A np zeros N/A k_states k_states 1 dtype dtype order F N/A N/A N/A cls transition N/A N/A N/A 0 0 1 1 2 3 4 5 N/A 0 4 1 2 1 2 4 5 N/A 0 0 0 0 0 0 0 0 N/A 1 1 0 0 1 1 1 1 N/A N/A cls state_intercept N/A N/A np zeros N/A k_states 1 dtype dtype order F N/A N/A cls selection N/A N/A np asfortranarray N/A N/A N/A np eye k_states N/A N/A N/A N/A None dtype dtype N/A N/A cls state_cov N/A N/A np zeros N/A k_states k_states 1 dtype dtype order F N/A N/A cls initial_state N/A N/A np zeros N/A k_states dtype dtype N/A N/A cls initial_state_cov N/A N/A np asfortranarray N/A N/A N/A np eye k_states 100 dtype dtype N/A N/A sigma_v sigma_e sigma_w sigma_vl sigma_ec phi_1 phi_2 alpha_1 alpha_2 alpha_3 N/A N/A np array N/A N/A cls true N/A parameters dtype dtype N/A N/A N/A cls design N/A N/A N/A 1 1 1 N/A 1 2 3 N/A 0 0 0 N/A alpha_1 alpha_2 alpha_3 N/A N/A N/A cls transition N/A N/A N/A 1 1 N/A 1 2 N/A 0 0 N/A phi_1 phi_2 N/A N/A N/A cls obs_cov N/A N/A 1 1 0 N/A sigma_ec 2 N/A N/A N/A cls state_cov N/A N/A N/A N/A np diag_indices k_states N/A N/A N/A np zeros k_states dtype int N/A N/A sigma_v 2 N/A sigma_e 2 0 0 N/A sigma_w 2 N/A sigma_vl 2 N/A N/A cls initial_state_cov N/A N/A np asfortranarray N/A N/A np dot N/A N/A np dot N/A N/A cls transition N/A N/A N/A N/A 0 N/A cls initial_state_cov N/A N/A N/A cls transition N/A N/A N/A N/A 0 T N/A classmethod init_filter N/A N/A cls N/A N/A N/A prefix N/A find_best_blas_type N/A N/A cls obs N/A klass N/A prefix_statespace_map N/A N/A prefix N/A 0 N/A model N/A klass N/A cls obs N/A cls design N/A cls obs_intercept N/A cls obs_cov N/A cls transition N/A cls state_intercept N/A cls selection N/A cls state_cov N/A N/A N/A model initialize_known N/A cls initial_state N/A cls initial_state_cov N/A klass N/A prefix_kalman_filter_map N/A N/A prefix N/A 0 N/A kfilter N/A klass model conserve_memory N/A cls conserve_memory loglikelihood_burn N/A cls loglikelihood_burn N/A N/A model kfilter N/A classmethod run_filter N/A N/A cls N/A N/A N/A N/A N/A cls filter N/A N/A loglike state N/A N/A N/A burn N/A N/A N/A np sum N/A N/A N/A cls filter loglikelihood N/A burn N/A N/A np array N/A N/A cls filter filtered_state N/A classmethod test_loglike N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A N/A self result N/A loglike 0 N/A N/A self true N/A loglike 2 N/A test_filtered_state N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A N/A N/A self result N/A state N/A 0 N/A N/A N/A self true N/A start N/A N/A N/A self true_states iloc N/A N/A N/A 0 4 N/A N/A assert_almost_equal N/A N/A N/A N/A self result N/A state N/A 1 N/A N/A N/A self true N/A start N/A N/A N/A self true_states iloc N/A N/A N/A 1 4 N/A N/A assert_almost_equal N/A N/A N/A N/A self result N/A state N/A 4 N/A N/A N/A self true N/A start N/A N/A N/A self true_states iloc N/A N/A N/A 2 4 N/A N/A assert_almost_equal N/A N/A N/A N/A self result N/A state N/A 5 N/A N/A N/A self true N/A start N/A N/A N/A self true_states iloc N/A N/A N/A 3 4 N/A N/A TestClark1989 N/A Clark1989 N/A N/A 
    Basic double precision test for the loglikelihood and filtered
    states with two-dimensional observation vector.
     setup_class N/A N/A cls N/A N/A N/A N/A N/A N/A super TestClark1989 cls setup_class dtype float conserve_memory 0 N/A N/A N/A cls model N/A cls filter N/A N/A cls init_filter N/A N/A cls result N/A N/A cls run_filter N/A classmethod N/A TestClark1989Conserve N/A Clark1989 N/A N/A 
    Memory conservation test for the loglikelihood and filtered states with
    two-dimensional observation vector.
     setup_class N/A N/A cls N/A N/A N/A N/A N/A N/A super TestClark1989Conserve cls setup_class dtype float conserve_memory N/A 1 2 N/A N/A N/A cls model N/A cls filter N/A N/A cls init_filter N/A N/A cls result N/A N/A cls run_filter N/A classmethod N/A Clark1989Forecast N/A Clark1989 N/A N/A 
    Memory conservation test for the loglikelihood and filtered states with
    two-dimensional observation vector.
     setup_class N/A N/A cls dtype nforecast conserve_memory N/A float 100 0 N/A N/A N/A N/A N/A super Clark1989Forecast cls setup_class dtype conserve_memory N/A N/A cls nforecast nforecast N/A N/A cls _obs N/A cls obs N/A N/A cls obs N/A N/A np array N/A N/A np c_ N/A N/A N/A cls _obs N/A N/A N/A N/A np r_ N/A N/A N/A N/A np nan N/A np nan nforecast reshape 2 nforecast ndmin 2 dtype dtype order F N/A N/A N/A cls model N/A cls filter N/A N/A cls init_filter N/A N/A cls result N/A N/A cls run_filter N/A classmethod test_filtered_state N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A N/A N/A self result N/A state N/A 0 N/A N/A N/A self true N/A start N/A N/A self nforecast N/A N/A N/A self true_states iloc N/A N/A N/A 0 4 N/A N/A assert_almost_equal N/A N/A N/A N/A self result N/A state N/A 1 N/A N/A N/A self true N/A start N/A N/A self nforecast N/A N/A N/A self true_states iloc N/A N/A N/A 1 4 N/A N/A assert_almost_equal N/A N/A N/A N/A self result N/A state N/A 4 N/A N/A N/A self true N/A start N/A N/A self nforecast N/A N/A N/A self true_states iloc N/A N/A N/A 2 4 N/A N/A assert_almost_equal N/A N/A N/A N/A self result N/A state N/A 5 N/A N/A N/A self true N/A start N/A N/A self nforecast N/A N/A N/A self true_states iloc N/A N/A N/A 3 4 N/A N/A TestClark1989ForecastDouble N/A Clark1989Forecast N/A N/A 
    Basic double forecasting test for the loglikelihood and filtered states.
     setup_class N/A N/A cls N/A N/A N/A N/A N/A N/A super TestClark1989ForecastDouble cls setup_class N/A N/A N/A cls model N/A cls filter N/A N/A cls init_filter N/A N/A cls result N/A N/A cls run_filter N/A classmethod N/A TestClark1989ForecastDoubleComplex N/A Clark1989Forecast N/A N/A 
    Basic double complex forecasting test for the loglikelihood and filtered
    states.
     setup_class N/A N/A cls N/A N/A N/A N/A N/A N/A super TestClark1989ForecastDoubleComplex cls setup_class dtype complex N/A N/A N/A cls model N/A cls filter N/A N/A cls init_filter N/A N/A cls result N/A N/A cls run_filter N/A classmethod N/A TestClark1989ForecastConserve N/A Clark1989Forecast N/A N/A 
    Memory conservation forecasting test for the loglikelihood and filtered
    states.
     setup_class N/A N/A cls N/A N/A N/A N/A N/A N/A super TestClark1989ForecastConserve cls setup_class dtype float conserve_memory N/A 1 2 N/A N/A N/A cls model N/A cls filter N/A N/A cls init_filter N/A N/A cls result N/A N/A cls run_filter N/A classmethod N/A TestClark1989ConserveAll N/A Clark1989 N/A N/A 
    Memory conservation forecasting test for the loglikelihood and filtered
    states.
     setup_class N/A N/A cls N/A N/A N/A N/A N/A N/A super TestClark1989ConserveAll cls setup_class dtype float conserve_memory N/A N/A N/A 1 2 4 8 N/A N/A cls loglikelihood_burn 0 N/A N/A N/A cls model N/A cls filter N/A N/A cls init_filter N/A N/A cls result N/A N/A cls run_filter N/A classmethod test_loglike N/A N/A self N/A N/A N/A N/A assert_almost_equal N/A N/A N/A self result N/A loglike 0 N/A N/A self true N/A loglike 2 N/A test_filtered_state N/A N/A self N/A N/A N/A end N/A N/A N/A self true_states shape N/A 0 N/A N/A assert_almost_equal N/A N/A N/A N/A self result N/A state N/A 0 N/A -1 N/A N/A N/A self true_states iloc N/A N/A N/A end 1 0 4 N/A N/A assert_almost_equal N/A N/A N/A N/A self result N/A state N/A 1 N/A -1 N/A N/A N/A self true_states iloc N/A N/A N/A end 1 1 4 N/A N/A assert_almost_equal N/A N/A N/A N/A self result N/A state N/A 4 N/A -1 N/A N/A N/A self true_states iloc N/A N/A N/A end 1 2 4 N/A N/A assert_almost_equal N/A N/A N/A N/A self result N/A state N/A 5 N/A -1 N/A N/A N/A self true_states iloc N/A N/A N/A end 1 3 4 N/A N/A