sethjuarez / numl

Machine Learning for .NET
http://numl.net
MIT License
430 stars 104 forks source link

Difference with Label and StringLabel Attributes #70

Closed pfdundar closed 7 years ago

pfdundar commented 7 years ago

What is the difference with [Label] and [StringLabel] attributes?

bdschrisk commented 7 years ago

The StringLabel attribute inherits from Label for the purposes of predicting string types which allows models to perform inference accordingly. To avoid exceptions you should decorate strings as the StringLabel attribute if you're attempting to use them as the model target.