Log. regression: how to display more digits for the coefficients?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Log. regression: how to display more digits for the coefficients?

Gerhard Marini
Dear all,

having performed a log. regression on some attributes, I get the following  
coefficients:

Class 0 :
24.26 +
[a] * -1 +
[b] * 0.36 +
[c] * 0

Class 1 :
-6.39 +
[a] * 0.46 +
[b] * 0.62 +
[c] * 0

Class 2 :
-8.53 +
[a] * 0.56 +
[b] * -0.37 +
[c] * 0

However, the contribution of attribute c is definitely not zero (since I  
get a different classification result when I leave out c for building the  
model). So my guess is that the relevant digits get truncated in the  
display. How can I display more digits?

Thanks in advance,

Gerhard

_______________________________________________
Wekalist mailing list
[hidden email]
https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Log. regression: how to display more digits for the coefficients?

Eibe Frank
Unfortunately you need to hack the code, more specifically the
toString() method in Logistic.java, and replace 4 by a larger value in
the following line:

   result += " "+Utils.doubleToString(m_Par[j][k], 12, 4);

Alternatively you could try changing the value of the ridge parameter
(i.e. make it smaller, or even set it to 0).

Cheers,
Eibe

On May 13, 2005, at 1:43 AM, Gerhard Marini wrote:

> Dear all,
>
> having performed a log. regression on some attributes, I get the
> following coefficients:
>
> Class 0 :
> 24.26 +
> [a] * -1 +
> [b] * 0.36 +
> [c] * 0
>
> Class 1 :
> -6.39 +
> [a] * 0.46 +
> [b] * 0.62 +
> [c] * 0
>
> Class 2 :
> -8.53 +
> [a] * 0.56 +
> [b] * -0.37 +
> [c] * 0
>
> However, the contribution of attribute c is definitely not zero (since
> I get a different classification result when I leave out c for
> building the model). So my guess is that the relevant digits get
> truncated in the display. How can I display more digits?
>
> Thanks in advance,
>
> Gerhard
>
> _______________________________________________
> Wekalist mailing list
> [hidden email]
> https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist


_______________________________________________
Wekalist mailing list
[hidden email]
https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist
Loading...