-
-
Notifications
You must be signed in to change notification settings - Fork 21
Refactorize code related with AMSS #203
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
Comments
I refactorized Please see the detailed description inside. |
@shizejin you can bring code in from a file using the
that is how we typically share executable code across lectures that needs to be visible on the site (i.e. doesn't come from a package like Note: I just realised this is only relevant syntax for https://github.com/QuantEcon/lecture-python-advanced.myst |
@shizejin this is looking like a pretty big change. I am thinking of starting the migration process to https://github.com/QuantEcon/lecture-python-advanced.myst. Can you let me know your estimated timeframe on this change? Just wondering if I get you to submit a PR here or https://github.com/QuantEcon/lecture-python-advanced.myst. Thanks. |
Thanks @mmcky for your suggestion! It looks like the current syntax for the two lectures are
but we were thinking about not making the duplicated code visible in every lecture. But I guess this may not be a very good idea since it harms the self-containedness of the lectures. Please let us know what you think. And we estimate this to be accomplished at the end of May. Not sure when this will be done specifically within May though. When do you plan to start the migration process originally? |
Hi @shizejin. The current
in the new If the code isn't visible you can include it in a lecture but use tags to hide the code cell (if you want the output) or hide both the code-cell and the output (in the html) but they should be contained in download notebooks or any other execution environment. |
@shizejin I have been migrating the lectures over to |
Hi @mmcky, I am about to make a PR about One good news: |
thanks @shizejin this is really exciting. If you commit here I can transfer to |
@mmcky thanks! I think I will just make a PR here. |
Uh oh!
There was an error while loading. Please reload this page.
We want to refactorize the code related with AMSS including a series of lectures including
opt_tax_recur
andamss
(and potentiallyamss2
andamss3
in the near future) by a collaboration with @QBatista and @thomassargent30.The parts to modify are mainly two Python classes
SequentialAllocation
both inopt_tax_recur
andamss
RecursiveAllocation
inopt_tax_recur
RecursiveAllocationAMSS
inamss
Our goal is to improve the quality of the code in several aspects:
@QBatista would you please add on your thoughts if I missed anything? I remember that you wanted to jit the class. For me the performance of the current code is quite acceptable but it would be great to discuss if jitting would be needed.
We need to notice that these two lectures share a large fraction of the code so it would be great if we could avoid "copy and paste". We would appreciate it a lot if @mmcky has some suggestions on this issue.
I created a new branch
mod_amss
and we will modify the.rst
files and make a PR from there.The text was updated successfully, but these errors were encountered: