[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wekalist
Subject:    [Wekalist] weka bug : class Instances
From:       "wyf" <54wang_yf () sohu ! com>
Date:       2005-12-30 7:14:36
Message-ID: 19194373.1135926876414.JavaMail.postfix () mx37 ! mail ! sohu ! com
[Download RAW message or body]

[Attachment #2 (multipart/related)]

[Attachment #4 (multipart/alternative)]


      There seems to be some bug in class Instances. if an object of class Instances \
is created directly by new Instance(...), all its member functions work well. While \
created indirectly, like by Instances.trainCV(...), some of its member functions fail \
to work. The following program prints the result of Instances.trainCV(...).toString() \
with a strange number. <p>    <p>public class Test {<p>   public static void \
main(String[] ops) {<p>     try {<p>       Instances insts = new Instances(new \
FileReader("data/iris.arff"));<p>       System.out.println(insts.trainCV(3, 1));<p>   \
} catch (Exception e) {<p>       e.printStackTrace();<p>     }<p>   }<p>}  \
<p><p><p>¡¡¡¡¡¡¡¡¡¡¡¡¡¡  yaofeng \
<p>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡54wang_yf@sohu.com<p>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2005-12-30


[Attachment #7 (text/html)]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312"></head>
<body>
<!--SOHUMAIL_HTML_HEAD_END-->      There seems to be some bug in class Instances. if \
an object of class Instances is created directly by new Instance(...), all its member \
functions work well. While created indirectly, like by Instances.trainCV(...), some \
of its member functions fail to work. The following program prints the result of \
Instances.trainCV(...).toString() with a strange number. <p>    <p>public class Test \
{<p>   public static void main(String[] ops) {<p>     try {<p>       Instances insts \
= new Instances(new FileReader("data/iris.arff"));<p>       \
System.out.println(insts.trainCV(3, 1));<p>     } catch (Exception e) {<p>       \
e.printStackTrace();<p>     }<p>   }<p>}  <p><p><p>¡¡¡¡¡¡¡¡¡¡¡¡¡¡  yaofeng \
<p>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡54wang_yf@sohu.com<p>¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2005-12-30<hr \
size=1><style type="text/css"> <!--
a {font-size:12px;color:black}
a:hover {font-size:12px;text-decoration:underline}
.b{font-family:Arial; font-size:80%; margin-bottom:2px;color:#0000CC}
.pp{font-family:Arial;font-size:10px}
-->
</style>
<table border=0>
<!--tr><td height=18><a href=http://goto.sohu.com/goto.php3?code=mailadt-ta1 \
target=_blank>ËѺüСÎÀÊ¿¡ª¡ªÈ«Ð ·´À¬»øϵͳ</a> <br>
</td></tr-->
<tr><td height=18><a href=http://goto.sohu.com/goto.php3?code=mailadt-ta1 \
target=_blank><font color=red>Ö»ÒªÌáÒâ¼û¾ÍÄܵô󽱣¡</font></a> </td></tr>
<br>
<tr><td height=18><a href=http://goto.sohu.com/goto.php3?code=mailadt-ta \
target=_blank>SOHU.COMͬÃûÉý¼¶VIP£¬ÎÒµÄÃû×ÖÎÒ×öÖ÷£¡</a> </td></tr>


</table><!--SOHUMAIL_HTML_TAIL_END--></body>
</html>



_______________________________________________
Wekalist mailing list
Wekalist@list.scms.waikato.ac.nz
https://list.scms.waikato.ac.nz/mailman/listinfo/wekalist


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic