C4.5算法學習【一】

爲了記錄,也爲了日後重溫,更爲了交學習報告,決定寫下每天的學習情況

先貼點學習資料網站什麼的:

http://www2.cs.uregina.ca/~dbd/cs831/index.html(剛好有weka,kdd的介紹,更剛好又C4.5)

 

"Quinlan" "C4. 5: programs for machine learning"的電子版,可惜不能下

http://www.google.com/books?hl=zh-CN&lr=&id=HExncpjbYroC&oi=fnd&pg=PR7&dq=%22Quinlan%22+%22C4.+5:+programs+for+machine+learning%22+&ots=nJpdcSx0Xo&sig=djBDwgiSRoqHinBnnMzxJo3vOpk#v=onepage&q=&f=false

 

關於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)裏了。

 

然後按照這個:

  1. Download the C4.5 source code.
  2. Decompress the archive:
  3. Type "tar xvzf c4.5r8.tar" (not universally supported), or, alternatively,
  4. Type "gunzip c4.5r8.tar.gz" to decompress the gzip archive, and then
    Type "tar xvf c4.5r8.tar" to decompress the tar archive.
  5. Change to ./R8/Src
  6. Type "make all" to compile the executables.
  7. Put the executables into a "bin" subdirectory and include it in the path for command-line usage.

弄好就可以用了。

 

源碼就在 R8/Src裏

 

先從 c4.5.c  這個文件開始吧。看着代碼才發現自己的C/C++水平很菜!分析的不對請指出。

 

 

 

 

 

杯具一次插不完 - -! 略掉一部分不是很重要的繼續插 - -!

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章