爲了記錄,也爲了日後重溫,更爲了交學習報告,決定寫下每天的學習情況
先貼點學習資料網站什麼的:
http://www2.cs.uregina.ca/~dbd/cs831/index.html(剛好有weka,kdd的介紹,更剛好又C4.5)
"Quinlan" "C4. 5: programs for machine learning"的電子版,可惜不能下
關於C4.5的介紹暫時略。
本來想看weka的源碼的,可以根本就是白費工,Java纔剛學,杯具.....
第一天分析:
結合這個網頁的資料:
http://www2.cs.uregina.ca/~dbd/cs831/notes/ml/dtrees/c4.5/tutorial.html
下載裏面的源碼:c4.5r8.tar.gz
因爲是"C4.5 Release 8 Installation Instructions for UNIX"
所以只好弄到我的虛擬機裏的linux(ubuntu)裏了。
然後按照這個:
- Download the C4.5 source code.
- Decompress the archive:
- Type "tar xvzf c4.5r8.tar" (not universally supported), or, alternatively,
- Type "gunzip c4.5r8.tar.gz" to decompress the gzip archive, and then
Type "tar xvf c4.5r8.tar" to decompress the tar archive. - Change to ./R8/Src
- Type "make all" to compile the executables.
- Put the executables into a "bin" subdirectory and include it in the path for command-line usage.
弄好就可以用了。
源碼就在 R8/Src裏
先從 c4.5.c 這個文件開始吧。看着代碼才發現自己的C/C++水平很菜!分析的不對請指出。
杯具一次插不完 - -! 略掉一部分不是很重要的繼續插 - -!