Skip to content

The use of "default_class_id" in multiclass classification #1516

Answered by AdeelH
greenhawktobias asked this question in Q&A
Discussion options

You must be logged in to vote

default_class_id is for GeoJSON features that don't have any class info. If all the features in your GeoJSON have a class ID or name, then default_class_id will have no effect. If you set it to None, features without any class info will be dropped.

See docs. These docs are not for v0.13 but the class inference logic is the same.

default_class_id is mostly useful when you have just one foreground class and all the GeoJSON features belong to that class but don't have class info in their properties. In such a case, default_class_id saves you the trouble of altering your GeoJSON file,

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by greenhawktobias
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants