Surprisingly the formulas with \text{sqft_living} work on https://datascience.quantecon.org/tools/regression.html without the quoting (\text{sqft\_living}), but on the github preview they don't, nor do they work on my local jupyter notebook.
fix warning with recent numpy versions: fitted_tree.predict([x]) returns an array, but gets converted to a scalar. Recent numpy versions warn that this behaviour will be deprecated in future versions.
Surprisingly the formulas with
\text{sqft_living}
work on https://datascience.quantecon.org/tools/regression.html without the quoting (\text{sqft\_living}
), but on the github preview they don't, nor do they work on my local jupyter notebook.fix warning with recent numpy versions:
fitted_tree.predict([x])
returns an array, but gets converted to a scalar. Recent numpy versions warn that this behaviour will be deprecated in future versions.