I was trying to perform a supervised classification of a mangrove forest using collocated sentinel 1 and 2 images using this code. With the help provided by @Xunilk, I finally managed to run the code. However, there is an error, which is:
image: Layer error: Can't encode object: min()
Reduces an image collection by calculating the minimum value of each
pixel across the stack of all matching bands. Bands are matched by
name.Args: this:collection (ImageCollection): The image collection to
reduce.
Other results seem as expected. I am not understanding the problem!
Best Answer
I checked your code out and it looks now without any problem. I also fixed an issue to export classified image to Google Drive.
After running it in the GEE code editor, I got the output as below picture. Notice that the export task also ran successfully.