cmip6_downscaling.methods.gard.tasks.fit_and_predict

Contents

cmip6_downscaling.methods.gard.tasks.fit_and_predict#

cmip6_downscaling.methods.gard.tasks.fit_and_predict = <Task: fit_and_predict>[source]#

Prepare inputs (e.g. normalize), use them to fit a GARD model based upon specified parameters and then use that fitted model to make a prediction.

Parameters:
xtrain_pathUPath

Path to training dataset (interpolated GCM) chunked full_time

ytrain_pathUPath

Path to target dataset (interpolated obs) chunked full_time

xhist_path: UPath

Path to historical prediction dataset (interpolated GCM)

xpred_pathUPath

Path to future prediction dataset (interpolated GCM) chunked full_time

scrf_pathUPath

Path to scrf chunked in full_time

run_parametersRunParameters

Parameters for run set-up and model specs

dimstr, optional

Dimension to apply the model along. Default is time.

Returns:
pathUPath

Path to output dataset chunked full_time