summaryrefslogtreecommitdiff
path: root/creg/README
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cs.cmu.edu>2012-05-13 22:20:06 -0700
committerChris Dyer <cdyer@cs.cmu.edu>2012-05-13 22:20:06 -0700
commit076d48d459ecbf366b0a59ab6afe68af99bdcff2 (patch)
treedec0135699d4944ed8f51a9477e0c33a54ff64f5 /creg/README
parent7001792f10cb17d88ed2d4c58364b6304bbd0816 (diff)
eval stuff for creg, test data from ark regression
Diffstat (limited to 'creg/README')
-rw-r--r--creg/README18
1 files changed, 14 insertions, 4 deletions
diff --git a/creg/README b/creg/README
index 2c04c83b..28a71d11 100644
--- a/creg/README
+++ b/creg/README
@@ -1,7 +1,17 @@
creg is a fast tool for training linear and logistic regression models with
-l_1 and l_2 regularization. Its data (feature and response) format is compatible
-with ARKRegression.
+l_1 and l_2 regularization. Its data (feature and response) format is
+compatible with ARKRegression.
-Example invokation:
-$ ./creg -x test_data/iris.trainfeat -y test_data/iris.trainresp --l2 100
+EXAMPLES
+
+Logistic regression example (training only):
+ $ ./creg -x test_data/iris.trainfeat -y test_data/iris.trainresp --l1 1.0 > weights.txt
+
+Logistic regression example (training and testing):
+ $ ./creg -x test_data/iris.trainfeat -y test_data/iris.trainresp --l1 1.0 \
+ -t test_data/iris.testfeat -s test_data/iris.testresp > weights.txt
+
+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