Code Monkey home page Code Monkey logo

Comments (4)

mnwhite avatar mnwhite commented on May 14, 2024

That's because LivPrb and PermGroFac are time-varying, so they need to be
lists at the top level (before being input to the solver for one period).

On Tue, Sep 27, 2016 at 8:46 PM, dclow [email protected] wrote:

MarkovConsumerType could use more checking of its inputs. It can get very
weird error message if it receives inputs that are just slightly different
than what they should be.

For example, I wasted a lot of time with an infinite horizon version
before I figured out that PermGroFac and LivPrb should be lists (of length
1, whose only element is a np.array), but Rfree should just be a numpy
array. Also, those arrays should be of shape (N,), where N is the number of
Markov states. Using an array of shape (N,1) also produced a very obscure
error message

I imagine putting in checks at the beginning to verify that inputs are the
right types and shapes could save a lot of people some of the hassle I went
through


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#83, or mute the thread
https://github.com/notifications/unsubscribe-auth/ANUQFbeQcVNLEg3EyNOnSgK0ZNL147dSks5qubj2gaJpZM4KIThx
.

from hark.

dclow avatar dclow commented on May 14, 2024

Just issued a PR to do this. If the PR gets merged (maybe after dealing with issues you find), we can close this issue.

from hark.

mnwhite avatar mnwhite commented on May 14, 2024

I will tackle these PRs this weekend. I also plan to prepare a rather
large PR with the new simulation regime.

On Wed, Oct 12, 2016 at 3:11 PM, dclow [email protected] wrote:

Just issued a PR to do this. If the PR gets merged (maybe after dealing
with issues you find), we can close this issue.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#83 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ANUQFSJ_HyXVscZeFcOtQxHeLLKvU2Oxks5qzTDWgaJpZM4KIThx
.

from hark.

mnwhite avatar mnwhite commented on May 14, 2024

The PR that addressed this was merged back in October; closing.

from hark.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.