www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Neural Networks / ML Libraries for D

reply Saurabh Das <saurabh.das gmail.com> writes:
Hello,

Are there any good ML libraries for D? In particular, looking for 
a neural network library currently. Any leads would be 
appreciated.

Thanks,
Saurabh
Oct 25 2016
next sibling parent reply maarten van damme via Digitalmars-d-learn writes:
There is mir https://github.com/libmir/mir which is geared towards machine
learning, I don't know if it has anything about neural networks, I've yet
to use it. If you're only interested in neural networks, I've used FANN (a
C library) together with D and it worked very well.

2016-10-25 13:17 GMT+02:00 Saurabh Das via Digitalmars-d-learn <
digitalmars-d-learn puremagic.com>:

 Hello,

 Are there any good ML libraries for D? In particular, looking for a neural
 network library currently. Any leads would be appreciated.

 Thanks,
 Saurabh
Oct 25 2016
parent reply Saurabh Das <saurabh.das gmail.com> writes:
On Tuesday, 25 October 2016 at 11:55:27 UTC, maarten van damme 
wrote:
 There is mir https://github.com/libmir/mir which is geared 
 towards machine learning, I don't know if it has anything about 
 neural networks, I've yet to use it. If you're only interested 
 in neural networks, I've used FANN (a C library) together with 
 D and it worked very well.

 2016-10-25 13:17 GMT+02:00 Saurabh Das via Digitalmars-d-learn 
 < digitalmars-d-learn puremagic.com>:

 Hello,

 Are there any good ML libraries for D? In particular, looking 
 for a neural network library currently. Any leads would be 
 appreciated.

 Thanks,
 Saurabh
I saw mir but it didn't seem to have anything for NNs. I'll give FANN a try.
Oct 25 2016
next sibling parent Andrea Fontana <nospam example.com> writes:
On Tuesday, 25 October 2016 at 13:56:45 UTC, Saurabh Das wrote:
 On Tuesday, 25 October 2016 at 11:55:27 UTC, maarten van damme 
 wrote:
 There is mir https://github.com/libmir/mir which is geared 
 towards machine learning, I don't know if it has anything 
 about neural networks, I've yet to use it. If you're only 
 interested in neural networks, I've used FANN (a C library) 
 together with D and it worked very well.

 2016-10-25 13:17 GMT+02:00 Saurabh Das via Digitalmars-d-learn 
 < digitalmars-d-learn puremagic.com>:

 Hello,

 Are there any good ML libraries for D? In particular, looking 
 for a neural network library currently. Any leads would be 
 appreciated.

 Thanks,
 Saurabh
I saw mir but it didn't seem to have anything for NNs. I'll give FANN a try.
I used FANN with D too. And it's quite easy to use. Andrea
Oct 25 2016
prev sibling parent reply Ilya Yaroshenko <ilyayaroshenko gmail.com> writes:
On Tuesday, 25 October 2016 at 13:56:45 UTC, Saurabh Das wrote:
 On Tuesday, 25 October 2016 at 11:55:27 UTC, maarten van damme 
 wrote:
 There is mir https://github.com/libmir/mir which is geared 
 towards machine learning, I don't know if it has anything 
 about neural networks, I've yet to use it. If you're only 
 interested in neural networks, I've used FANN (a C library) 
 together with D and it worked very well.

 2016-10-25 13:17 GMT+02:00 Saurabh Das via Digitalmars-d-learn 
 < digitalmars-d-learn puremagic.com>:

 Hello,

 Are there any good ML libraries for D? In particular, looking 
 for a neural network library currently. Any leads would be 
 appreciated.

 Thanks,
 Saurabh
I saw mir but it didn't seem to have anything for NNs. I'll give FANN a try.
https://github.com/ljubobratovicrelja/mir.experimental.model.rbf
Oct 26 2016
parent Relja Ljubobratovic <ljubobratovic.relja gmail.com> writes:
On Wednesday, 26 October 2016 at 12:13:16 UTC, Ilya Yaroshenko 
wrote:
 https://github.com/ljubobratovicrelja/mir.experimental.model.rbf
Now moved to https://github.com/libmir/mir-neural
Oct 31 2016
prev sibling next sibling parent reply bachmeier <no spam.net> writes:
On Tuesday, 25 October 2016 at 11:17:29 UTC, Saurabh Das wrote:
 Hello,

 Are there any good ML libraries for D? In particular, looking 
 for a neural network library currently. Any leads would be 
 appreciated.

 Thanks,
 Saurabh
I have written a project to embed R inside D and vice versa for my research (currently Linux only). Any neural network library for R is trivially available inside D. Ideally these libraries would be written in D but I'm a strong believer in reusing working code. If this is something that is of interest, let me know.
Oct 25 2016
parent reply Saurabh Das <saurabh.das gmail.com> writes:
On Tuesday, 25 October 2016 at 13:26:49 UTC, bachmeier wrote:
 On Tuesday, 25 October 2016 at 11:17:29 UTC, Saurabh Das wrote:
 Hello,

 Are there any good ML libraries for D? In particular, looking 
 for a neural network library currently. Any leads would be 
 appreciated.

 Thanks,
 Saurabh
I have written a project to embed R inside D and vice versa for my research (currently Linux only). Any neural network library for R is trivially available inside D. Ideally these libraries would be written in D but I'm a strong believer in reusing working code. If this is something that is of interest, let me know.
Oh that sounds pretty cool. While I probably won't use it right now, embedding R inside D would be a good learning opportunity. Is it available on code.dlang.org or on GitHub? Thanks Saurabh
Oct 25 2016
parent reply bachmeier <no spam.net> writes:
On Tuesday, 25 October 2016 at 13:58:33 UTC, Saurabh Das wrote:

 Oh that sounds pretty cool.

 While I probably won't use it right now, embedding R inside D 
 would be a good learning opportunity. Is it available on 
 code.dlang.org or on GitHub?

 Thanks
 Saurabh
Installation amounts to installing a couple of R packages that I have on Bitbucket, as described on the project page. I have basic usage examples there as well. You can find the project here: https://bitbucket.org/bachmeil/embedr This is barebones, designed only to allow passing of data (via pointers) between the two languages and to execute R code from a D program. I have other libraries that do various things (call D functions from R, optimization, quadratic programming, ARMA estimation, etc.) but haven't yet had time to write examples or documentation. If you would like to see any of that or have questions about the embedr library, you can email me at the address given on this page: http://www.k-state.edu/economics/staff/bios/bachmeier.html
Oct 25 2016
parent Saurabh Das <saurabh.das gmail.com> writes:
On Tuesday, 25 October 2016 at 14:31:39 UTC, bachmeier wrote:
 On Tuesday, 25 October 2016 at 13:58:33 UTC, Saurabh Das wrote:

 [...]
Installation amounts to installing a couple of R packages that I have on Bitbucket, as described on the project page. I have basic usage examples there as well. You can find the project here: https://bitbucket.org/bachmeil/embedr [...]
This is excellent. I will try it out :) Thanks so much.
Oct 25 2016
prev sibling parent Relja Ljubobratovic <ljubobratovic.relja gmail.com> writes:
On Tuesday, 25 October 2016 at 11:17:29 UTC, Saurabh Das wrote:
 Hello,

 Are there any good ML libraries for D? In particular, looking 
 for a neural network library currently. Any leads would be 
 appreciated.

 Thanks,
 Saurabh
There is also Henry Gouk's dnnet library[1]. I'm not sure how far is it in development, since there's no dub project registered at code.dlang.org, but you could give it a spin. AFAIK it relies another package of his, dopt[2][3], which depends on CUDA (cuBLAS and cuDNN). [1] https://github.com/henrygouk/dnnet [2] https://github.com/henrygouk/dopt [3] http://code.dlang.org/packages/dopt
Oct 31 2016