Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HARK.utilities missing approxUniform? #687

Closed
merajindc opened this issue May 13, 2020 · 4 comments
Closed

HARK.utilities missing approxUniform? #687

merajindc opened this issue May 13, 2020 · 4 comments

Comments

@merajindc
Copy link

Hello,

I'm new to HARK (kind of). I was going through some of the tutorials and noticed that I do not have approxUniform in my HARK.utilities
or
when I import approxUniform from HARK.utilities, it cannot be found.

I just installed HARK today from conda. I have other things in HARK.utilities like utility functions, but not this approximated uniform distribution. I'm on a windows machine, running ananconda

Python 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 bit (AMD64)]

@MridulS
Copy link
Member

MridulS commented May 13, 2020

approxUniform exists in HARK.distribution in the latest release v0.10.6.

from HARK.distribution import approxUniform

@sbenthall
Copy link
Contributor

The way to approximate distributions has changed since the v0.10.6 release. This breaks some of the materials that have been built on top of HARK.

@merajindc would you be able to tell us which tutorials gave you this error?

If you would like to approximate a Uniform distribution using the unreleased master branch (or in future version v0.10.7 or later), the code is:

from HARK.distribution import Uniform

Uniform(bot=0, top=1).approx(10)

for example.

@merajindc
Copy link
Author

merajindc commented May 18, 2020 via email

@sbenthall
Copy link
Contributor

Ah, ok, thank you.

good luck on your dissertation planning. A dissertation that combines Econ-ARK with Robert Axtell's expertise would be fascinating. @llorracc and I have been discussing ways to synthesize Econ-ARK with Mesa, an ABM toolkit that was developed by some people that worked with Axtell.

I'll try to keep you in the loop if there's any progress on that front on our end.

I believe the DemARK issue you've raised is fixed in this PR, which hasn't yet been merged, but could be.
econ-ark/DemARK#116

I'd encourage you to post problems you find with DemARKs on that issue tracker; this one is intended for the HARK library.

Also, while git/GitHub can be confusing, there's a lot of upside to learning them and I'd encourage you to take it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants