# VowpalClient

Provides a TCP client for [Vowpal Wabbit](, and exports functions `VowpalClient.train/3`, `VowpalClient.predict/2`, and ``

`VowpalClient.spawn_vowpal/2` is just for debugging purposes, ideally you will have vowpal running somewhere else (`vw --foreground --port 12312 --num_children 1 ...`)

Vowpal Wabbit is amazing and fast linear model tool, (and by fast I mean *fast*)
make sure you check out: [Vowpal Examples](

This is *incomplete* client, that at the moment works with my very-basic use case, but as I am using it, it will get more complete.

[issues]( [fork]( [license - MIT](

## Examples

    iex> VowpalClient.spawn_vowpal(12123)

    iex> VowpalClient.start_link(:vw, {127,0,0,1}, 12123, 1000)
    {:ok, #PID<0.143.0>}

    iex> VowpalClient.train(:vw, -1, [{"features",["a","b","c"]}])

    iex> VowpalClient.predict(:vw,  [{"features",["a","b","c"]}])

    iex> VowpalClient.predict(:vw,  [{"features",["a","b","d"]}])

## Installation

The package can be installed
by adding `vowpal_client` to your list of dependencies in `mix.exs`:

def deps do
    {:vowpal_client, "~> 0.1.0"}

## Documentation

Documentation: [](

## License