Skip to content

Commit

Permalink
adding PerfForesightConsumerTypeFast (#774)
Browse files Browse the repository at this point in the history
* init commit

baseline PerfForesightConsumerType for comparison

* Update ConsIndShockFastModel.py

add fast solver for PerfForesight model

* Update ConsIndShockModel.py

reformat using "black" and add __eq__ method using parameter dictionary

* Update ConsIndShockModel.py

add __eq__ to ConsumerSolution

* create test_PerfForesightFastConsumerType.py

also change code in ConsIndShock for correcting failed tests

* Update requirements.txt

add interpolation

* small review changes

- remove __future__ as econ-ark is only python3
- fix __all__
- make helper functions private

* Create ConsIndShockFastModel.rst

generate documentation

* Update test_PerfForesightFastConsumerType.py

remove `__eq__` tests

* rename files and objects

move `Fast` to end of name

* Update ConsIndShockModel.py

remove `__eq__`, will be moved to own PR

* Update ConsIndShockModel.py

remove `__eq__` modifications from this PR

* Update requirements.txt

fix requirements error

* Update ConsIndShockModel.py

revert formatting changes to resolve conflicts

* Update requirements.txt

* Update CHANGELOG.md

Co-authored-by: Christopher Llorracc Carroll <[email protected]>
Co-authored-by: Mridul Seth <[email protected]>
  • Loading branch information
3 people authored Aug 14, 2020
1 parent 35ad3e8 commit fe8ebdb
Show file tree
Hide file tree
Showing 6 changed files with 462 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -282,4 +282,5 @@ nate-notes/
*_region_*.*

# VSCode
settings.json
settings.json
.idea
1 change: 1 addition & 0 deletions Documentation/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Release Data: TBD
#### Major Changes

* Namespace variables for the Market class [#765](https://github.com/econ-ark/HARK/pull/765)
* We now have a Numba based implementation of PerfForesightConsumerType model available as PerfForesightConsumerTypeFast [#774](https://github.com/econ-ark/HARK/pull/774)

#### Minor Changes

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
ConsIndShockFastModel
----------------------------

.. automodule:: HARK.ConsumptionSaving.ConsIndShockFastModel
:members:
:undoc-members:
:show-inheritance:
Loading

0 comments on commit fe8ebdb

Please sign in to comment.