amonninger / remark-ecb Goto Github PK
View Code? Open in Web Editor NEWThis project forked from lnsongxf/remark-starter-example
This project forked from lnsongxf/remark-starter-example
hi there
very nice notebook! runs perfectly for me.
i was trying to you reproduce.sh
but few things not clear, maybe fix to avoid early frustrations :-)
that file does not exist:
jupyter nbconvert --to python REMARK-starter-example.ipynb
do you really need that package specification? just installed latest HARK but cannot install this package. HARK works.
➜ REMARK-ECB git:(master) python -m pip install --quiet -r requirements.txt
ERROR: Cannot install -r requirements.txt (line 4), -r requirements.txt (line 6), -r requirements.txt (line 8) and numpy==1.19.1 because these package versions have conflicting dependencies.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
[notice] A new release of pip available: 22.3.1 -> 23.0
[notice] To update, run: pip install --upgrade pip
➜ REMARK-ECB git:(master) python
Python 3.8.9 (default, Sep 29 2021, 09:49:01)
[Clang 11.0.0 (clang-1100.0.33.17)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import HARK
>>> from HARK.ConsumptionSaving.ConsIndShockModel import PerfForesightConsumerType
>>> PF_params = {
... "CRRA": 2.5, # Relative risk aversion
... "DiscFac": 0.96, # Discount factor
... "Rfree": 1.03, # Risk free interest factor
... "LivPrb": [0.98], # Survival probability
... "PermGroFac": [1.01], # Income growth factor
... "T_cycle": 1,
... "cycles": 0,
... "AgentCount": 10000,
... }
>>> PFexample = PerfForesightConsumerType(**PF_params)
>>> PFexample.solve()
>>> PFexample.solution[0].cFunc
<HARK.interpolation.LinearInterp object at 0x12afe8e50>
>>>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.