For the MLM (Machine Learning Model) extension, we are planing to reuse the definition of https://github.com/stac-extensions/classification?tab=readme-ov-file#class-object within Model Output definitions, since they are extremely related. For example, the following mlm:ouput can directly take advantage of classification:classes to indicate which class pixel values are expected to be produced by the model. Using this definition, creating a derived STAC Item product from the model prediction is simplified, since one only needs to copy the nested classification:classes directly into the derived STAC Item.
For the moment, the MLM JSON schema can point directly at the classification:classes definition to fulfil the validation, but the stac_extensions of the MLM STAC Item cannot really include the classification schema, since no field is technically respecting it at the moment. Would it be possible to do something similar to the strategy employed for raster:bands/classification:classes below?
For the MLM (Machine Learning Model) extension, we are planing to reuse the definition of https://github.com/stac-extensions/classification?tab=readme-ov-file#class-object within Model Output definitions, since they are extremely related. For example, the following
mlm:ouput
can directly take advantage ofclassification:classes
to indicate which class pixel values are expected to be produced by the model. Using this definition, creating a derived STAC Item product from the model prediction is simplified, since one only needs to copy the nestedclassification:classes
directly into the derived STAC Item.For the moment, the MLM JSON schema can point directly at the
classification:classes
definition to fulfil the validation, but thestac_extensions
of the MLM STAC Item cannot really include theclassification
schema, since no field is technically respecting it at the moment. Would it be possible to do something similar to the strategy employed forraster:bands
/classification:classes
below?https://github.com/stac-extensions/classification/blob/a1e713978b8cd9ac3c8b4778d140179d5e8c9022/json-schema/schema.json#L225-L236
https://github.com/stac-extensions/classification/blob/a1e713978b8cd9ac3c8b4778d140179d5e8c9022/examples/item-classes-maxar.json#L146-L148