import numpy as np
import xarray as xr
import pandas as pd
import matplotlib.pyplot as plt
import polire
from sklearn.neighbors import KNeighborsRegressor
from sklearn.linear_model import LinearRegression
from sklearn.ensemble import RandomForestRegressor
from sklearn.metrics import (
mean_squared_error,
mean_absolute_error,
mean_absolute_percentage_error,
r2_score,
)
# set default cmap
"image.cmap"] = "RdYlGn_r"
plt.rcParams[="RdYlGn_r") xr.set_options(cmap_sequential
<xarray.core.options.set_options at 0x7fc3b0198c40>