summaryrefslogtreecommitdiff
path: root/creg
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2012-05-23 18:02:48 -0400
committerChris Dyer <cdyer@cs.cmu.edu>2012-05-23 18:02:48 -0400
commitd60dda793ce24818becf6dfb140579899a5e121b (patch)
treec75da9045295be3768a13f21f5fe09907229cf05 /creg
parent57339faa0074d35783213b03f921ee7ad13f9481 (diff)
more bjam stuff, more cleanup
Diffstat (limited to 'creg')
-rw-r--r--creg/README3
-rw-r--r--creg/test_data/shuttle.testfeat1
-rw-r--r--creg/test_data/shuttle.testresp1
-rw-r--r--creg/test_data/shuttle.trainfeat23
-rw-r--r--creg/test_data/shuttle.trainresp23
5 files changed, 51 insertions, 0 deletions
diff --git a/creg/README b/creg/README
index 28a71d11..208cabf5 100644
--- a/creg/README
+++ b/creg/README
@@ -15,3 +15,6 @@ Linear regression example (training and testing):
$ ./creg -n -x test_data/auto-mpg.trainfeat -y test_data/auto-mpg.trainresp --l2 1000 \
-t test_data/auto-mpg.testfeat -s test_data/auto-mpg.testresp > weights.txt
+Ordinal regression example
+ $ ./creg -o -x test_data/shuttle.trainfeat -y test_data/shuttle.trainresp
+
diff --git a/creg/test_data/shuttle.testfeat b/creg/test_data/shuttle.testfeat
new file mode 100644
index 00000000..31c07017
--- /dev/null
+++ b/creg/test_data/shuttle.testfeat
@@ -0,0 +1 @@
+Challenger {"temp":31, "date":9524}
diff --git a/creg/test_data/shuttle.testresp b/creg/test_data/shuttle.testresp
new file mode 100644
index 00000000..249e84c7
--- /dev/null
+++ b/creg/test_data/shuttle.testresp
@@ -0,0 +1 @@
+Challenger 2
diff --git a/creg/test_data/shuttle.trainfeat b/creg/test_data/shuttle.trainfeat
new file mode 100644
index 00000000..c17d0f7f
--- /dev/null
+++ b/creg/test_data/shuttle.trainfeat
@@ -0,0 +1,23 @@
+1 {"temp":66, "date":7772}
+2 {"temp":70, "date":7986}
+3 {"temp":69, "date":8116}
+5 {"temp":68, "date":8350}
+6 {"temp":67, "date":8494}
+7 {"temp":72, "date":8569}
+8 {"temp":73, "date":8642}
+9 {"temp":70, "date":8732}
+10 {"temp":57, "date":8799}
+11 {"temp":63, "date":8862}
+12 {"temp":70, "date":9008}
+13 {"temp":78, "date":9044}
+14 {"temp":67, "date":9078}
+15 {"temp":53, "date":9155}
+16 {"temp":67, "date":9233}
+17 {"temp":75, "date":9250}
+18 {"temp":70, "date":9299}
+19 {"temp":81, "date":9341}
+20 {"temp":76, "date":9370}
+21 {"temp":79, "date":9407}
+22 {"temp":75, "date":9434}
+23 {"temp":76, "date":9461}
+24 {"temp":58, "date":9508}
diff --git a/creg/test_data/shuttle.trainresp b/creg/test_data/shuttle.trainresp
new file mode 100644
index 00000000..53e58f2c
--- /dev/null
+++ b/creg/test_data/shuttle.trainresp
@@ -0,0 +1,23 @@
+1 0
+2 1
+3 0
+5 0
+6 1
+7 0
+8 0
+9 0
+10 1
+11 2
+12 2
+13 0
+14 0
+15 2
+16 2
+17 2
+18 2
+19 1
+20 1
+21 0
+22 2
+23 1
+24 2