Compile C50 GPL Edition
$begingroup$
See5 / C5.0 is Data Mining Tools available from rulequest
I want to compile C50 for Linux, preferably for CentOS 6.x, but I am unable to compile. I have also tried on Ubuntu, but not success there as well.
I have downloaded C50.tgz from C5.0 Release 2.07 GPL Edition
After extracting when I run ./Makefile it gives below error on Ubuntu18
./Makefile: line 9: CC: command not found
./Makefile: line 10: CFLAGS: command not found
./Makefile: line 11: S: command not found
./Makefile: line 11: LFLAGS: command not found
./Makefile: line 12: SHELL: command not found
./Makefile: line 19: src: command not found
./Makefile: line 48: obj: command not found
./Makefile: line 59: all:: command not found
cat defns.i global.c c50.c construct.c formtree.c info.c discr.c contin.c subset.c prune.c p-thresh.c trees.c siftrules.c ruletree.c rules.c getdata.c implicitatt.c mcost.c confmat.c sort.c update.c attwinnow.c classify.c formrules.c getnames.c modelfiles.c utility.c xval.c
| egrep -v 'defns.i|extern.i' >c50gt.c
make: /bin/csh: Command not found
Makefile:75: recipe for target 'c5.0' failed
make: *** [c5.0] Error 127
./Makefile: line 61: CC: command not found
./Makefile: line 61: LFLAGS: command not found
./Makefile: line 61: -o: command not found
./Makefile: line 67: obj: command not found
./Makefile: line 67: c5.0dbg:: command not found
./Makefile: line 68: CC: command not found
./Makefile: line 68: obj: command not found
./Makefile: line 68: -g: command not found
./Makefile: line 74: src: command not found
./Makefile: line 74: c5.0:: command not found
./Makefile: line 75: src: command not found
./Makefile: line 77: CC: command not found
./Makefile: line 77: LFLAGS: command not found
./Makefile: line 77: -O3: command not found
strip: 'c5.0': No such file
./Makefile: line 82: obj: command not found
./Makefile: line 85: .c.o:: command not found
./Makefile: line 86: syntax error near unexpected token `newline'
./Makefile: line 86: ` $(CC) $(CFLAGS) -c $<'
If I run make command, it gives below error.
make c5.0
make: /bin/csh: Command not found Makefile:60: recipe for
target 'all' failed make: *** [all] Error 127
gcc version is:
gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
decision-trees
New contributor
$endgroup$
add a comment |
$begingroup$
See5 / C5.0 is Data Mining Tools available from rulequest
I want to compile C50 for Linux, preferably for CentOS 6.x, but I am unable to compile. I have also tried on Ubuntu, but not success there as well.
I have downloaded C50.tgz from C5.0 Release 2.07 GPL Edition
After extracting when I run ./Makefile it gives below error on Ubuntu18
./Makefile: line 9: CC: command not found
./Makefile: line 10: CFLAGS: command not found
./Makefile: line 11: S: command not found
./Makefile: line 11: LFLAGS: command not found
./Makefile: line 12: SHELL: command not found
./Makefile: line 19: src: command not found
./Makefile: line 48: obj: command not found
./Makefile: line 59: all:: command not found
cat defns.i global.c c50.c construct.c formtree.c info.c discr.c contin.c subset.c prune.c p-thresh.c trees.c siftrules.c ruletree.c rules.c getdata.c implicitatt.c mcost.c confmat.c sort.c update.c attwinnow.c classify.c formrules.c getnames.c modelfiles.c utility.c xval.c
| egrep -v 'defns.i|extern.i' >c50gt.c
make: /bin/csh: Command not found
Makefile:75: recipe for target 'c5.0' failed
make: *** [c5.0] Error 127
./Makefile: line 61: CC: command not found
./Makefile: line 61: LFLAGS: command not found
./Makefile: line 61: -o: command not found
./Makefile: line 67: obj: command not found
./Makefile: line 67: c5.0dbg:: command not found
./Makefile: line 68: CC: command not found
./Makefile: line 68: obj: command not found
./Makefile: line 68: -g: command not found
./Makefile: line 74: src: command not found
./Makefile: line 74: c5.0:: command not found
./Makefile: line 75: src: command not found
./Makefile: line 77: CC: command not found
./Makefile: line 77: LFLAGS: command not found
./Makefile: line 77: -O3: command not found
strip: 'c5.0': No such file
./Makefile: line 82: obj: command not found
./Makefile: line 85: .c.o:: command not found
./Makefile: line 86: syntax error near unexpected token `newline'
./Makefile: line 86: ` $(CC) $(CFLAGS) -c $<'
If I run make command, it gives below error.
make c5.0
make: /bin/csh: Command not found Makefile:60: recipe for
target 'all' failed make: *** [all] Error 127
gcc version is:
gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
decision-trees
New contributor
$endgroup$
$begingroup$
I'm sorry, but I don't have enough reputation to comment, so I have to write an answer... what happens when you just give the commandmake
without target?
$endgroup$
– dcolazin
2 days ago
$begingroup$
Error of make command without target is also same as the error or make c5.0. By the way I have fixed the issue. I will be adding the solution shortly.
$endgroup$
– I Bajwa
yesterday
add a comment |
$begingroup$
See5 / C5.0 is Data Mining Tools available from rulequest
I want to compile C50 for Linux, preferably for CentOS 6.x, but I am unable to compile. I have also tried on Ubuntu, but not success there as well.
I have downloaded C50.tgz from C5.0 Release 2.07 GPL Edition
After extracting when I run ./Makefile it gives below error on Ubuntu18
./Makefile: line 9: CC: command not found
./Makefile: line 10: CFLAGS: command not found
./Makefile: line 11: S: command not found
./Makefile: line 11: LFLAGS: command not found
./Makefile: line 12: SHELL: command not found
./Makefile: line 19: src: command not found
./Makefile: line 48: obj: command not found
./Makefile: line 59: all:: command not found
cat defns.i global.c c50.c construct.c formtree.c info.c discr.c contin.c subset.c prune.c p-thresh.c trees.c siftrules.c ruletree.c rules.c getdata.c implicitatt.c mcost.c confmat.c sort.c update.c attwinnow.c classify.c formrules.c getnames.c modelfiles.c utility.c xval.c
| egrep -v 'defns.i|extern.i' >c50gt.c
make: /bin/csh: Command not found
Makefile:75: recipe for target 'c5.0' failed
make: *** [c5.0] Error 127
./Makefile: line 61: CC: command not found
./Makefile: line 61: LFLAGS: command not found
./Makefile: line 61: -o: command not found
./Makefile: line 67: obj: command not found
./Makefile: line 67: c5.0dbg:: command not found
./Makefile: line 68: CC: command not found
./Makefile: line 68: obj: command not found
./Makefile: line 68: -g: command not found
./Makefile: line 74: src: command not found
./Makefile: line 74: c5.0:: command not found
./Makefile: line 75: src: command not found
./Makefile: line 77: CC: command not found
./Makefile: line 77: LFLAGS: command not found
./Makefile: line 77: -O3: command not found
strip: 'c5.0': No such file
./Makefile: line 82: obj: command not found
./Makefile: line 85: .c.o:: command not found
./Makefile: line 86: syntax error near unexpected token `newline'
./Makefile: line 86: ` $(CC) $(CFLAGS) -c $<'
If I run make command, it gives below error.
make c5.0
make: /bin/csh: Command not found Makefile:60: recipe for
target 'all' failed make: *** [all] Error 127
gcc version is:
gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
decision-trees
New contributor
$endgroup$
See5 / C5.0 is Data Mining Tools available from rulequest
I want to compile C50 for Linux, preferably for CentOS 6.x, but I am unable to compile. I have also tried on Ubuntu, but not success there as well.
I have downloaded C50.tgz from C5.0 Release 2.07 GPL Edition
After extracting when I run ./Makefile it gives below error on Ubuntu18
./Makefile: line 9: CC: command not found
./Makefile: line 10: CFLAGS: command not found
./Makefile: line 11: S: command not found
./Makefile: line 11: LFLAGS: command not found
./Makefile: line 12: SHELL: command not found
./Makefile: line 19: src: command not found
./Makefile: line 48: obj: command not found
./Makefile: line 59: all:: command not found
cat defns.i global.c c50.c construct.c formtree.c info.c discr.c contin.c subset.c prune.c p-thresh.c trees.c siftrules.c ruletree.c rules.c getdata.c implicitatt.c mcost.c confmat.c sort.c update.c attwinnow.c classify.c formrules.c getnames.c modelfiles.c utility.c xval.c
| egrep -v 'defns.i|extern.i' >c50gt.c
make: /bin/csh: Command not found
Makefile:75: recipe for target 'c5.0' failed
make: *** [c5.0] Error 127
./Makefile: line 61: CC: command not found
./Makefile: line 61: LFLAGS: command not found
./Makefile: line 61: -o: command not found
./Makefile: line 67: obj: command not found
./Makefile: line 67: c5.0dbg:: command not found
./Makefile: line 68: CC: command not found
./Makefile: line 68: obj: command not found
./Makefile: line 68: -g: command not found
./Makefile: line 74: src: command not found
./Makefile: line 74: c5.0:: command not found
./Makefile: line 75: src: command not found
./Makefile: line 77: CC: command not found
./Makefile: line 77: LFLAGS: command not found
./Makefile: line 77: -O3: command not found
strip: 'c5.0': No such file
./Makefile: line 82: obj: command not found
./Makefile: line 85: .c.o:: command not found
./Makefile: line 86: syntax error near unexpected token `newline'
./Makefile: line 86: ` $(CC) $(CFLAGS) -c $<'
If I run make command, it gives below error.
make c5.0
make: /bin/csh: Command not found Makefile:60: recipe for
target 'all' failed make: *** [all] Error 127
gcc version is:
gcc (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
decision-trees
decision-trees
New contributor
New contributor
New contributor
asked 2 days ago
I BajwaI Bajwa
1062
1062
New contributor
New contributor
$begingroup$
I'm sorry, but I don't have enough reputation to comment, so I have to write an answer... what happens when you just give the commandmake
without target?
$endgroup$
– dcolazin
2 days ago
$begingroup$
Error of make command without target is also same as the error or make c5.0. By the way I have fixed the issue. I will be adding the solution shortly.
$endgroup$
– I Bajwa
yesterday
add a comment |
$begingroup$
I'm sorry, but I don't have enough reputation to comment, so I have to write an answer... what happens when you just give the commandmake
without target?
$endgroup$
– dcolazin
2 days ago
$begingroup$
Error of make command without target is also same as the error or make c5.0. By the way I have fixed the issue. I will be adding the solution shortly.
$endgroup$
– I Bajwa
yesterday
$begingroup$
I'm sorry, but I don't have enough reputation to comment, so I have to write an answer... what happens when you just give the command
make
without target?$endgroup$
– dcolazin
2 days ago
$begingroup$
I'm sorry, but I don't have enough reputation to comment, so I have to write an answer... what happens when you just give the command
make
without target?$endgroup$
– dcolazin
2 days ago
$begingroup$
Error of make command without target is also same as the error or make c5.0. By the way I have fixed the issue. I will be adding the solution shortly.
$endgroup$
– I Bajwa
yesterday
$begingroup$
Error of make command without target is also same as the error or make c5.0. By the way I have fixed the issue. I will be adding the solution shortly.
$endgroup$
– I Bajwa
yesterday
add a comment |
1 Answer
1
active
oldest
votes
$begingroup$
After extracting C50.tgz
file, give execution rights to Makefile
.
chmod +x Makefile
Then install csh
sudo apt install csh
Run below command to check if csh is install and check csh version (if installed)
dpkg -l csh
It should show output like below.
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============================-====================-====================-==================================================================
ii csh 20110502-3 amd64 Shell with C-like syntax
Now run below command.
./Makefile
It should give output like below. (Ignore the warning messages).
./Makefile: line 9: CC: command not found
./Makefile: line 10: CFLAGS: command not found
./Makefile: line 11: S: command not found
./Makefile: line 11: LFLAGS: command not found
./Makefile: line 12: SHELL: command not found
./Makefile: line 19: src: command not found
./Makefile: line 48: obj: command not found
./Makefile: line 59: all:: command not found
cat defns.i global.c c50.c construct.c formtree.c info.c discr.c contin.c subset.c prune.c p-thresh.c trees.c siftrules.c ruletree.c rules.c g etdata.c implicitatt.c mcost.c confmat.c sort.c update.c attwinnow.c classify.c formrules.c getnames.c modelfiles.c utility.c xval.c
| egrep -v 'defns.i|extern.i' >c50gt.c
gcc -ffloat-store -O3 -o c5.0 c50gt.c -lm
c50gt.c: In function ‘ListAttsUsed’:
c50gt.c:14025:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Att = (Attribute) DefSVal(D[e]);
^
c50gt.c: In function ‘Error’:
c50gt.c:15561:17: warning: format not a string literal and no format arguments [-Wformat-security]
fprintf(Of, Buffer);
^~~~~~
strip c5.0
rm c50gt.c
./Makefile: line 61: CC: command not found
./Makefile: line 61: LFLAGS: command not found
./Makefile: line 61: -o: command not found
./Makefile: line 67: obj: command not found
./Makefile: line 67: c5.0dbg:: command not found
./Makefile: line 68: CC: command not found
./Makefile: line 68: obj: command not found
./Makefile: line 68: -g: command not found
./Makefile: line 74: src: command not found
./Makefile: line 74: c5.0:: command not found
./Makefile: line 75: src: command not found
./Makefile: line 77: CC: command not found
./Makefile: line 77: LFLAGS: command not found
./Makefile: line 77: -O3: command not found
./Makefile: line 82: obj: command not found
./Makefile: line 85: .c.o:: command not found
./Makefile: line 86: syntax error near unexpected token `newline'
./Makefile: line 86: ` $(CC) $(CFLAGS) -c $<'
You will see a new file c5.0*
Check command line options with below command.
./c5.0 -h
it should show below output.
C5.0 [Release 2.07 GPL Edition] Fri Mar 15 17:43:39 2019
-------------------------------
Options:
-f <filestem> application filestem
-r use rule-based classifiers
-u <bands> order rules by utility in bands
-w invoke attribute winnowing
-b invoke boosting
-t <trials> number of boosting trials
-p use soft thresholds
-e focus on errors (ignore costs file)
-s find subset tests for discrete atts
-g do not use global tree pruning
-m <cases> restrict allowable splits
-c <percent> confidence level (CF) for pruning
-S <percent> training sample percentage
-X <folds> cross-validate
-I <integer> random seed for sampling and cross-validation
-h print this message
Now C50 is ready to be used. Here is a sample command(assuming sampledata.data and sampledata.names files exists in the same folder).
./c5.0 -r -f sampledata
After successful execution of the command, sampledata.rules will be generated in the same folder.
See full tutorial from here
New contributor
$endgroup$
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "557"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
I Bajwa is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f47309%2fcompile-c50-gpl-edition%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
After extracting C50.tgz
file, give execution rights to Makefile
.
chmod +x Makefile
Then install csh
sudo apt install csh
Run below command to check if csh is install and check csh version (if installed)
dpkg -l csh
It should show output like below.
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============================-====================-====================-==================================================================
ii csh 20110502-3 amd64 Shell with C-like syntax
Now run below command.
./Makefile
It should give output like below. (Ignore the warning messages).
./Makefile: line 9: CC: command not found
./Makefile: line 10: CFLAGS: command not found
./Makefile: line 11: S: command not found
./Makefile: line 11: LFLAGS: command not found
./Makefile: line 12: SHELL: command not found
./Makefile: line 19: src: command not found
./Makefile: line 48: obj: command not found
./Makefile: line 59: all:: command not found
cat defns.i global.c c50.c construct.c formtree.c info.c discr.c contin.c subset.c prune.c p-thresh.c trees.c siftrules.c ruletree.c rules.c g etdata.c implicitatt.c mcost.c confmat.c sort.c update.c attwinnow.c classify.c formrules.c getnames.c modelfiles.c utility.c xval.c
| egrep -v 'defns.i|extern.i' >c50gt.c
gcc -ffloat-store -O3 -o c5.0 c50gt.c -lm
c50gt.c: In function ‘ListAttsUsed’:
c50gt.c:14025:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Att = (Attribute) DefSVal(D[e]);
^
c50gt.c: In function ‘Error’:
c50gt.c:15561:17: warning: format not a string literal and no format arguments [-Wformat-security]
fprintf(Of, Buffer);
^~~~~~
strip c5.0
rm c50gt.c
./Makefile: line 61: CC: command not found
./Makefile: line 61: LFLAGS: command not found
./Makefile: line 61: -o: command not found
./Makefile: line 67: obj: command not found
./Makefile: line 67: c5.0dbg:: command not found
./Makefile: line 68: CC: command not found
./Makefile: line 68: obj: command not found
./Makefile: line 68: -g: command not found
./Makefile: line 74: src: command not found
./Makefile: line 74: c5.0:: command not found
./Makefile: line 75: src: command not found
./Makefile: line 77: CC: command not found
./Makefile: line 77: LFLAGS: command not found
./Makefile: line 77: -O3: command not found
./Makefile: line 82: obj: command not found
./Makefile: line 85: .c.o:: command not found
./Makefile: line 86: syntax error near unexpected token `newline'
./Makefile: line 86: ` $(CC) $(CFLAGS) -c $<'
You will see a new file c5.0*
Check command line options with below command.
./c5.0 -h
it should show below output.
C5.0 [Release 2.07 GPL Edition] Fri Mar 15 17:43:39 2019
-------------------------------
Options:
-f <filestem> application filestem
-r use rule-based classifiers
-u <bands> order rules by utility in bands
-w invoke attribute winnowing
-b invoke boosting
-t <trials> number of boosting trials
-p use soft thresholds
-e focus on errors (ignore costs file)
-s find subset tests for discrete atts
-g do not use global tree pruning
-m <cases> restrict allowable splits
-c <percent> confidence level (CF) for pruning
-S <percent> training sample percentage
-X <folds> cross-validate
-I <integer> random seed for sampling and cross-validation
-h print this message
Now C50 is ready to be used. Here is a sample command(assuming sampledata.data and sampledata.names files exists in the same folder).
./c5.0 -r -f sampledata
After successful execution of the command, sampledata.rules will be generated in the same folder.
See full tutorial from here
New contributor
$endgroup$
add a comment |
$begingroup$
After extracting C50.tgz
file, give execution rights to Makefile
.
chmod +x Makefile
Then install csh
sudo apt install csh
Run below command to check if csh is install and check csh version (if installed)
dpkg -l csh
It should show output like below.
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============================-====================-====================-==================================================================
ii csh 20110502-3 amd64 Shell with C-like syntax
Now run below command.
./Makefile
It should give output like below. (Ignore the warning messages).
./Makefile: line 9: CC: command not found
./Makefile: line 10: CFLAGS: command not found
./Makefile: line 11: S: command not found
./Makefile: line 11: LFLAGS: command not found
./Makefile: line 12: SHELL: command not found
./Makefile: line 19: src: command not found
./Makefile: line 48: obj: command not found
./Makefile: line 59: all:: command not found
cat defns.i global.c c50.c construct.c formtree.c info.c discr.c contin.c subset.c prune.c p-thresh.c trees.c siftrules.c ruletree.c rules.c g etdata.c implicitatt.c mcost.c confmat.c sort.c update.c attwinnow.c classify.c formrules.c getnames.c modelfiles.c utility.c xval.c
| egrep -v 'defns.i|extern.i' >c50gt.c
gcc -ffloat-store -O3 -o c5.0 c50gt.c -lm
c50gt.c: In function ‘ListAttsUsed’:
c50gt.c:14025:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Att = (Attribute) DefSVal(D[e]);
^
c50gt.c: In function ‘Error’:
c50gt.c:15561:17: warning: format not a string literal and no format arguments [-Wformat-security]
fprintf(Of, Buffer);
^~~~~~
strip c5.0
rm c50gt.c
./Makefile: line 61: CC: command not found
./Makefile: line 61: LFLAGS: command not found
./Makefile: line 61: -o: command not found
./Makefile: line 67: obj: command not found
./Makefile: line 67: c5.0dbg:: command not found
./Makefile: line 68: CC: command not found
./Makefile: line 68: obj: command not found
./Makefile: line 68: -g: command not found
./Makefile: line 74: src: command not found
./Makefile: line 74: c5.0:: command not found
./Makefile: line 75: src: command not found
./Makefile: line 77: CC: command not found
./Makefile: line 77: LFLAGS: command not found
./Makefile: line 77: -O3: command not found
./Makefile: line 82: obj: command not found
./Makefile: line 85: .c.o:: command not found
./Makefile: line 86: syntax error near unexpected token `newline'
./Makefile: line 86: ` $(CC) $(CFLAGS) -c $<'
You will see a new file c5.0*
Check command line options with below command.
./c5.0 -h
it should show below output.
C5.0 [Release 2.07 GPL Edition] Fri Mar 15 17:43:39 2019
-------------------------------
Options:
-f <filestem> application filestem
-r use rule-based classifiers
-u <bands> order rules by utility in bands
-w invoke attribute winnowing
-b invoke boosting
-t <trials> number of boosting trials
-p use soft thresholds
-e focus on errors (ignore costs file)
-s find subset tests for discrete atts
-g do not use global tree pruning
-m <cases> restrict allowable splits
-c <percent> confidence level (CF) for pruning
-S <percent> training sample percentage
-X <folds> cross-validate
-I <integer> random seed for sampling and cross-validation
-h print this message
Now C50 is ready to be used. Here is a sample command(assuming sampledata.data and sampledata.names files exists in the same folder).
./c5.0 -r -f sampledata
After successful execution of the command, sampledata.rules will be generated in the same folder.
See full tutorial from here
New contributor
$endgroup$
add a comment |
$begingroup$
After extracting C50.tgz
file, give execution rights to Makefile
.
chmod +x Makefile
Then install csh
sudo apt install csh
Run below command to check if csh is install and check csh version (if installed)
dpkg -l csh
It should show output like below.
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============================-====================-====================-==================================================================
ii csh 20110502-3 amd64 Shell with C-like syntax
Now run below command.
./Makefile
It should give output like below. (Ignore the warning messages).
./Makefile: line 9: CC: command not found
./Makefile: line 10: CFLAGS: command not found
./Makefile: line 11: S: command not found
./Makefile: line 11: LFLAGS: command not found
./Makefile: line 12: SHELL: command not found
./Makefile: line 19: src: command not found
./Makefile: line 48: obj: command not found
./Makefile: line 59: all:: command not found
cat defns.i global.c c50.c construct.c formtree.c info.c discr.c contin.c subset.c prune.c p-thresh.c trees.c siftrules.c ruletree.c rules.c g etdata.c implicitatt.c mcost.c confmat.c sort.c update.c attwinnow.c classify.c formrules.c getnames.c modelfiles.c utility.c xval.c
| egrep -v 'defns.i|extern.i' >c50gt.c
gcc -ffloat-store -O3 -o c5.0 c50gt.c -lm
c50gt.c: In function ‘ListAttsUsed’:
c50gt.c:14025:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Att = (Attribute) DefSVal(D[e]);
^
c50gt.c: In function ‘Error’:
c50gt.c:15561:17: warning: format not a string literal and no format arguments [-Wformat-security]
fprintf(Of, Buffer);
^~~~~~
strip c5.0
rm c50gt.c
./Makefile: line 61: CC: command not found
./Makefile: line 61: LFLAGS: command not found
./Makefile: line 61: -o: command not found
./Makefile: line 67: obj: command not found
./Makefile: line 67: c5.0dbg:: command not found
./Makefile: line 68: CC: command not found
./Makefile: line 68: obj: command not found
./Makefile: line 68: -g: command not found
./Makefile: line 74: src: command not found
./Makefile: line 74: c5.0:: command not found
./Makefile: line 75: src: command not found
./Makefile: line 77: CC: command not found
./Makefile: line 77: LFLAGS: command not found
./Makefile: line 77: -O3: command not found
./Makefile: line 82: obj: command not found
./Makefile: line 85: .c.o:: command not found
./Makefile: line 86: syntax error near unexpected token `newline'
./Makefile: line 86: ` $(CC) $(CFLAGS) -c $<'
You will see a new file c5.0*
Check command line options with below command.
./c5.0 -h
it should show below output.
C5.0 [Release 2.07 GPL Edition] Fri Mar 15 17:43:39 2019
-------------------------------
Options:
-f <filestem> application filestem
-r use rule-based classifiers
-u <bands> order rules by utility in bands
-w invoke attribute winnowing
-b invoke boosting
-t <trials> number of boosting trials
-p use soft thresholds
-e focus on errors (ignore costs file)
-s find subset tests for discrete atts
-g do not use global tree pruning
-m <cases> restrict allowable splits
-c <percent> confidence level (CF) for pruning
-S <percent> training sample percentage
-X <folds> cross-validate
-I <integer> random seed for sampling and cross-validation
-h print this message
Now C50 is ready to be used. Here is a sample command(assuming sampledata.data and sampledata.names files exists in the same folder).
./c5.0 -r -f sampledata
After successful execution of the command, sampledata.rules will be generated in the same folder.
See full tutorial from here
New contributor
$endgroup$
After extracting C50.tgz
file, give execution rights to Makefile
.
chmod +x Makefile
Then install csh
sudo apt install csh
Run below command to check if csh is install and check csh version (if installed)
dpkg -l csh
It should show output like below.
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============================-====================-====================-==================================================================
ii csh 20110502-3 amd64 Shell with C-like syntax
Now run below command.
./Makefile
It should give output like below. (Ignore the warning messages).
./Makefile: line 9: CC: command not found
./Makefile: line 10: CFLAGS: command not found
./Makefile: line 11: S: command not found
./Makefile: line 11: LFLAGS: command not found
./Makefile: line 12: SHELL: command not found
./Makefile: line 19: src: command not found
./Makefile: line 48: obj: command not found
./Makefile: line 59: all:: command not found
cat defns.i global.c c50.c construct.c formtree.c info.c discr.c contin.c subset.c prune.c p-thresh.c trees.c siftrules.c ruletree.c rules.c g etdata.c implicitatt.c mcost.c confmat.c sort.c update.c attwinnow.c classify.c formrules.c getnames.c modelfiles.c utility.c xval.c
| egrep -v 'defns.i|extern.i' >c50gt.c
gcc -ffloat-store -O3 -o c5.0 c50gt.c -lm
c50gt.c: In function ‘ListAttsUsed’:
c50gt.c:14025:12: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
Att = (Attribute) DefSVal(D[e]);
^
c50gt.c: In function ‘Error’:
c50gt.c:15561:17: warning: format not a string literal and no format arguments [-Wformat-security]
fprintf(Of, Buffer);
^~~~~~
strip c5.0
rm c50gt.c
./Makefile: line 61: CC: command not found
./Makefile: line 61: LFLAGS: command not found
./Makefile: line 61: -o: command not found
./Makefile: line 67: obj: command not found
./Makefile: line 67: c5.0dbg:: command not found
./Makefile: line 68: CC: command not found
./Makefile: line 68: obj: command not found
./Makefile: line 68: -g: command not found
./Makefile: line 74: src: command not found
./Makefile: line 74: c5.0:: command not found
./Makefile: line 75: src: command not found
./Makefile: line 77: CC: command not found
./Makefile: line 77: LFLAGS: command not found
./Makefile: line 77: -O3: command not found
./Makefile: line 82: obj: command not found
./Makefile: line 85: .c.o:: command not found
./Makefile: line 86: syntax error near unexpected token `newline'
./Makefile: line 86: ` $(CC) $(CFLAGS) -c $<'
You will see a new file c5.0*
Check command line options with below command.
./c5.0 -h
it should show below output.
C5.0 [Release 2.07 GPL Edition] Fri Mar 15 17:43:39 2019
-------------------------------
Options:
-f <filestem> application filestem
-r use rule-based classifiers
-u <bands> order rules by utility in bands
-w invoke attribute winnowing
-b invoke boosting
-t <trials> number of boosting trials
-p use soft thresholds
-e focus on errors (ignore costs file)
-s find subset tests for discrete atts
-g do not use global tree pruning
-m <cases> restrict allowable splits
-c <percent> confidence level (CF) for pruning
-S <percent> training sample percentage
-X <folds> cross-validate
-I <integer> random seed for sampling and cross-validation
-h print this message
Now C50 is ready to be used. Here is a sample command(assuming sampledata.data and sampledata.names files exists in the same folder).
./c5.0 -r -f sampledata
After successful execution of the command, sampledata.rules will be generated in the same folder.
See full tutorial from here
New contributor
New contributor
answered yesterday
I BajwaI Bajwa
1062
1062
New contributor
New contributor
add a comment |
add a comment |
I Bajwa is a new contributor. Be nice, and check out our Code of Conduct.
I Bajwa is a new contributor. Be nice, and check out our Code of Conduct.
I Bajwa is a new contributor. Be nice, and check out our Code of Conduct.
I Bajwa is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Data Science Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f47309%2fcompile-c50-gpl-edition%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
$begingroup$
I'm sorry, but I don't have enough reputation to comment, so I have to write an answer... what happens when you just give the command
make
without target?$endgroup$
– dcolazin
2 days ago
$begingroup$
Error of make command without target is also same as the error or make c5.0. By the way I have fixed the issue. I will be adding the solution shortly.
$endgroup$
– I Bajwa
yesterday