.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/inference/info_model_selection/pfn_models.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 or to run this example in your browser via Binder .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_examples_inference_info_model_selection_pfn_models.py: Auxiliary file ============================================== .. GENERATED FROM PYTHON SOURCE LINES 7-27 .. code-block:: default import numpy as np domain = np.linspace(0, 10, 50) def model_quadratic(theta): # this one takes one parameter vector theta and return one qoi inpt = np.array(theta).reshape((-1,)) return inpt[0] * domain + inpt[1] * domain ** 2 def model_linear(theta): # this one takes one parameter vector theta and return one qoi inpt = np.array(theta).reshape((-1,)) return inpt[0] * domain def model_cubic(theta): # this one takes one parameter vector theta and return one qoi inpt = np.array(theta).reshape((-1,)) return inpt[0] * domain + inpt[1] * domain ** 2 + inpt[2] * domain ** 3 .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.000 seconds) .. _sphx_glr_download_auto_examples_inference_info_model_selection_pfn_models.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: binder-badge .. image:: images/binder_badge_logo.svg :target: https://mybinder.org/v2/gh/SURGroup/UQpy/master?urlpath=lab/tree/notebooks/auto_examples/inference/info_model_selection/pfn_models.ipynb :alt: Launch binder :width: 150 px .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: pfn_models.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: pfn_models.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_