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

Separate core and dense state space. #310

Merged
merged 164 commits into from
Feb 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
164 commits
Select commit Hold shift + click to select a range
2727941
Vectorized transform_disturbances.
tobiasraabe Oct 16, 2019
f9ee1ad
Finished one-step-ahead simulation.
tobiasraabe Oct 16, 2019
c40bbcc
Merge branch 'develop' into one-step-ahead-simulation
tobiasraabe Oct 16, 2019
172579e
More fixes.
tobiasraabe Oct 16, 2019
5e7454c
Merge branch 'one-step-ahead-simulation' of https://github.com/OpenSo…
tobiasraabe Oct 17, 2019
c92ef63
Fix period error.
tobiasraabe Oct 17, 2019
f86f5d4
Fixed osa sim with lagged choices.
tobiasraabe Oct 18, 2019
c51a5f4
Simplified calc_vf_and_fu_func.
tobiasraabe Oct 23, 2019
893d243
Simplified code, removed useless test which boils down to testing tha…
tobiasraabe Oct 24, 2019
9a68f8b
Some clarifications.
tobiasraabe Oct 24, 2019
45b2148
Merge branch 'develop' into one-step-ahead-simulation
tobiasraabe Oct 28, 2019
bfa0df5
Unified n-step and one-step-simulation.
tobiasraabe Oct 29, 2019
021cb4c
Merge branch 'develop' into one-step-ahead-simulation
tobiasraabe Oct 29, 2019
00c8bd3
n_periods depends on n-step-ahead or one-step-ahead.
tobiasraabe Oct 29, 2019
ba5e8b8
Use index for simulated data. Closes #255.
tobiasraabe Oct 30, 2019
ba24198
COrrected common returns in extended model.
tobiasraabe Nov 11, 2019
c30048b
Rearranged functions.
tobiasraabe Nov 11, 2019
c47a3a6
Another fix.
tobiasraabe Nov 12, 2019
c326c77
even more.
tobiasraabe Nov 12, 2019
8e8f8cb
prevent automatic float conversion.
tobiasraabe Nov 12, 2019
469cb36
Final fix.
tobiasraabe Nov 12, 2019
9a01b12
Merge branch 'develop' into one-step-ahead-simulation
tobiasraabe Nov 12, 2019
1ed645e
Merged develop into osa-sim.
tobiasraabe Nov 20, 2019
1bdc2cb
Merge branch 'develop' into one-step-ahead-simulation
tobiasraabe Nov 20, 2019
a907374
Fixed some errors and started tutorial notebook.
tobiasraabe Nov 21, 2019
9d6c9b3
Added to docs.
tobiasraabe Nov 21, 2019
222cb4b
Merge branch 'develop' into one-step-ahead-simulation
tobiasraabe Nov 26, 2019
a012d49
Made notebook better.
tobiasraabe Nov 26, 2019
15f0785
Fix tests.
tobiasraabe Nov 27, 2019
f8542f2
Merge branch 'master' into one-step-ahead-simulation
tobiasraabe Nov 30, 2019
9c39958
Refactored some parts.
tobiasraabe Nov 30, 2019
3486987
Merge branch 'master' into one-step-ahead-simulation
tobiasraabe Dec 4, 2019
d5d1adb
New interface.
tobiasraabe Dec 5, 2019
5a9d214
Some clarifications.
tobiasraabe Dec 10, 2019
60f0c65
short updates.
tobiasraabe Dec 10, 2019
348a3af
Merge branch 'master' into one-step-ahead-simulation
tobiasraabe Dec 16, 2019
3769bc2
Slightly more readable.
tobiasraabe Dec 18, 2019
78474d9
There is only one sampling function.
tobiasraabe Dec 19, 2019
132c87d
Some changes.
tobiasraabe Dec 19, 2019
8620810
Types are now handled as every other characteristic.
tobiasraabe Dec 19, 2019
a9b0192
A lot of docstrings.
tobiasraabe Dec 19, 2019
ebfa770
Types are now more similar to observables and work via covariates.
tobiasraabe Dec 20, 2019
121d84b
Fix docs.
tobiasraabe Dec 20, 2019
ab304be
Merge branch 'one-step-ahead-simulation' into types-to-covariates
tobiasraabe Dec 20, 2019
74974ac
_apply_law_of_motion works with df, is cleaner, faster (, stronger).
tobiasraabe Dec 20, 2019
ccf4f02
Some renaming.
tobiasraabe Dec 20, 2019
a195a6b
Merge branch 'one-step-ahead-simulation' into types-to-covariates
tobiasraabe Dec 20, 2019
a42652a
Finished tutorial notebook on initial conditions and added replicatio…
tobiasraabe Dec 22, 2019
7bf2a16
Reorder parameters.
tobiasraabe Dec 22, 2019
2dd4192
cosmetics.
tobiasraabe Dec 23, 2019
3769d52
Merge branch 'one-step-ahead-simulation' into types-to-covariates
tobiasraabe Dec 23, 2019
3f6fde4
Fixed tests.
tobiasraabe Dec 24, 2019
9290935
First steps towards dividing the state space into core and dense part…
tobiasraabe Dec 30, 2019
a962f3a
Merge branch 'master' into separate-core-dense-state-space
tobiasraabe Jan 2, 2020
d1b0039
Some changes.
tobiasraabe Jan 3, 2020
55c5aab
Switch off parallelization.
tobiasraabe Jan 5, 2020
2d8cb4a
slight changes.
tobiasraabe Jan 6, 2020
4feeb04
Merge branch 'master' into separate-core-dense-state-space
tobiasraabe Jan 6, 2020
6fe7bac
Simplified simulation and prepared for simulation with separated core…
tobiasraabe Jan 6, 2020
edb3c72
Fixed errors.
tobiasraabe Jan 6, 2020
91eb7b9
Fixed type assignment error.
tobiasraabe Jan 7, 2020
2603def
Fixed tests. Tackle draws in the next step.
tobiasraabe Jan 8, 2020
f1d1f9e
Attached shocks to dataframe.
tobiasraabe Jan 8, 2020
cd353a6
Invariance of observables and types is implicitly handled in apply_la…
tobiasraabe Jan 8, 2020
75bd79d
Move types to sampling again.
tobiasraabe Jan 8, 2020
56b5957
Some docstirng fixes.
tobiasraabe Jan 8, 2020
e9364f5
More docstring changes.
tobiasraabe Jan 8, 2020
3cfb136
Simpler downcasting.
tobiasraabe Jan 9, 2020
0968dea
Reduced test runtime for CI.
tobiasraabe Jan 9, 2020
0e938d3
Merge branch 'change-simulation' into separate-core-dense-state-space
tobiasraabe Jan 9, 2020
68d0350
TEMP COMMIT.
tobiasraabe Jan 9, 2020
ba5a278
Simulation is working.
tobiasraabe Jan 10, 2020
405837a
TEMP COMMIT.
tobiasraabe Jan 10, 2020
fea7e81
Skip slow tests only on CI, more robust create_base_covariates.
tobiasraabe Jan 10, 2020
5e0934c
Added missing quotes.
tobiasraabe Jan 10, 2020
bff4a71
Prepared likelihood for #310 and it works with estimagics comparison …
tobiasraabe Jan 10, 2020
fa630f4
Added choice to comparison plot.
tobiasraabe Jan 10, 2020
a28ba85
Merge branch 'better-likelihood' into separate-core-dense-state-space
tobiasraabe Jan 10, 2020
3975549
Small fix.
tobiasraabe Jan 10, 2020
f500878
Fixed two comments in create_base_covariates:
tobiasraabe Jan 10, 2020
76dd7db
Merge branch 'change-simulation' into separate-core-dense-state-space
tobiasraabe Jan 10, 2020
e437dd7
TEMP COMMIT.
tobiasraabe Jan 11, 2020
62c4719
Some fixes.
tobiasraabe Jan 11, 2020
790f80d
Merge branch 'change-simulation' into separate-core-dense-state-space
tobiasraabe Jan 12, 2020
0178543
TEMP COMMIT.
tobiasraabe Jan 15, 2020
e27511c
tmep commit.
tobiasraabe Jan 16, 2020
063f164
Delete core state space filters and add new indexer.
tobiasraabe Jan 16, 2020
d78d0b3
Extended state_space.get_continuation_values and docstrings.
tobiasraabe Jan 17, 2020
9cf9ba5
Delete unnecessary code.
tobiasraabe Jan 17, 2020
756a1f3
Fix docs.
tobiasraabe Jan 17, 2020
bd87031
Replaced combine_first with fillna which is faster.
tobiasraabe Jan 18, 2020
3e14683
Changed seed such that the test_replication_kw_94 succeeds.
tobiasraabe Jan 18, 2020
0ee6e61
Some simplifications.
tobiasraabe Jan 18, 2020
5bfbcdb
New regression tests.
tobiasraabe Jan 18, 2020
67628d9
Small change.
tobiasraabe Jan 18, 2020
75b0f30
Small changes.
tobiasraabe Jan 20, 2020
b0c81e8
Removed multiindex pivot.
tobiasraabe Jan 20, 2020
7756765
Merge branch 'fix-regression-tests' into separate-core-dense-state-space
tobiasraabe Jan 20, 2020
4981632
temp commit.
tobiasraabe Jan 20, 2020
c50889e
Tests almost finished.
tobiasraabe Jan 21, 2020
333fb8c
Fix docs.
tobiasraabe Jan 21, 2020
25807f7
Fixed tests.
tobiasraabe Jan 21, 2020
bfa0276
Even better covariate functions which now have their own module.
tobiasraabe Jan 22, 2020
f84ec55
Made checks for nans in compute_covariates optional which significant…
tobiasraabe Jan 22, 2020
8004777
Restore code snippet for parallelization.
tobiasraabe Jan 23, 2020
ea5c3c2
Collect all simulated data and concat it at once.
tobiasraabe Jan 23, 2020
46dd435
Merge branch 'master' into separate-core-dense-state-space
tobiasraabe Jan 23, 2020
90f763f
Faster apply_law_of_motion.
tobiasraabe Jan 24, 2020
d5508a1
Changed full_solution() to _full_solution().
tobiasraabe Jan 24, 2020
3ed1dbe
n_jobs parameter for parallelize_across_state_space.
tobiasraabe Jan 24, 2020
bdba46a
fix copy.
tobiasraabe Jan 27, 2020
f47768a
Fix regression tests.
tobiasraabe Jan 27, 2020
a08b278
Removed comment.
tobiasraabe Jan 28, 2020
182c0c2
Preliminary commit.
tobiasraabe Jan 28, 2020
468be71
Added add_noise_to_params() and made test suite faster.
tobiasraabe Jan 28, 2020
dee80f8
Merge branch 'master' into random-tests
tobiasraabe Jan 28, 2020
bf45955
Fix msm tests.
tobiasraabe Jan 28, 2020
49b5c8a
Merge branch 'master' into random-tests
tobiasraabe Jan 28, 2020
1dd658f
Add auto-generative test function based on randomly-seed.
tobiasraabe Jan 29, 2020
c3bb365
Merge branch 'random-tests' of https://github.com/OpenSourceEconomics…
tobiasraabe Jan 29, 2020
42c466e
Fixed tox environment.
tobiasraabe Jan 29, 2020
94c2398
Fixed the test generation.
tobiasraabe Jan 29, 2020
77c3436
Merge branch 'master' into random-tests
tobiasraabe Jan 30, 2020
15841f0
temporary commit, unfinished add_noise....
tobiasraabe Jan 30, 2020
8eb882b
Refactored sorting of shock matrix to validation checks which works b…
tobiasraabe Jan 30, 2020
aaea444
Merge branch 'fix-sorting-shocks' into random-tests
tobiasraabe Jan 30, 2020
0be6c41
Probably finished add_noise_to_params.
tobiasraabe Feb 2, 2020
0b6ce68
Merge branch 'master' into separate-core-dense-state-space
tobiasraabe Feb 2, 2020
a61f274
Split between _SingleDimStateSpace and _MultiDimStateSpace.
tobiasraabe Feb 10, 2020
7ac46f6
Fixed tests.
tobiasraabe Feb 10, 2020
ae0e33a
Some simplifications.
tobiasraabe Feb 11, 2020
1c0bd69
Add codecov.
tobiasraabe Feb 11, 2020
572d73c
Updated paths in codecov.
tobiasraabe Feb 11, 2020
8b68919
Try out new flags.
tobiasraabe Feb 11, 2020
bc94332
Add github workflows and trimmed azure.
tobiasraabe Feb 11, 2020
cda2d36
new workflow [skip ci].
tobiasraabe Feb 11, 2020
c1795b3
new workflow [skip-ci].
tobiasraabe Feb 11, 2020
502a775
new workflow [skip-ci].
tobiasraabe Feb 11, 2020
62c9563
Actually copy repo.
tobiasraabe Feb 11, 2020
f014e31
Do not use 3.8.
tobiasraabe Feb 12, 2020
caa8e9f
Fix 3.7 on Windows:
tobiasraabe Feb 12, 2020
e34f53a
Fix 3.7 on Windows by adding scipy.
tobiasraabe Feb 12, 2020
6637674
Fix.
tobiasraabe Feb 12, 2020
7200105
Use codecov action.
tobiasraabe Feb 12, 2020
237432b
More badges.
tobiasraabe Feb 12, 2020
a1cd4d9
Some fixes.
tobiasraabe Feb 12, 2020
3373bfe
Merge branch 'random-tests' into separate-core-dense-state-space
tobiasraabe Feb 12, 2020
5feb87d
Merge branch 'master' into separate-core-dense-state-space
tobiasraabe Feb 13, 2020
a5b1d18
Some additions.
tobiasraabe Feb 14, 2020
dc760de
Fix sphinx errors.
tobiasraabe Feb 14, 2020
40c25a8
Better documentation in the interpolation.
tobiasraabe Feb 14, 2020
36d8721
comment.
tobiasraabe Feb 15, 2020
0e44372
Some fixes.
tobiasraabe Feb 15, 2020
6ec5ee3
Fix reward parallelization.
tobiasraabe Feb 16, 2020
2c66014
Fix test.
tobiasraabe Feb 17, 2020
7982dd9
Add joblib dependency.
tobiasraabe Feb 17, 2020
e31ccd1
Stay serial.
tobiasraabe Feb 17, 2020
d4e7f86
Updated notebooks in the documentation.
tobiasraabe Feb 17, 2020
adf6cf8
Make docs work.
tobiasraabe Feb 17, 2020
1852585
Add to changes.
tobiasraabe Feb 17, 2020
b68138a
Fix test.
tobiasraabe Feb 17, 2020
e5c63c3
Finishing.
tobiasraabe Feb 17, 2020
cbbaa3d
Merge branch 'master' into separate-core-dense-state-space
tobiasraabe Feb 20, 2020
8562584
Incorporated Janos' suggestions.
tobiasraabe Feb 28, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ releases are available on `Anaconda.org
the data preparation.
- :gh:`300` aligns respy functions with the new data in :gh:`299`
(:ghuser:`tobiasraabe`).
- :gh:`310` introduces the separation between a core state space and dense dimensions of
the state space which reduces memory consumption by a lot and makes respy scalable.
:gh:`312` and :gh:`313` include changes to the simulation or maximum likelihood
estimation which pave the way for :gh:`310`. (:ghuser:`tobiasraabe`)
- :gh:`314` fixes two parameters in KW97 and KW2000 (:ghuser:`tostenzel`,
:ghuser:`tobiasraabe`).
- :gh:`316` changes the invalid index value for the indexer to prevent silent errors
Expand All @@ -76,6 +80,10 @@ releases are available on `Anaconda.org
- :gh:`323` adds an informative message if simulated individuals cannot be mapped to
states in the state space (:ghuser:`mo2561057`, :ghuser:`tobiasraabe`).


*Releases prior to the second version were published on PyPI, but deleted later. You can
still checkout the following releases with the corresponding tags.*

1.2.1 - 2019-05-19
------------------

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2015-2019
Copyright (c) 2015-2020

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ respy

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
:target: https://github.com/psf/black


``respy`` is an open-source Python package for the simulation and estimation of a
prototypical finite-horizon discrete choice dynamic programming model. We build on the
Expand Down
12 changes: 7 additions & 5 deletions development/testing/regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,13 @@ def _check_single(test, strict):
"""Check a single test."""
params, options, exp_val = test

crit_val = calc_crit_val(params, options)

is_success = np.isclose(
crit_val, exp_val, rtol=TOL_REGRESSION_TESTS, atol=TOL_REGRESSION_TESTS
)
try:
crit_val = calc_crit_val(params, options)
is_success = np.isclose(
crit_val, exp_val, rtol=TOL_REGRESSION_TESTS, atol=TOL_REGRESSION_TESTS
)
except Exception:
is_success = False

if strict is True:
assert is_success, "Failed regression test."
Expand Down
30 changes: 1 addition & 29 deletions docs/api.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
API
===


User
----

Expand All @@ -24,6 +23,7 @@ solve
.. autosummary::
:toctree: _generated/

get_solve_func
solve

simulate
Expand Down Expand Up @@ -58,31 +58,3 @@ likelihood

get_crit_func
log_like


Developer
---------

config
~~~~~~

.. currentmodule:: respy.config

.. autosummary::
:toctree: _generated/

INDEXER_DTYPE
INDEXER_INVALID_INDEX

state space
~~~~~~~~~~~

.. currentmodule:: respy.state_space

.. autosummary::
:toctree: _generated/

StateSpace
StateSpace.get_attribute_from_period
StateSpace.get_continuation_values
StateSpace.update_systematic_rewards
8 changes: 4 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def setup(app):
# -- Project information -----------------------------------------------------

project = "respy"
copyright = "2015-2019, Philipp Eisenhauer" # noqa: A001
author = "Philipp Eisenhauer"
copyright = "2015-2020, The respy Development Team" # noqa: A001
author = "The respy Development Team"

# The full version, including alpha/beta/rc tags.
release = "2.0.0dev2"
Expand Down Expand Up @@ -49,6 +49,7 @@ def setup(app):
autodoc_mock_imports = [
"chaospy",
"estimagic",
"joblib",
"numba",
"numpy",
"pandas",
Expand Down Expand Up @@ -106,7 +107,7 @@ def setup(app):

.. nbinfo::

Download the notebook :download:`here <https://github.com/OpenSourceEconomics/respy/blob/{{ env.config.release }}/{{ docname }}>`!
View and download the notebook `here <https://nbviewer.jupyter.org/github/OpenSourceEconomics/respy/tree/v{{ env.config.release }}/{{ docname }}>`_!

"""

Expand All @@ -117,7 +118,6 @@ def setup(app):
# Configuration for autodoc
autosummary_generate = True


# -- Options for HTML output ----------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
Expand Down
6 changes: 3 additions & 3 deletions docs/development/randomness-and-reproducibility.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,16 @@ parameters.
respy.solve
-----------

.. currentmodule:: respy.solve

Routines under ``respy.solve`` use a seed from the sequence initialized by
``options["solution_seed"]`` to control randomness. Apart from the draws,
:func:`~respy.solve.solve` relies on the following function.

.. currentmodule:: respy.interpolate

.. autosummary::
:toctree: ../_generated/

get_not_interpolated_indicator
_get_not_interpolated_indicator


respy.simulate
Expand Down
29 changes: 11 additions & 18 deletions docs/development/releases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,28 +24,21 @@ How to release a new version?
2. Second, we need to create a final PR to prepare everything for the new version. The
name of the PR and the commit message will be "Release vx.y.z". We need to

- update all references of the old version number (``setup.py``,
``respy/__init__.py``, ``docs/conf.py``).
- use ``bumpversion part <dev|patch|minor|major>`` to increment the correct part of
the version number in all files.
- update information in ``CHANGES.rst`` to have summary of the changes which
can also be posted in the Github repository under the tag.

Merge the PR into master.
3. Run ``python release.py`` and check whether you can actually release a new version.
If you experience errors, fix them here.

3. After that, revisit the draft of the release. Make sure everything is fine. Now, you
click on "Publish release" which creates a version tag on the latest commit of the
specified branch. The tag will trigger a build on Travis-CI which will publish the
release on PypI.

4. Make sure that the new release was indeed published by checking `PyPI
<https://pypi.org/project/respy/>`_.

5. Spread the word!
4. Merge the PR into master.

5. After that, revisit the draft of the release. Make sure everything is fine. Now, you
click on "Publish release" which creates a version tag on the latest commit of the
specified branch. Make sure to target the master branch.

Notes
-----
6. Visit `Anaconda.org <https://anaconda.org/OpenSourceEconomics/respy>`_ and check
whether the release is available.

- Travis-CI only builds tags if "Build pushed branches" is active.
- If you publish a release on PyPI, the same version number cannot be reused even if you
delete the release. This is a safety measure. If you are not sure whether the release
will work, create a release candidate instead and publish the real version later.
7. Spread the word!
1 change: 0 additions & 1 deletion docs/getting_started/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ Getting Started
tutorial-robinson-crusoe.ipynb
tutorial-simulation.ipynb
tutorial-initial-conditions
tutorial-model-with-observables.ipynb
tutorial-finite-mixture.ipynb
tutorial-msm.ipynb
57 changes: 23 additions & 34 deletions docs/getting_started/tutorial-finite-mixture.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@
" <tr>\n",
" <th>initial_exp_fishing_2</th>\n",
" <th>probability</th>\n",
" <td>0.33</td>\n",
" <td>0.34</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
Expand All @@ -229,7 +229,7 @@
"category name \n",
"initial_exp_fishing_0 probability 0.33\n",
"initial_exp_fishing_1 probability 0.33\n",
"initial_exp_fishing_2 probability 0.33"
"initial_exp_fishing_2 probability 0.34"
]
},
"execution_count": 3,
Expand All @@ -242,7 +242,7 @@
"category,name,value\n",
"initial_exp_fishing_0,probability,0.33\n",
"initial_exp_fishing_1,probability,0.33\n",
"initial_exp_fishing_2,probability,0.33\n",
"initial_exp_fishing_2,probability,0.34\n",
"\"\"\"), index_col=[\"category\", \"name\"])\n",
"initial_exp_fishing"
]
Expand Down Expand Up @@ -565,7 +565,7 @@
" <tr>\n",
" <th>initial_exp_fishing_2</th>\n",
" <th>probability</th>\n",
" <td>0.3300</td>\n",
" <td>0.3400</td>\n",
" </tr>\n",
" <tr>\n",
" <th rowspan=\"2\" valign=\"top\">wage_fishing</th>\n",
Expand Down Expand Up @@ -620,7 +620,7 @@
"lagged_choice_1_hammock constant 1.0000\n",
"initial_exp_fishing_0 probability 0.3300\n",
"initial_exp_fishing_1 probability 0.3300\n",
"initial_exp_fishing_2 probability 0.3300\n",
"initial_exp_fishing_2 probability 0.3400\n",
"wage_fishing type_1 0.2000\n",
" type_2 0.4000\n",
"type_1 initial_exp_fishing_0 -90.0000\n",
Expand Down Expand Up @@ -689,18 +689,7 @@
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"C:\\Users\\tobia\\git\\respy\\respy\\pre_processing\\model_processing.py:599: UserWarning: The probabilities for parameter group \\binitial_exp_fishing_([0-9]+)\\b do not sum to one.\n",
" category=UserWarning,\n",
"C:\\Users\\tobia\\git\\respy\\respy\\pre_processing\\model_processing.py:599: UserWarning: The probabilities for parameter group \\binitial_exp_fishing_([0-9]+)\\b do not sum to one.\n",
" category=UserWarning,\n"
]
}
],
"outputs": [],
"source": [
"simulate = rp.get_simulate_func(params, options)\n",
"df = simulate(params)"
Expand Down Expand Up @@ -753,14 +742,14 @@
" <tr>\n",
" <th>1</th>\n",
" <td>0.000000</td>\n",
" <td>0.659223</td>\n",
" <td>0.340777</td>\n",
" <td>0.656887</td>\n",
" <td>0.343113</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>0.000302</td>\n",
" <td>0.337564</td>\n",
" <td>0.662134</td>\n",
" <td>0.000296</td>\n",
" <td>0.338958</td>\n",
" <td>0.660746</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
Expand All @@ -770,8 +759,8 @@
"Type 0 1 2\n",
"Experience_Fishing \n",
"0 1.000000 0.000000 0.000000\n",
"1 0.000000 0.659223 0.340777\n",
"2 0.000302 0.337564 0.662134"
"1 0.000000 0.656887 0.343113\n",
"2 0.000296 0.338958 0.660746"
]
},
"execution_count": 10,
Expand Down Expand Up @@ -828,18 +817,18 @@
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>0.438767</td>\n",
" <td>0.561233</td>\n",
" <td>0.440916</td>\n",
" <td>0.559084</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>0.590465</td>\n",
" <td>0.409535</td>\n",
" <td>0.591656</td>\n",
" <td>0.408344</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>0.705991</td>\n",
" <td>0.294009</td>\n",
" <td>0.700927</td>\n",
" <td>0.299073</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
Expand All @@ -848,9 +837,9 @@
"text/plain": [
"Choice fishing hammock\n",
"Type \n",
"0 0.438767 0.561233\n",
"1 0.590465 0.409535\n",
"2 0.705991 0.294009"
"0 0.440916 0.559084\n",
"1 0.591656 0.408344\n",
"2 0.700927 0.299073"
]
},
"execution_count": 11,
Expand Down Expand Up @@ -879,7 +868,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
"version": "3.7.6"
}
},
"nbformat": 4,
Expand Down
18 changes: 10 additions & 8 deletions docs/getting_started/tutorial-initial-conditions.ipynb

Large diffs are not rendered by default.

Loading