You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing the minterpy conda environment and installing minterpy as described in the quickstart, building the documentation with make html in /docs fails with
readingsources... [ 95%] getting-started/polynomial-regressionNotebookerror:
CellExecutionErroringetting-started/polynomial-regression.ipynb:
------------------fromminterpy.utilsimportnewt_evaldefget_regression_matrix(lag_poly, points):
""" constructs the regression matrix by evaluating the lagrange monomials on all the points. :return: (k x N) the value of each Lagrange monomial in Newton form at each point. """coeffs_newton=mp.get_transformation(lag_poly, mp.NewtonPolynomial).transformation_operator.array_repr_fullexponents=lag_poly.multi_index.exponentsgenerating_points=lag_poly.grid.generating_pointsreturnnewt_eval(points, coeffs_newton, exponents,
generating_points)
---------------------------------------------------------------------------------------------ImportErrorTraceback (mostrecentcalllast)
InputIn [7], in<cellline: 1>()
---->1fromminterpy.utilsimportnewt_eval3defget_regression_matrix(lag_poly, points):
4""" constructs the regression matrix by evaluating the lagrange monomials on 5 all the points. 6 :return: (k x N) the value of each Lagrange monomial in Newton form at each point. 7 """ImportError: cannotimportname'newt_eval'from'minterpy.utils' (/home/steinigk/src/minterpy/src/minterpy/utils.py)
ImportError: cannotimportname'newt_eval'from'minterpy.utils' (/home/steinigk/src/minterpy/src/minterpy/utils.py)
It seems the function newt_eval has been renamed to eval_newton_polynomials.
Applying the patch
diff --git a/docs/getting-started/polynomial-regression.ipynb b/docs/getting-started/polynomial-regression.ipynb
index e08f7aa..ac31a51 100644
--- a/docs/getting-started/polynomial-regression.ipynb
+++ b/docs/getting-started/polynomial-regression.ipynb
@@ -174,7 +174,7 @@
"metadata": {},
"outputs": [],
"source": [
- "from minterpy.utils import newt_eval\n",
+ "from minterpy.utils import eval_newton_polynomials as newt_eval\n",
"\n",
"def get_regression_matrix(lag_poly, points):\n",
" \"\"\" constructs the regression matrix by evaluating the lagrange monomials on\n",
allows to build documentation.
The text was updated successfully, but these errors were encountered:
steindev
changed the title
Documentation does not build
Documentation does not build due to erroneous getting-started/polynomial-regression.ipynb
Sep 28, 2022
After installing the minterpy conda environment and installing minterpy as described in the quickstart, building the documentation with
make html
in/docs
fails withIt seems the function
newt_eval
has been renamed toeval_newton_polynomials
.Applying the patch
allows to build documentation.
The text was updated successfully, but these errors were encountered: