ModelFlowIb 1.46__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,151 @@
1
+ Metadata-Version: 2.1
2
+ Name: ModelFlowIb
3
+ Version: 1.46
4
+ Summary: A tool to solve and manage dynamic economic models
5
+ Home-page: https://https://github.com/IbHansen/ModelFlow2
6
+ Author: Ib Hansen
7
+ Author-email: Ib.Hansen.Iv@gmail.com
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Requires-Python: >=3.7
11
+ Description-Content-Type: text/markdown
12
+ Requires-Dist: pandas
13
+ Requires-Dist: matplotlib
14
+ Requires-Dist: Seaborn
15
+ Requires-Dist: sympy
16
+ Requires-Dist: jupyter
17
+ Requires-Dist: ipywidgets
18
+ Requires-Dist: numpy
19
+ Requires-Dist: networkx
20
+ Requires-Dist: tqdm
21
+ Requires-Dist: scipy
22
+ Requires-Dist: numexpr
23
+ Requires-Dist: bottleneck
24
+ Requires-Dist: XLsxWriter
25
+ Requires-Dist: pyarrow
26
+ Requires-Dist: tabulate
27
+ Requires-Dist: openpyxl
28
+ Requires-Dist: xarray
29
+ Requires-Dist: setuptools
30
+ Requires-Dist: wheel
31
+ Requires-Dist: cvxopt
32
+ Requires-Dist: numba
33
+ Requires-Dist: jupyter-contrib-nbextensions
34
+ Requires-Dist: rise
35
+ Requires-Dist: ipysheet
36
+ Requires-Dist: shiny
37
+ Requires-Dist: shinywidgets
38
+
39
+ # ModelFlow
40
+ A Python toolkit to manage models
41
+
42
+ The easy way to start is here [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/IbHansen/modelflow/master).
43
+
44
+ This will start **ModelFlow** as an online Jupyter notebook. Select one of the notebooks (files with the extension .ipynb). Some of the
45
+ notebooks are ModelFlow related. Other implement different model
46
+
47
+ - FRBUS will start the FRB/US model from the Federal reserve board.
48
+ - Q-JEM will start the Quarterly Japanese Economic Model from Bank of Japan
49
+ - ADAM will start the Anual Danish Aggregate Model for the Danish Statistical agency.
50
+ - Solow will implement a simple textybook Solow model.
51
+
52
+ You can also look at the python files of the system. Located at the **modelflow/** folder
53
+
54
+ Alternative look at the *getting started* section later in this file. It explains how to run ModelFlow localy.
55
+
56
+ The **Pandas** library is a great library to handle all kinds of datamanipulation and transformations.
57
+
58
+ However when it comes to models which contains lags or models which requires solving simultanous equations, Pandas is not quite helpful.
59
+
60
+ ModelFlow extends Pandas to handle a range of such models. And they can be large.
61
+
62
+ It requires you to specify the *model* specified as equations (the **business logic**) and place the *data* in a Pandas **DataFrame**. ModelFlow allows the model to meet the data and return the result as a new DataFrame.
63
+
64
+ A number of **analytical tools for model and result analytic** helps to understand the model and its results.
65
+
66
+ The user can **extend and modify the tools** to her or his needs.
67
+
68
+ **Onboarding models and combining models from different sources**. Creating a Macro prudential model often entails recycling several models specified in different ways: Excel, Latex, Dynare, Python or other languages. Python's ecosystem makes it possible to transform many different models into ModelFlow models or to wrap them into functions which can be called from ModelFlow models.
69
+
70
+ **Models can be specified in a high level Business logic language (a Domain Specific language)**. This allows the formulation of a model in a concise and expressive language which is close to the economic of the model. The user can concentrate on the economic or financial content - not the coding of the solution. The code for solving the model is generated by the tool. Then you can *solve the
71
+ simultaneous* (or *non-simultaneous* model) in an efficient way.
72
+
73
+ ## Introduction
74
+
75
+ **ModelFlow is written in Python**. Python comes "batteries included" and is
76
+ the basis of a very rich ecosystem, which consists of a wide array of
77
+ libraries. ModelFlow is just another library. It supplements the existing
78
+ libraries regarding modeling language and solving and allows the use of
79
+ Python as a model management framework.
80
+
81
+ **Data handling and wrangling is done in the Pandas library**. This
82
+ library is the Swiss army knife of data science in Python. It can import and export data to most systems and it is very powerful in manipulating and transforming data.
83
+ The core
84
+ element of Pandas is the *Dataframe*. A Dataframe is a two-dimensional
85
+ tabular data structure. Each *column* consists of cells of the same type
86
+ -- it can be a number, a string, a matrix or another Python data object.This includes matrices and other dataframes. Each *row is indexed.* The index can basically be any type of variable
87
+ including dates, which is especially relevant for economic and financial models.
88
+
89
+ **ModelFlow gives the user tools for more than solving models**. This
90
+ includes:
91
+
92
+ - *Visualization* and comparison of results
93
+
94
+ - *Integration* of models from different sources
95
+
96
+ - *Analyze the logical structure of a model*. By applying graph theory,
97
+ ModelFlow can find data lineage, find a suitable calculating sequence and trace
98
+ causes of changes through the calculations.
99
+
100
+ - *Inverting* the model to calculating the necessary instruments to
101
+ achieve a desired target.
102
+
103
+ - Calculating the *attributions* from input to the results of a model.
104
+
105
+ - Calculating the *attribution* from input to the result of each
106
+ formula.
107
+
108
+ - Finding and calculating partial *derivatives* of formulas
109
+
110
+ - *Integrating user defined python functions* in the Business logic
111
+ language (like optimization, calculating risk weights or to make a matrices consistent with the RAS algorithm )
112
+
113
+ - *Wrap matlab* models so they can be used in the Business logic
114
+ language.
115
+
116
+ - *Speed up* solving using "Just in time compilation"
117
+
118
+ - Analyze the model structure through tools from graph theory
119
+
120
+ - Handle *large models.* 1,000,000 formulas is not a problem.
121
+
122
+ - Integrate model management in Jupyter notebooks for *agile and user
123
+ friendly model use*
124
+
125
+
126
+ **The core code of ModelFlow is small and
127
+ documented.** Thus it can easily be modified and expanded to the specific need of the user. *ModelFlow is a toolset*. It can handle models, which conform to the tools.
128
+
129
+ If you need a feature or have a model which can't be handled in ModelFlow,
130
+ you are encouraged to improve ModelFlow. Please share the
131
+ improvement, other users may have the same need, or can be inspired by
132
+ your work.
133
+
134
+ Also bear in mind that ModelFlow is experimental. It is provided ”as is”, without any representation or warranty of any kind either express or implied.
135
+
136
+ ## Getting started
137
+
138
+ You need Python 3.7+ with asssociated libraries. The easy way is to install Anaconda Python is to download the distribution from [https://www.anaconda.com/distribution](https://www.anaconda.com/distribution)
139
+
140
+ Now you can install ModelFlow by running a command window from the Anaconda prompt and execute theese commands
141
+ ```
142
+ conda install modelflow -c ibh -c defaults -c conda-forge
143
+ ```
144
+ You will find the anaconda prompt by searching "anaconda" in the start menu search field
145
+
146
+ Try out one of the workbooks. to do this you:
147
+ ```
148
+ click on the Adaconda prompth in the Anaconda folder
149
+ cd <The location you have downloaded the workbooks>
150
+ jupyter notebook
151
+ ```
@@ -0,0 +1,48 @@
1
+ modelBLfunk.py,sha256=pfE6rjX__EUJOFo3DTlLQBiKv1PWLFI9raydykqdfTY,1623
2
+ model_Excel.py,sha256=6euaoI_x4BFFAVnTbrrUUv6gBnNRiQ_Nk6aNtAvBl20,11852
3
+ model_cvx.py,sha256=-kKaf4_CJpB1RkPPGk5sQC7-Ri8vJw2cgWWx8tJ4ZEU,5832
4
+ model_doable.py,sha256=-C6eqhAm6gq3qVtbrbpTpsANbbO_0bhw4bqRwIkmiAw,983
5
+ model_dynare.py,sha256=NTW6AxVf_knIk3PngP1O0PF7hP0u7_FtUMg_95fNeaM,7693
6
+ model_financial_stability.py,sha256=3Wl20LV0T7EDcbf7THu2XXun-ParERaFatEGWG2EyKM,3084
7
+ model_ifrs9.py,sha256=7wEoF8siKKVKnkPVoi12Bxl6ypOIrf3VbGJAbaO3Ct8,2949
8
+ model_latex.py,sha256=1WKR4cfmNuQVxPunz6k4ws5ni7N3BntF8sRF4yDxjLg,18400
9
+ model_latex_class.py,sha256=eZtd7NiD6Bg5c7R4op3E0kITjWgJCrG1eRUAdKIUH74,16932
10
+ model_latex_classpy.py,sha256=z_QmHQ3CAfO9NIToXYjfbXdk9To3mPHdhlPuY8j43d8,14040
11
+ model_run_numba.py,sha256=mIKcTVYZlVZFcsxnNF0a3LNNiOQwGnB0uo-drzj4V3U,251
12
+ modelclass.py,sha256=pWDshVapMYqV8vu5AwoM1T6G1qS1IyYxG-SUzXrYp3Y,319620
13
+ modelclass2.py,sha256=X4onyj1w_LT09MLAs0C1z5tpM8WvD934GaTymXA0CDY,19550
14
+ modeldash.py,sha256=Nns5JqAP5xjrdkD5752w2m9hwdm0F1mSi9RUNR0ZZRY,10641
15
+ modeldashboot.py,sha256=rSyg5aYgRjVeJNHTGbE2X_1bvUmpW_sK-oYcDCrb_gU,7516
16
+ modeldashsidebar.py,sha256=cByFz-49ozDGm6DC2NzrzTBjwKxNNkTlYBYGs5uyeng,18201
17
+ modeldekom.py,sha256=vAhKDSgS9jRTTnq74HLWTgl_l_xZAh4XgU1vF1N2pp0,23138
18
+ modeldiff.py,sha256=erNGFxi2jy-59yxfkMv5D9lBSPauuljXlPNU2twrQyM,22500
19
+ modelgrab.py,sha256=3bJJRzfGChNExTOGfxzCfkq8aPiXRnBNRfLBeRB-GMc,14769
20
+ modelgrabwf2.py,sha256=50gIo_e-wJiVVJ8Vwj3NmJfPg4vKyA90VhLFK-Y6Tvw,24742
21
+ modelhelp.py,sha256=JUKVBCmXaVhMATbZXyxrcxfXpXfDGcBA_bwEFDpSsXg,9974
22
+ modelinvert.py,sha256=YHQEm5WDRv5Kf74aMYDNjZE01_9XsGQ49VueM_IRdCY,9697
23
+ modeljupyter.py,sha256=fwtuRLUNw0Xl2jdUSHMd4xC5cRCfQqneleErQnbpnvA,34140
24
+ modeljupytermagic.py,sha256=RBzqsfRYo9D2AhhPE73g8uj_vqsrHiIs8OjXhRtarFk,9585
25
+ modelmacrograb.py,sha256=tBoISMYPkuckiop0HaGSKb3OwMGbJejXKmyJNXAQGAo,3771
26
+ modelmanipulation.py,sha256=c_wt1ZME2HyR634CrvzO78OH1L6vQmVnGGrvoexTJas,53641
27
+ modelmf.py,sha256=NyD8CC0lN47YzVn-5sKP8sMewgH8E3Pd8c7dGRAd9Pg,9253
28
+ modelnet.py,sha256=dMvJ0mdY9OCVD-VvmVdis-9TgQbediHfsKLHGCKO4b4,4960
29
+ modelnewton.py,sha256=pw-eP33rlW1JHIJ4Hd1i2Lzs4YT3tUaDRp8uLo8Ygi0,36318
30
+ modelnormalize.py,sha256=g0h-QebUxFgEuJ4f8Fy0L1eo6JdHYHEPHEpdTq1-Lcg,14507
31
+ modelpattern.py,sha256=EDeb0hlg-qNxp6VpDNN9a0XKuxx39ICiuKbl_iD3Pnc,10394
32
+ modelpatternrev.py,sha256=UMmR4H6qqFOglpoU2qKBseeUkuUjzBRxj_x3VektSw4,3103
33
+ modelsandbox.py,sha256=VJ9v3uBzoJ5qFUud0cW9ARAAMah-ePc9XmXpqJk6mfQ,1502
34
+ modelsandbox_Mixin.py,sha256=dTqn3ipF_MLcdfHHY8OUk3nBVNQEsyJWGqmtxyL1J1U,83755
35
+ modeltodo.py,sha256=RonsfA6D4zuR_C88d_yKepdgU_uIZ-BDqMDrGYpDS50,473
36
+ modeluserfunk.py,sha256=71FKTR90N-FrvBlh_S_2-enqulQuWjrtwwwPmM3Mnnk,3315
37
+ modeluserfunk_old.py,sha256=IEUivh0dKI1b1FELeLcbGcwEkzQl9kcKysEs6vu6rLs,3072
38
+ modelvis.py,sha256=qgGb4GiWNx3I7BEwgO_mDLNSFd2cvS0rzoPtuM6SUR4,27584
39
+ modelwidget.py,sha256=4owTyNIZ4dQ5KNCWifuIFWaNW2UkkTkCdGUP8KyyMsk,23438
40
+ modelwidget_input.py,sha256=C__smvcC_bTTMcCgga9tETSeEm1P-KdFHZlaiWwAiHI,39077
41
+ modelwidget_new.py,sha256=ejLGW8mp-i0rZPUX3Eud6WvN481a9Fqk__1AKSE186w,40346
42
+ modelwidget_new_new.py,sha256=mU3Fw2GRGxG8RyNGid53gnOAAjogkfzbwnJqSHKdryE,49243
43
+ modelwidget_shinypy.py,sha256=pVlIbxOBGJEM8xiWWq4zFcxbyb5_baGUBAppAsBOFXc,37453
44
+ data/ken_base.pcim,sha256=bIL06bfurtQvEpQEyvrDWJl1D3tebxna11QaOvY35cI,3396666
45
+ ModelFlowIb-1.46.dist-info/METADATA,sha256=bAo6V6B6p9QIPTsx1JxWky7dVPDDKIHZP5_z3BQV61k,7013
46
+ ModelFlowIb-1.46.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
47
+ ModelFlowIb-1.46.dist-info/top_level.txt,sha256=8Z_x60fbAaqNZUAseHXxji0fHIV36IOJ_nvaLFKF2VA,605
48
+ ModelFlowIb-1.46.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.37.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,44 @@
1
+ data
2
+ modelBLfunk
3
+ model_Excel
4
+ model_cvx
5
+ model_doable
6
+ model_dynare
7
+ model_financial_stability
8
+ model_ifrs9
9
+ model_latex
10
+ model_latex_class
11
+ model_latex_classpy
12
+ model_run_numba
13
+ modelclass
14
+ modelclass2
15
+ modeldash
16
+ modeldashboot
17
+ modeldashsidebar
18
+ modeldekom
19
+ modeldiff
20
+ modelgrab
21
+ modelgrabwf2
22
+ modelhelp
23
+ modelinvert
24
+ modeljupyter
25
+ modeljupytermagic
26
+ modelmacrograb
27
+ modelmanipulation
28
+ modelmf
29
+ modelnet
30
+ modelnewton
31
+ modelnormalize
32
+ modelpattern
33
+ modelpatternrev
34
+ modelsandbox
35
+ modelsandbox_Mixin
36
+ modeltodo
37
+ modeluserfunk
38
+ modeluserfunk_old
39
+ modelvis
40
+ modelwidget
41
+ modelwidget_input
42
+ modelwidget_new
43
+ modelwidget_new_new
44
+ modelwidget_shinypy