#!/bin/bash # /* vim: set filetype=sh : */ # -*- sh -*- #---- Exercise ------------------------------------------- # Todo # a. copy and run this file # b. try to explain the output to someone not doing the class. # c. The $Datum file is in the ARFF format. # List the header section of $Datum # d. List the data section of $Datum # e. What is the arff comment character? # f. How many attributes in $Datum? # g. The classes are the values of the last attribute. What # are the classes of $Datum? # # Hints # - Don't even think about running this stuff outide of # the csee machines. # - Add this line to your $HOME/.bashrc # export PATH="$PATH:/home/timm/bin/wisp" # - after copying the file, make it executable using # chmod +x 1 # - run this code in the "bash" shell under csee. i.e. # 1) ssh YOU@shell.csee.wvu.edu # 2) bash # 3) change to where you have stored "1" # 4) chmod +x 1 # 5) ./1 # - For details on the ARFF format used in $Datum, see # http://weka.sourceforge.net/wekadoc/index.php/en:ARFF_%283.4.6%29 #--------------------------------------------------------- # standard stuff. just copy and paste in all scripts Src=${Src=/home/timm} . $Src/etc/wisp/config/our_wekarc wEka="nice -20 java -Xmx1024M -cp $Src/var/weka.jar " #wData=$Src/var/data # pick a data set Datum=../../../../var/tmp/data/filtered-data/hypothyroid.arff # set up # run a learner wtt $Datum $Datum $wJ48