hubverse-org / schemas

JSON schemas for modeling hubs
Creative Commons Zero v1.0 Universal
4 stars 3 forks source link

Does `required` and `optional` apply to categorical output types #10

Closed annakrystalli closed 2 years ago

annakrystalli commented 2 years ago

Given probabilities across all possible categories sum to 1, it doesn't make much sense to me to have some categories optional and some required?

If anything feels like they should either all be required or all optional (with any missing assumed to be 0 probability) so long as what is provided sums to one?

annakrystalli commented 2 years ago

Also, examples of possible categories welcome!

nickreich commented 2 years ago

I like a plan where all categories are optional (with any missing assumed to be 0 probability) with a check that the probabilities provided sum to one.

Some example categories: Example 1, like a level of incidence : ["low", "moderate", "high", "extreme"] Example 2, like a trend: ["flat", "increasing", "decreasing"]

annakrystalli commented 2 years ago

Closed via #11