ML Example

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

ML Example

Akmal Chaudhri
I am working with the 2.2.0 RC and have built the ML examples and
successfully imported them into IntelliJ.

I'd like to try a K-Means example, but the online documentation only
contains code fragments:

https://apacheignite.readme.io/docs/k-means-clustering

which I have managed to put together:

https://github.com/VeryFatBoy/KMeansTest/blob/master/KMeansTest.java

It compiles but there is, obviously, no output. How to I use the code
please to get some meaningful output? Or in other words, is it possible to
get a complete example that shows the functionality and capability of
Ignite's support for K-Means?

Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: ML Example

Yuriy Babak
Hi Akmal,

Actually we have two version of k-means local and distributed. And you
implemented example of local version. If you want to visualize cluster
centers you could use Tracer like this:

/for (Vector v:mdl.centers())
    Tracer.showAscii(v);/

Unfortunately right now we don`t have good example for this algorithm but
you could checkout
org.apache.ignite.ml.clustering.KMeansDistributedClustererTest class as
distributed example.

Regards,
Yury.

PS: https://issues.apache.org/jira/browse/IGNITE-6373 was created for those
examples.



--
Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: ML Example

dmagda
Yury,

I would add an example for the linear regression too:
https://apacheignite.readme.io/docs/ols-multiple-linear-regression <https://apacheignite.readme.io/docs/ols-multiple-linear-regression>

Generally, it will be ideally to prepare both the docs and example for every algorithm to be released.


Denis

> On Sep 13, 2017, at 10:13 AM, Yury Babak <[hidden email]> wrote:
>
> Hi Akmal,
>
> Actually we have two version of k-means local and distributed. And you
> implemented example of local version. If you want to visualize cluster
> centers you could use Tracer like this:
>
> /for (Vector v:mdl.centers())
>    Tracer.showAscii(v);/
>
> Unfortunately right now we don`t have good example for this algorithm but
> you could checkout
> org.apache.ignite.ml.clustering.KMeansDistributedClustererTest class as
> distributed example.
>
> Regards,
> Yury.
>
> PS: https://issues.apache.org/jira/browse/IGNITE-6373 was created for those
> examples.
>
>
>
> --
> Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/