-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME.txt
120 lines (73 loc) · 4.09 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
FastRandomForest v0.9
---------------------
Copyright (c) 2008 Fran Supek (fran.supek[AT]irb.hr)
Contents:
* What is FastRandomForest?
* License
* Using from own Java code
* Using from Weka Explorer or Experimenter (3-5-7 or earlier)
* Using from Weka Explorer or Experimenter (3-5-8 or newer)
What is FastRandomForest?
-------------------------
FastRandomForest is a re-implementation of the Random Forest classifier (RF)
for the Weka environment that brings speed and memory use improvements over the
original Weka RF, without sacrificing accuracy.
Speed gains depend on many factors, but a 10-20x increase on a quad-core desktop
computer is not uncommon, along with a 2x reduction in memory use.
For detailed tests of speed and classification accuracy, as well as description
of changes to the code, please refer to the FastRandomForest wiki at
http://code.google.com/p/fast-random-forest/w
or email the author at fran.supek[AT]irb.hr.
License
-------
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 675 Mass
Ave, Cambridge, MA 02139, USA.
Using from own Java code
------------------------
Just add FastRandomForest.jar to your Java VM classpath by using the -cp
switch, or by changing project dependencies in NetBeans/Eclipse/whatever IDE
you use. Then use hr.irb.fastRandomForest.FastRandomForest as you would use
any other classifier, see instructions at the WekaWiki:
http://weka.sourceforge.net/wiki/index.php/Use_Weka_in_your_Java_code
Using from Weka Explorer or Experimenter (3-5-8 or newer)
---------------------------------------------------------
1. Add the FastRandomForest.jar to your Java classpath when starting Weka. This
is normally done by editing the line beginning with “cp=” in “RunWeka.ini”
2. You extract the “GenericObjectEditor.props” file from weka.jar
(jar files are in fact ordinary zip archives, the GenericObjectEditor.props is
under /weka/gui).
3. Place the file you've just extracted into the directory where you have
installed Weka (on Windows this is commonly "C:\Program Files\Weka-3-5")
4. Find the
# Lists the Classifiers I want to choose from
heading and scroll far down to the end of the block (first empty line), then
add a line:
hr.irb.fastRandomForest.FastRandomForest
Do not forget to append a comma and a backslash to the previous line.
5. The “FastRandomForest” class is in the "hr.irb.fastRandomForest" package
in the "Classify" tab. Enjoy.
Using from Weka Explorer or Experimenter (3-5-7 or earlier)
-----------------------------------------------------------
1. Add the FastRandomForest.jar to your Java classpath when starting Weka. This
is normally done by editing the line beginning with “cp=” in “RunWeka.ini”
If "cp=" doesn't exist, search for "cmd_default=" and add after "#wekajar#;".
2. You need to extract the “GenericPropertiesCreator.props” file from your
weka.jar (jar files are in fact ordinary zip archives, the
GenericPropertiesCreator.props is under /weka/gui).
3. Place the file you've just extracted into the directory where you have
installed Weka (on Windows this is commonly "C:\Program Files\Weka-3-5")
4. Under the
# Lists the Classifiers-Packages I want to choose from
heading, add the line
hr.irb.fastRandomForest
Do not forget to add a comma and a backslash to the previous line.
5. Use the “FastRandomForest” class is in the hr.irb.fastRandomForest
package in the "Classify" tab. The other three classes cannot be used directly.