Commit ced08fea authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

'RFR' is currently rejected as method for harmonization due to still missing classifiers.

parent da7f0395
Pipeline #3754 failed with stage
in 18 minutes and 45 seconds
......@@ -337,6 +337,11 @@ class JobConfig(object):
self.spechomo_estimate_accuracy = gp('spechomo_estimate_accuracy')
self.spechomo_bandwise_accuracy = gp('spechomo_bandwise_accuracy')
if self.spechomo_method == 'RFR':
raise NotImplementedError("The spectral harmonization method 'RFR' is currently not completely implemented."
"Please us another one.")
# FIXME RFR classifiers are missing (cannot be added to the repository to to file size > 1 GB)
# L2C
self.exec_L2CP = gp('exec_L2CP')
......
......@@ -296,6 +296,7 @@ class Test_SpectralHomogenizer(unittest.TestCase):
self.assertEqual(errors.shape, (50, 50, 13))
self.assertEqual(errors.dtype, np.int16)
@unittest.SkipTest # FIXME RFR classifiers are missing (cannot be added to the repository to to file size > 1 GB)
def test_predict_by_machine_learner__RFR_L8_S2(self):
"""Test random forest regression from Landsat-8 to Sentinel-2A."""
predarr, errors = self.SpH.predict_by_machine_learner(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment