Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add validation of MLM output using classification:classes (fixes #48) #50

Merged
merged 6 commits into from
May 14, 2024

Conversation

fmigneault
Copy link
Contributor

@fmigneault fmigneault commented Apr 19, 2024

As proposed in #48, adds the validation of classification:classes nested under an mlm:output definition.

Adds an example demonstrating how it can be used.

For the moment, the MLM URI validation fails inside the npm checker as it is not yet published on stac-extensions (to be discussed in the next community meeting how to make that happen). The corresponding Item (https://github.com/crim-ca/dlm-extension/blob/v1.0.0/examples/item_raster_bands.json) is however validated in using the mapping in the repository https://github.com/crim-ca/dlm-extension/blob/v1.0.0/package.json#L8-L9.

Uses the URI defined on https://crim-ca.github.io/mlm-extension/v1.1.0/schema.json

Looking for initial feedback in case some adjustments must be done before the MLM extension is published officially.

Fixes #48

@m-mohr m-mohr requested review from pjhartzell and drwelby April 22, 2024 15:24
@fmigneault
Copy link
Contributor Author

@m-mohr Should we wait more for feedback or can it be merged as is?

@m-mohr
Copy link
Contributor

m-mohr commented May 11, 2024

I think we can merge, but was just thinking that we should add a note in the Readme and a change log entry.

@fmigneault
Copy link
Contributor Author

@m-mohr Added in the latest commits.

Comment on lines +15 to 18
- `nodata` to `classification:classes`
- `nodata` to Class Object
- `percentage` to Class Object
- `count` to Class Object
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- `nodata` to `classification:classes`
- `nodata` to Class Object
- `percentage` to Class Object
- `count` to Class Object
- `nodata` to the Class Object
- `nodata` to the Class Object
- `percentage` to the Class Object
- `count` to the Class Object

@m-mohr
Copy link
Contributor

m-mohr commented May 13, 2024

@m-mohr Added in the latest commits.

Thanks. With regards to the README, I think it should be mentioned here:
https://github.com/stac-extensions/classification/pull/50/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R44-R51

Otherwise it's not clear from the README directly that it can be used in MLM.

@fmigneault
Copy link
Contributor Author

@m-mohr Added in c10239a

@m-mohr m-mohr merged commit bbe04d7 into stac-extensions:main May 14, 2024
1 check passed
@m-mohr
Copy link
Contributor

m-mohr commented May 14, 2024

Thanks.

@fmigneault fmigneault deleted the add-mlm-output branch May 15, 2024 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proposal: Extend the Classification schema for integration with Machine Learning Model extension
2 participants