Last change
on this file since 36966 was 36827, checked in by davidb, 19 months ago |
Convenience script to run Java code demonstrating 'k' nearest neighbours, where 'k' is given as a CLI argument, defaulting to 4 if not given
|
-
Property svn:executable
set to
*
|
File size:
287 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | nearest_k=${1:-4}
|
---|
4 | csv_input_file=${2:-collect/amc-essentia/index/wekaDB/av-features.csv}
|
---|
5 |
|
---|
6 | . ./_set_weka_classpath.bash
|
---|
7 |
|
---|
8 | java -cp "$cp_args" \
|
---|
9 | -Djava.awt.headless=true \
|
---|
10 | org.greenstone.mars.WekaFindInstanceKNN \
|
---|
11 | $nearest_k \
|
---|
12 | "$csv_input_file"
|
---|
13 |
|
---|
14 |
|
---|
15 |
|
---|
16 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.