predictionio-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Natu Lauchande <nlaucha...@gmail.com>
Subject Re: Demo text classification - label field
Date Thu, 19 Jan 2017 11:43:32 GMT
Hi,

This should be a numeric map to your domain categories. You should maintain
a lookup somewhere between your actual categories identifier and the
expected numeric value expected in the algorithm. I ended up hacking my
data source to include my original category id identifier .

Regards,
Natu

On Thu, Jan 19, 2017 at 12:40 PM, Marcus Vinicius <marcusvas@gmail.com>
wrote:

> Hello guys,
>
>
> i followed all steps to perform text classification by
> http://predictionio.incubator.apache.org/demo/textclassification/.
>
> Now i want to use it to my scenario. I will change DataSource as said in
> tutorial, but what is 'label' field? Which double value could i give to it?
>
> To spam example the author set '1.0' to spam and '0.0' to not spam.
> To newsgroup example the author set values like `11.0`, `19.0`
>
> What the purpose of this field?
>
> I really appreciate any help you can provide.
>
> --
>
> Marcus Vinicius A. Silva
>
> *P*  *ANTES DE IMPRIMIR pense em sua responsabilidade e compromisso
> com o MEIO AMBIENTE.*
>

Mime
View raw message