.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/assisted/plot_b06everything.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_assisted_plot_b06everything.py: Combine many specifications: exception is raised ================================================ We combine many specifications, defined in :ref:`everything_spec_section`. This leads to a total of 432 specifications. When the total number of specifications exceeds 100, Biogeme raises an ValueOutOfRange exception when the estimate_catalog is called. See `Bierlaire and Ortelli (2023) `_. :author: Michel Bierlaire, EPFL :date: Fri Jul 14 09:55:33 2023 .. GENERATED FROM PYTHON SOURCE LINES 17-20 .. code-block:: default import biogeme.biogeme as bio from biogeme.exceptions import BiogemeError .. GENERATED FROM PYTHON SOURCE LINES 21-22 See :ref:`everything_spec_section`. .. GENERATED FROM PYTHON SOURCE LINES 22-24 .. code-block:: default from everything_spec import model_catalog, database .. GENERATED FROM PYTHON SOURCE LINES 25-26 Create the Biogeme object. .. GENERATED FROM PYTHON SOURCE LINES 26-31 .. code-block:: default the_biogeme = bio.BIOGEME(database, model_catalog) the_biogeme.modelName = 'b06everything' the_biogeme.generate_html = False the_biogeme.generate_pickle = False .. GENERATED FROM PYTHON SOURCE LINES 32-34 Estimate the parameters. It does not work as there are two many specifications .. GENERATED FROM PYTHON SOURCE LINES 34-38 .. code-block:: default try: dict_of_results = the_biogeme.estimate_catalog() except BiogemeError as e: print(e) .. rst-class:: sphx-glr-script-out .. code-block:: none There are too many [432] different specifications for the log likelihood function. This is above the maximum number: 100. Simplify the specification, change the value of the parameter maximum_number_catalog_expressions, or consider using the AssistedSpecification object in the "biogeme.assisted" module. .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.025 seconds) .. _sphx_glr_download_auto_examples_assisted_plot_b06everything.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_b06everything.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_b06everything.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_