ls -a
rm .bash_history 
exit
lkjadlkafdlkjaflk
ls
ls -l
./topics.txt
ls -a
ls ..
echo $PATH
echo "hello class"
echo PATH
which 
which ls
cd /cygdrive/f/unix/cs578.hw1
ls
ls bin
/cygdrive/f/unix/cs578.hw1/bin/mktree 
export PATH=$PATH:/cygdrive/f/unix/cs578.hw1/bin
ls ind/IND/Data/glass/
ls
cat README.assignment 
cat README.assignment | less
man less
less README.assignment 
FOOBAR="this is a test"
echo $FOOBAR
xterm&
ls
cat -n README.assignment | less
cat -n README.assignment > numbered
less numbered 
less < numbered 
cat numbered | sort -gr | less
sort -gr < numbered | less
echo $HOME
sort -r < numbered | less
sort < numbered | less
sort < README.assignment | less
sort < README.assignment | uniq | less
sort < README.assignment | uniq -c | less
ls
echo "1" > foo
cat foo
echo "2" > foo
cat foo
echo "3" >> foo
cat foo
ls
mv foo appending_demonstration
cp appending_demonstration appending_demonstration.bak
ls
echo "1" appending_demonstration
echo "1" > appending_demonstration
cat appending_demonstration appending_demonstration.bak 
cat appending_demonstration*
ls
rm appending_demonstration
ls -l
chmod a-w appending_demonstration.bak 
ls -l
rm appending_demonstration.bak 
rm -f appending_demonstration.bak 
ls 
echo "1" > foo
mkdir foodir
mv foo foodir
ls -l
ls foodir/
rm -r foodir/
ls
which
chmod
chmod --help
man echo
echo \a
echo \a
echo "\a"
man man
man -k where
man -k sort
man -k print
man -k printf
wc < README.assignment 
ls
cat numbered | grep "5" | less
cat numbered | grep -w "5" | less
cat numbered | grep -vw "5" | less
cat numbered | grep -i "q" | less
clear
echo $PATH
cd ind/IND/Data/glass/
ls
growtree.sh
growtree.sh glass 1000 c4 123
growtree.sh
ls
wc -l glass.dta
growtree.sh glass 100 c4 123
ls
head targets 
linex 1-10 < targets 
linex 1-10 13 45 23-30 < targets | less
cat targets | sort | uniq -c
cat glass.attr | less
less targets 
ls
less glass.dta
less glass.desc
linex 1-10 15 16 < glass.desc
cat -n | linex 1-10 15 16
cat -n glass.desc | linex 1-10 15 16
cat glass.dta | less
cat glass.dta | colex 1-5 | less
cat glass.dta | colex 6 1-5 5 | le
cat targets | stats
foobar=`cat targets | stats mean`
echo $foobar
cat targets | stats
cat targets | stats | transpose
cat targets | stats | linex 1-3 | transpose
echo "3" > default
cat targets | abut - default
man abut
abut -c targets default | less
cat default 
for ((i=0; i<100; ++i)) ; do echo $i >> default; done
less default 
abut targets default |less
less glass.dta
less glass.dta
cat glass.dta | colex 1 2 | less
cat glass.dta | colex 1 2 | dm s1 s2 "if x1 < x2 then 0 else 1" | less
man dm
echo $foobar
echo $foobarmpg
echo ${foobar}mpg
ls
cat glass.tree | linex 1-5
tprint -cdi glass.attr glass.treec | less
man tprint
man attr
echo $MANPATH
set | less
pwd
cd /cygdrive/f/unix/cs578.hw1
ls
ls -l
./samplescript.txt 
mv samplescript.txt bin
cd ind/IND/Data/
ls
cd thyroid/
ls
samplescript.txt hypo 50
samplescript.txt hypo 50
samplescript.txt hypo 50
ls
samplescript.txt hypo 50
ls
samplescript.txt hypo 50
ls
mv /cygdrive/f/unix/cs578.hw1/samplescript.txt /cygdrive/f/unix/cs578.hw1/bin
samplescript.txt hypo 50
samplescript.txt hypo 50
ls
ls *.exp
rm -r *.exp
samplescript.txt hypo 50
ls *.exp
man bash
man bash
ls
cd id3.exp
ls
linex 1-10 < preds
cat preds | colex 1 | sort | uniq -c
cat preds | dm s1 s2 s3 s4 s5 "if s1 == compensated_hypothyroid then 1 else 0" | less
cat preds | dm s1 s2 s3 s4 s5 "if s1 == 'compensated_hypothyroid' then 1 else 0" | less
cat preds | dm s1 s2 s3 s4 s5 "if s1 == 'compensated_hypothyroid' then 1 elsif s1 == 'negative' then 2 else 0" | less

cat preds | dm s1 s2 s3 s4 s5 "if s1 == 'compensated_hypothyroid' then 1 else if s1 == 'negative' then 2 else 0" | less
cat preds | sed 's/compensated_hypothyroid/1/' | sed 's/negative/2/' | sed 's/primary_hypothyroid/3/' | sed 's/secondary_hypothyroid/4/' | less
cat preds | sed 's/compensated_hypothyroid/1/' | sed 's/negative/2/' | sed 's/primary_hypothyroid/3/' | sed 's/secondary_hypothyroid/4/' | dm "if argmax(x2,x3,x4,x5) == x1 then 1 else 0"
exit
cd /cygdrive/f/unix/cs578.hw1
echo $PATH
export PATH=$PATH:/cygdrive/f/unix/cs578.hw1/bin
cd ind/IND/Data/thyroid/
ls
cd id3.exp
cat preds | sed 's/compensated_hypothyroid/1/' | sed 's/negative/2/' | sed 's/primary_hypothyroid/3/' | sed 's/secondary_hypothyroid/4/' | head
cat preds | sed 's/compensated_hypothyroid/1/' | sed 's/negative/2/' | sed 's/primary_hypothyroid/3/' | sed 's/secondary_hypothyroid/4/' | dm "if x2 == max(x2,x3,x4,x5) then 1 else '?'" | head
cat preds | sed 's/compensated_hypothyroid/1/' | sed 's/negative/2/' | sed 's/primary_hypothyroid/3/' | sed 's/secondary_hypothyroid/4/' | dm "if x2 == max(x2,x3,x4,x5) then 1 else 0" | head
cat preds | sed 's/compensated_hypothyroid/1/' | sed 's/negative/2/' | sed 's/primary_hypothyroid/3/' | sed 's/secondary_hypothyroid/4/' | dm s1 s2 s3 s4 s5 "max(x2,x3,x4,x5)" | head
man dm
man unixstat
man |stat
cat preds | sed 's/compensated_hypothyroid/1/' | sed 's/negative/2/' | sed 's/primary_hypothyroid/3/' | sed 's/secondary_hypothyroid/4/' | dm s1 s2 s3 s4 s5 "MAX(x2,x3,x4,x5)" | head
cat preds | sed 's/compensated_hypothyroid/1/' | sed 's/negative/2/' | sed 's/primary_hypothyroid/3/' | sed 's/secondary_hypothyroid/4/' | dm s1 s2 s3 s4 s5 "MAX(max(x2,x3),max(x4,x5))" | head
history | wc -l
cat preds | sed 's/compensated_hypothyroid/1/' | sed 's/negative/2/' | sed 's/primary_hypothyroid/3/' | sed 's/secondary_hypothyroid/4/' | dm s1 s2 s3 s4 s5 "if x2 >= x3 && x2 >= x4 && x2 >= x5 then 1 else 0" | head
cat preds | sed 's/compensated_hypothyroid/1/' | sed 's/negative/2/' | sed 's/primary_hypothyroid/3/' | sed 's/secondary_hypothyroid/4/' | dm s1 s2 s3 s4 s5 "if x2 >= x3 && x2 >= x4 && x2 >= x5 then 1 else if x3 >= x4 && x3 >= x5 then 2 else if x4 >= x5 then 3 else 4" | head
cat preds | sed 's/compensated_hypothyroid/1/' | sed 's/negative/2/' | sed 's/primary_hypothyroid/3/' | sed 's/secondary_hypothyroid/4/' | dm s1 s2 s3 s4 s5 "if x2 >= x3 && x2 >= x4 && x2 >= x5 then 1 else if x3 >= x4 && x3 >= x5 then 2 else if x4 >= x5 then 3 else 4" | less
cat preds | sed 's/compensated_hypothyroid/1/' | sed 's/negative/2/' | sed 's/primary_hypothyroid/3/' | sed 's/secondary_hypothyroid/4/' | dm s1 s2 s3 s4 s5 "if x2 >= x3 && x2 >= x4 && x2 >= x5 then 1 else if x3 >= x4 && x3 >= x5 then 2 else if x4 >= x5 then 3 else 4" | colex 1 6 | head
cat preds | sed 's/compensated_hypothyroid/1/' | sed 's/negative/2/' | sed 's/primary_hypothyroid/3/' | sed 's/secondary_hypothyroid/4/' | dm s1 s2 s3 s4 s5 "if x2 >= x3 && x2 >= x4 && x2 >= x5 then 1 else if x3 >= x4 && x3 >= x5 then 2 else if x4 >= x5 then 3 else 4" | colex 1 6 | dm "if x1 == x2 then 1 else 0" | stats sum n
cat preds | sed 's/compensated_hypothyroid/1/' | sed 's/negative/2/' | sed 's/primary_hypothyroid/3/' | sed 's/secondary_hypothyroid/4/' | dm s1 s2 s3 s4 s5 "if x2 >= x3 && x2 >= x4 && x2 >= x5 then 1 else if x3 >= x4 && x3 >= x5 then 2 else if x4 >= x5 then 3 else 4" | colex 1 6 | dm "if x1 == x2 then 1 else 0" | stats sum n | dm "x1/x2"
echo "accuracy="`cat preds | sed 's/compensated_hypothyroid/1/' | sed 's/negative/2/' | sed 's/primary_hypothyroid/3/' | sed 's/secondary_hypothyroid/4/' | dm s1 s2 s3 s4 s5 "if x2 >= x3 && x2 >= x4 && x2 >= x5 then 1 else if x3 >= x4 && x3 >= x5 then 2 else if x4 >= x5 then 3 else 4" | colex 1 6 | dm "if x1 == x2 then 1 else 0" | stats sum n | dm "x1/x2"`
cd ..
samplescript.txt hypo 100
samplescript.txt hypo 100
samplescript.txt hypo 100
samplescript.txt hypo 100
samplescript.txt hypo 100
samplescript.txt hypo 100
samplescript.txt hypo 100
samplescript.txt hypo 100
samplescript.txt hypo 100
samplescript.txt hypo 100
exit
