Skip to content

Instantly share code, notes, and snippets.

@actsasgeek
Created June 9, 2011 17:52
Show Gist options
  • Save actsasgeek/1017298 to your computer and use it in GitHub Desktop.
Save actsasgeek/1017298 to your computer and use it in GitHub Desktop.
A script to run the Nearest Neighbor algorithm...
val nearestNeighbor = NearestNeighbor.create( args( 0))
val query = Instance.parseString( args( 1))
println( nearestNeighbor.classify( query))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment