Skip to content

Commit

Permalink
DOC: Update docs for release v0.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fumitoh committed May 3, 2023
1 parent 71ae60c commit 224e302
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lifelib/libraries/savings/savings_example4.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@
"id": "3a435fef",
"metadata": {},
"source": [
"The output tells that `surr_charge_rate(t)` is consuming time the most, which is more than 30% of the total run time. Its fomula looks like below.\n",
"The output tells that `surr_charge_rate(t)` is consuming time the most, which is more than 40% of the total run time. Its fomula looks like below.\n",
"\n",
"`surr_charge_rate(t)` represents the surrener charge rates to be applied at time `t`. The surrender charge rates are defined by rate ID (such as `type_1`) and duration, and stored in `surr_charge_table` as a DataFrame. "
]
Expand Down
1 change: 1 addition & 0 deletions makedocs/source/archive.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Past Documents
.. raw:: html

<ul class="simple">
<li><a href="https://pastdocs.lifelib.io/docs-v0.8.0/index.html" target="_blank">lifelib v0.8.0</a></li>
<li><a href="https://pastdocs.lifelib.io/docs-v0.7.0/index.html" target="_blank">lifelib v0.7.0</a></li>
<li><a href="https://pastdocs.lifelib.io/docs-v0.6.0/index.html" target="_blank">lifelib v0.6.0</a></li>
<li><a href="https://pastdocs.lifelib.io/docs-v0.5.0/index.html" target="_blank">lifelib v0.5.0</a></li>
Expand Down
4 changes: 3 additions & 1 deletion makedocs/source/libraries/savings/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Examples
savings_example1
savings_example2
savings_example3

savings_example4


Library Contents
Expand All @@ -119,9 +119,11 @@ Library Contents
cash_value_sample.xlsx An Excel file that reproduces the results of a selected model point. The file also shows the derivation of the sample mortality rates.
CashValue_ME_EX1 The example model for *savings_example1.ipynb*
CashValue_ME_EX2 The example model for *savings_example2.ipynb*
CashValue_ME_EX4 The example model for *savings_example4.ipynb*
savings_example1.ipynb Jupyter notebook :doc:`savings_example1`
savings_example2.ipynb Jupyter notebook :doc:`savings_example2`
savings_example3.ipynb Jupyter notebook :doc:`savings_example3`
savings_example4.ipynb Jupyter notebook :doc:`savings_example4`
generate_100K_model_points.ipynb Jupyter notebook used for generating the large model point data for :doc:`/libraries/savings/savings_example3`.
plot_ex1_av_paths.py Python script for :doc:`/generated_examples/savings/plot_ex1_av_paths`
plot_ex1_rand.py Python script for :doc:`/generated_examples/savings/plot_ex1_rand`
Expand Down
3 changes: 3 additions & 0 deletions makedocs/source/libraries/savings/savings_example4.nblink
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "../../../../lifelib/libraries/savings/savings_example4.ipynb"
}
30 changes: 30 additions & 0 deletions makedocs/source/releases/relnotes_v0.8.1.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
.. currentmodule:: lifelib.libraries

.. _relnotes_v0.8.1:

==================================
lifelib v0.8.1 (3 May 2023)
==================================

This release adds a new example in :mod:`~savings`.

To update lifelib, run the following command::

>>> pip install lifelib --upgrade

If you're using Anaconda, use the ``conda`` command instead::

>>> conda update lifelib


New Example
===============

This release adds a new example, :doc:`/libraries/savings/savings_example4` in :mod:`~savings`.
The example shows how to profile and optimize a model using ``CashValue_ME_EX1`` as an example.
The optimization approach involves replacing pandas DataFrames and Series with numpy arrays.
The optimized model used in the example is included in :mod:`~savings` as ``CashValue_ME_EX4``.
The example is based on recommendation given by `alexeybaran <https://github.com/fumitoh/modelx/discussions/79>`_



5 changes: 5 additions & 0 deletions makedocs/source/updates.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ Updates
Follow <a href="https://www.linkedin.com/company/lifelib" target="_blank">lifelib on LinkedIn</a>
for more frequent updates.</p>

* *3 May 2023:*
lifelib v0.8.1 is released. A new example, :doc:`/libraries/savings/savings_example4` is available in :mod:`~savings`.
See :ref:`Release Notes<relnotes_v0.8.1>` for details.


* *19 Nov 2022:*
lifelib v0.8.0 is released. New library :mod:`~economic_curves` is available.
See :ref:`Release Notes<relnotes_v0.8.0>` for details.
Expand Down
1 change: 1 addition & 0 deletions makedocs/source/whatsnew.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ Documentation for released versions of lifelib is available under
.. toctree::
:maxdepth: 2

releases/relnotes_v0.8.1
releases/relnotes_v0.8.0
releases/relnotes_v0.7.0
releases/relnotes_v0.6.0
Expand Down

0 comments on commit 224e302

Please sign in to comment.