.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_examples/experiments.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_experiments.py: =================== 2. Experiments =================== The purpose of this notebook is to compare performance of different ML models on our whole dataset. .. GENERATED FROM PYTHON SOURCE LINES 8-17 .. code-block:: Python import matplotlib.pyplot as plt from ai4water.utils.utils import TrainTestSplit from ai4water.experiments import MLRegressionExperiments from utils import version_info from utils import prepare_data, set_rcParams, SAVE .. rst-class:: sphx-glr-script-out .. code-block:: none /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/ai4water/hyperopt/_imports.py:25: UserWarning: skopt may not work with sklearn version >= 1.2 warnings.warn("skopt may not work with sklearn version >= 1.2") .. GENERATED FROM PYTHON SOURCE LINES 18-22 .. code-block:: Python for lib, ver in version_info().items(): print(lib, ver) .. rst-class:: sphx-glr-script-out .. code-block:: none python 3.12.10 (main, May 6 2025, 10:49:23) [GCC 11.4.0] os posix ai4water 1.07 lightgbm 4.6.0 catboost 1.2.10 xgboost 3.2.0 easy_mpl 0.21.5 SeqMetrics 2.0.0 numpy 1.26.4 pandas 2.2.3 matplotlib 3.10.8 h5py 3.16.0 sklearn 1.3.1 optuna 4.8.0 skopt 0.10.2 plotly 6.6.0 seaborn 0.13.2 crepes 0.9.0 mapie 0.9.2 shap 0.49.1 scipy 1.17.1 .. GENERATED FROM PYTHON SOURCE LINES 23-26 .. code-block:: Python set_rcParams() .. GENERATED FROM PYTHON SOURCE LINES 27-28 We run all the experiments considering first order decay rate as target .. GENERATED FROM PYTHON SOURCE LINES 28-33 .. code-block:: Python data, _ = prepare_data(outputs="k") print(data.shape) .. rst-class:: sphx-glr-script-out .. code-block:: none (1527, 35) .. GENERATED FROM PYTHON SOURCE LINES 34-37 .. code-block:: Python input_features = data.columns.tolist()[0:-1] .. GENERATED FROM PYTHON SOURCE LINES 38-40 .. code-block:: Python output_features = data.columns.tolist()[-1:] .. GENERATED FROM PYTHON SOURCE LINES 41-48 .. code-block:: Python TrainX, TestX, TrainY, TestY = TrainTestSplit(seed=313).split_by_random( data[input_features], data[output_features] ) print(TrainX.shape, TrainY.shape, TestX.shape, TestY.shape) .. rst-class:: sphx-glr-script-out .. code-block:: none (1068, 34) (1068, 1) (459, 34) (459, 1) .. GENERATED FROM PYTHON SOURCE LINES 49-57 .. code-block:: Python experiment = MLRegressionExperiments( input_features=input_features, output_features=output_features, show=False ) .. GENERATED FROM PYTHON SOURCE LINES 58-64 .. code-block:: Python experiment.fit( x=TrainX, y=TrainY.values, ) .. rst-class:: sphx-glr-script-out .. code-block:: none running ARDRegression model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running AdaBoostRegressor model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running BaggingRegressor model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running BayesianRidge model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running CatBoostRegressor model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running DecisionTreeRegressor model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running DummyRegressor model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/ai4water/utils/utils.py:1397: RuntimeWarning: Precision loss occurred in moment calculation due to catastrophic cancellation. This occurs when the data are nearly identical. Results may be unreliable. stats[feat] = np.round(point_features[feat](data), precision) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running ElasticNet model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running ElasticNetCV model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/linear_model/_coordinate_descent.py:628: ConvergenceWarning: Objective did not converge. You might want to increase the number of iterations, check the scale of the features or consider increasing regularisation. Duality gap: 4.807e-06, tolerance: 4.553e-06 model = cd_fast.enet_coordinate_descent( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running ExtraTreeRegressor model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running ExtraTreesRegressor model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running GaussianProcessRegressor model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running GradientBoostingRegressor model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running HistGradientBoostingRegressor model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running HuberRegressor model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/linear_model/_huber.py:342: ConvergenceWarning: lbfgs failed to converge (status=1): STOP: TOTAL NO. OF ITERATIONS REACHED LIMIT. Increase the number of iterations (max_iter) or scale the data as shown in: https://scikit-learn.org/stable/modules/preprocessing.html self.n_iter_ = _check_optimize_result("lbfgs", opt_res, self.max_iter) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running KNeighborsRegressor model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running KernelRidge model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running LGBMRegressor model [LightGBM] [Warning] Found whitespace in feature_names, replace with underlines /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running Lars model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running LarsCV model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/linear_model/_least_angle.py:639: ConvergenceWarning: Regressors in active set degenerate. Dropping a regressor, after 32 iterations, i.e. alpha=1.162e-02, with an active set of 25 regressors, and the smallest cholesky pivot element being 2.220e-16. Reduce max_iter or increase eps parameters. warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running Lasso model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/ai4water/utils/utils.py:1397: RuntimeWarning: Precision loss occurred in moment calculation due to catastrophic cancellation. This occurs when the data are nearly identical. Results may be unreliable. stats[feat] = np.round(point_features[feat](data), precision) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running LassoCV model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/linear_model/_coordinate_descent.py:628: ConvergenceWarning: Objective did not converge. You might want to increase the number of iterations, check the scale of the features or consider increasing regularisation. Duality gap: 4.821e-06, tolerance: 4.553e-06 model = cd_fast.enet_coordinate_descent( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running LassoLars model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/ai4water/utils/utils.py:1397: RuntimeWarning: Precision loss occurred in moment calculation due to catastrophic cancellation. This occurs when the data are nearly identical. Results may be unreliable. stats[feat] = np.round(point_features[feat](data), precision) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running LassoLarsCV model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running LassoLarsIC model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running LinearRegression model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running LinearSVR model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/svm/_classes.py:32: FutureWarning: The default value of `dual` will change from `True` to `'auto'` in 1.5. Set the value of `dual` explicitly to suppress the warning. warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/svm/_base.py:1250: ConvergenceWarning: Liblinear failed to converge, increase the number of iterations. warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running MLPRegressor model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running NuSVR model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running OneClassSVM model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running OrthogonalMatchingPursuit model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running OrthogonalMatchingPursuitCV model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running PoissonRegressor model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/linear_model/_linear_loss.py:290: RuntimeWarning: invalid value encountered in matmul grad[:n_features] = X.T @ grad_pointwise + l2_reg_strength * weights /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/ai4water/utils/utils.py:1397: RuntimeWarning: Precision loss occurred in moment calculation due to catastrophic cancellation. This occurs when the data are nearly identical. Results may be unreliable. stats[feat] = np.round(point_features[feat](data), precision) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running RANSACRegressor model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running RadiusNeighborsRegressor model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running RandomForestRegressor model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running Ridge model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running RidgeCV model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running SGDRegressor model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running SVR model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/ai4water/utils/utils.py:1397: RuntimeWarning: Precision loss occurred in moment calculation due to catastrophic cancellation. This occurs when the data are nearly identical. Results may be unreliable. stats[feat] = np.round(point_features[feat](data), precision) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running TheilSenRegressor model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running TweedieRegressor model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/linear_model/_glm/glm.py:282: ConvergenceWarning: lbfgs failed to converge (status=1): STOP: TOTAL NO. OF ITERATIONS REACHED LIMIT. Increase the number of iterations (max_iter) or scale the data as shown in: https://scikit-learn.org/stable/modules/preprocessing.html self.n_iter_ = _check_optimize_result("lbfgs", opt_res) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running XGBRFRegressor model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) running XGBRegressor model /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/scipy/stats/_stats_py.py:228: RuntimeWarning: invalid value encountered in log log_a = xp.log(a) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) .. GENERATED FROM PYTHON SOURCE LINES 65-77 .. code-block:: Python r2 = experiment.compare_errors( 'r2', x=TestX, y=TestY, figsize=(8, 10), cutoff_type='greater', cutoff_val=0.1, colors=("#005066", "#B3331D") ) if SAVE: plt.savefig("results/figures/exp_r2.png", dpi=600, bbox_inches="tight") plt.tight_layout() plt.show() .. image-sg:: /auto_examples/images/sphx_glr_experiments_001.png :alt: Training, Test :srcset: /auto_examples/images/sphx_glr_experiments_001.png, /auto_examples/images/sphx_glr_experiments_001_2_00x.png 2.00x :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/neighbors/_regression.py:500: UserWarning: One or more samples have no neighbors within specified radius; predicting NaN. warnings.warn(empty_warning_msg) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/utils.py:683: UserWarning: Elements(s) [ 3 10 14 39 50 53 74 113 114 121 123 133 169 178 210 212 235 272 273 275 301 304 341 362 364 386 390 392 448 451] contained NaN values in the simulated array and elements(s) [] contained NaN values in the observed array and have been replaced (Elements are zero indexed). warnings.warn("Elements(s) {} contained NaN values in the simulated array and " /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) .. GENERATED FROM PYTHON SOURCE LINES 78-81 .. code-block:: Python print(r2) .. rst-class:: sphx-glr-script-out .. code-block:: none train test RandomForestRegressor 0.948535 0.944916 DecisionTreeRegressor 0.955957 0.943930 ExtraTreeRegressor 0.955957 0.943876 ExtraTreesRegressor 0.955957 0.943163 BaggingRegressor 0.945080 0.928714 CatBoostRegressor 0.915277 0.909172 XGBRegressor 0.913800 0.907283 GaussianProcessRegressor 0.943069 0.875830 HistGradientBoostingRegressor 0.832183 0.821290 LGBMRegressor 0.832183 0.821270 GradientBoostingRegressor 0.729901 0.770593 XGBRFRegressor 0.715011 0.746971 KNeighborsRegressor 0.758167 0.692704 AdaBoostRegressor 0.483460 0.530845 NuSVR 0.464450 0.522559 LassoLarsCV 0.443064 0.487327 RidgeCV 0.443160 0.487185 KernelRidge 0.443440 0.486951 Ridge 0.443440 0.486940 BayesianRidge 0.442324 0.486619 LinearRegression 0.444494 0.486033 LassoLarsIC 0.439580 0.483326 LinearSVR 0.429765 0.477060 TweedieRegressor 0.433127 0.473886 HuberRegressor 0.414285 0.465340 LassoCV 0.418865 0.455654 ElasticNetCV 0.418857 0.455645 TheilSenRegressor 0.405089 0.445110 OrthogonalMatchingPursuitCV 0.374931 0.395476 RANSACRegressor 0.307228 0.354534 OrthogonalMatchingPursuit 0.280149 0.299243 ARDRegression 0.217711 0.225830 LarsCV 0.206276 0.201215 ElasticNet 0.192400 0.185600 SGDRegressor 0.141413 0.173790 .. GENERATED FROM PYTHON SOURCE LINES 82-94 .. code-block:: Python r2_score = experiment.compare_errors( 'r2_score', x=TestX, y=TestY, figsize=(8, 10), cutoff_type='greater', cutoff_val=0.1, colors=("#005066", "#B3331D") ) if SAVE: plt.savefig("results/figures/exp_r2_score.png", dpi=600, bbox_inches="tight") plt.tight_layout() plt.show() .. image-sg:: /auto_examples/images/sphx_glr_experiments_002.png :alt: Training, Test :srcset: /auto_examples/images/sphx_glr_experiments_002.png, /auto_examples/images/sphx_glr_experiments_002_2_00x.png 2.00x :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/neighbors/_regression.py:500: UserWarning: One or more samples have no neighbors within specified radius; predicting NaN. warnings.warn(empty_warning_msg) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/utils.py:683: UserWarning: Elements(s) [ 3 10 14 39 50 53 74 113 114 121 123 133 169 178 210 212 235 272 273 275 301 304 341 362 364 386 390 392 448 451] contained NaN values in the simulated array and elements(s) [] contained NaN values in the observed array and have been replaced (Elements are zero indexed). warnings.warn("Elements(s) {} contained NaN values in the simulated array and " /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) .. GENERATED FROM PYTHON SOURCE LINES 95-97 .. code-block:: Python print(r2_score) .. rst-class:: sphx-glr-script-out .. code-block:: none train test RandomForestRegressor 0.948191 0.944546 ExtraTreeRegressor 0.955957 0.943248 DecisionTreeRegressor 0.955957 0.943215 ExtraTreesRegressor 0.955957 0.942583 BaggingRegressor 0.944782 0.928529 CatBoostRegressor 0.913335 0.907967 XGBRegressor 0.911040 0.904665 GaussianProcessRegressor 0.943063 0.863298 HistGradientBoostingRegressor 0.829632 0.818793 LGBMRegressor 0.829632 0.818775 GradientBoostingRegressor 0.717602 0.751642 XGBRFRegressor 0.710365 0.741782 KNeighborsRegressor 0.757078 0.690158 AdaBoostRegressor 0.461476 0.508869 NuSVR 0.449525 0.491272 LassoLarsCV 0.443064 0.481309 RidgeCV 0.443160 0.481178 KernelRidge 0.443440 0.481034 Ridge 0.443439 0.481023 LinearRegression 0.444494 0.480367 BayesianRidge 0.442302 0.480205 LassoLarsIC 0.439471 0.476316 LinearSVR 0.413797 0.467761 TweedieRegressor 0.432951 0.467218 LassoCV 0.418363 0.448367 ElasticNetCV 0.418356 0.448358 TheilSenRegressor 0.403797 0.443625 HuberRegressor 0.399498 0.427054 OrthogonalMatchingPursuitCV 0.374931 0.393605 RANSACRegressor 0.287298 0.352114 OrthogonalMatchingPursuit 0.280149 0.296832 ARDRegression 0.217709 0.224318 LarsCV 0.202643 0.196257 .. GENERATED FROM PYTHON SOURCE LINES 98-107 .. code-block:: Python r2_score = experiment.compare_errors( 'r2_score', x=TestX, y=TestY, figsize=(8, 10), cutoff_type='greater', cutoff_val=0.5, colors=("#005066", "#B3331D") ) plt.tight_layout() plt.show() .. image-sg:: /auto_examples/images/sphx_glr_experiments_003.png :alt: Training, Test :srcset: /auto_examples/images/sphx_glr_experiments_003.png, /auto_examples/images/sphx_glr_experiments_003_2_00x.png 2.00x :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/neighbors/_regression.py:500: UserWarning: One or more samples have no neighbors within specified radius; predicting NaN. warnings.warn(empty_warning_msg) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/utils.py:683: UserWarning: Elements(s) [ 3 10 14 39 50 53 74 113 114 121 123 133 169 178 210 212 235 272 273 275 301 304 341 362 364 386 390 392 448 451] contained NaN values in the simulated array and elements(s) [] contained NaN values in the observed array and have been replaced (Elements are zero indexed). warnings.warn("Elements(s) {} contained NaN values in the simulated array and " /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/core/fromnumeric.py:3643: FutureWarning: The behavior of DataFrame.std with axis=None is deprecated, in a future version this will reduce over both axes and return a scalar. To retain the old behavior, pass axis=0 (or do not pass axis) return std(axis=axis, dtype=dtype, out=out, ddof=ddof, **kwargs) .. GENERATED FROM PYTHON SOURCE LINES 108-111 .. code-block:: Python print(r2_score) .. rst-class:: sphx-glr-script-out .. code-block:: none train test RandomForestRegressor 0.948191 0.944546 ExtraTreeRegressor 0.955957 0.943248 DecisionTreeRegressor 0.955957 0.943215 ExtraTreesRegressor 0.955957 0.942583 BaggingRegressor 0.944782 0.928529 CatBoostRegressor 0.913335 0.907967 XGBRegressor 0.911040 0.904665 GaussianProcessRegressor 0.943063 0.863298 HistGradientBoostingRegressor 0.829632 0.818793 LGBMRegressor 0.829632 0.818775 GradientBoostingRegressor 0.717602 0.751642 XGBRFRegressor 0.710365 0.741782 KNeighborsRegressor 0.757078 0.690158 AdaBoostRegressor 0.461476 0.508869 .. GENERATED FROM PYTHON SOURCE LINES 112-128 .. code-block:: Python figure = experiment.taylor_plot( data=data, figsize=(8, 8), include=r2_score.index.tolist(), leg_kws={'facecolor': 'white', 'edgecolor': 'black', 'bbox_to_anchor':(1.0, 0.9), 'fontsize': 10, 'labelspacing': 1.0, 'ncol': 1 }, ) figure.axes[0].axis['left'].label.set_text('') figure.axes[0].set_title('Training') if SAVE: plt.savefig("results/figures/exp_taylor.png", dpi=600, bbox_inches="tight") plt.tight_layout() plt.show() .. image-sg:: /auto_examples/images/sphx_glr_experiments_004.png :alt: , Training, Test :srcset: /auto_examples/images/sphx_glr_experiments_004.png, /auto_examples/images/sphx_glr_experiments_004_2_00x.png 2.00x :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none ***** Training ***** input_x shape: (854, 34) target shape: (854, 1) ***** Validation ***** input_x shape: (214, 34) target shape: (214, 1) ***** Test ***** input_x shape: (459, 34) target shape: (459, 1) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but ExtraTreeRegressor was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but Lasso was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but ARDRegression was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but LinearSVR was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but ExtraTreesRegressor was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but BaggingRegressor was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but TweedieRegressor was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but OneClassSVM was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but RANSACRegressor was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but SVR was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but HistGradientBoostingRegressor was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but ElasticNetCV was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but SGDRegressor was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but KernelRidge was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but LassoLarsCV was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but TheilSenRegressor was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but LassoLars was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but RadiusNeighborsRegressor was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/neighbors/_regression.py:500: UserWarning: One or more samples have no neighbors within specified radius; predicting NaN. warnings.warn(empty_warning_msg) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/utils.py:683: UserWarning: Elements(s) [ 6 17 27 37 165 175 185 197 207 217 429 439 449] contained NaN values in the simulated array and elements(s) [] contained NaN values in the observed array and have been replaced (Elements are zero indexed). warnings.warn("Elements(s) {} contained NaN values in the simulated array and " /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but MLPRegressor was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but KNeighborsRegressor was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but OrthogonalMatchingPursuitCV was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but LarsCV was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:2743: RuntimeWarning: invalid value encountered in divide zy = (predicted - np.mean(predicted)) / np.std(predicted, ddof=1) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/lib/function_base.py:2897: RuntimeWarning: invalid value encountered in divide c /= stddev[:, None] /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/numpy/lib/function_base.py:2898: RuntimeWarning: invalid value encountered in divide c /= stddev[None, :] /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but Ridge was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but RandomForestRegressor was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but LinearRegression was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but NuSVR was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but HuberRegressor was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but LassoCV was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but PoissonRegressor was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but GaussianProcessRegressor was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but GradientBoostingRegressor was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but Lars was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but LassoLarsIC was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but BayesianRidge was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but RidgeCV was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but ElasticNet was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but AdaBoostRegressor was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but OrthogonalMatchingPursuit was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: divide by zero encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/sklearn/base.py:465: UserWarning: X does not have valid feature names, but DecisionTreeRegressor was fitted with feature names warnings.warn( /home/docs/checkouts/readthedocs.org/user_builds/weil101/envs/latest/lib/python3.12/site-packages/SeqMetrics/_rgr.py:3577: RuntimeWarning: invalid value encountered in divide return float(np.mean(np.abs((true - predicted) / true)) * 100) .. rst-class:: sphx-glr-timing **Total running time of the script:** (1 minutes 42.855 seconds) .. _sphx_glr_download_auto_examples_experiments.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: experiments.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: experiments.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: experiments.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_