The ff_prep
function is designed to prepare data for training, validating, and predicting deforestation using the ForestForesight algorithm. It processes spatial data (rasters and vectors) for specified areas (countries or custom shapes) and dates. The function handles tasks such as loading raster data, filtering features, sampling data, adding date-related features, and preparing ground truth data for model training and validation.
Exercises:It is important to note that ff_prep will take the last previous date for every month for every feature, as illustrated below.
...
Exercises
Basic Usage:
Create a simple call toff_prep
for a specific country and date range.
...