Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Discussion] Let's colaborate with SciRuby for Ruby wrapper #4814

Closed
Shekharrajak opened this issue Jan 30, 2020 · 24 comments
Closed

[Discussion] Let's colaborate with SciRuby for Ruby wrapper #4814

Shekharrajak opened this issue Jan 30, 2020 · 24 comments

Comments

@Shekharrajak
Copy link

Shekharrajak commented Jan 30, 2020

Hi,

Thanks for the amazing library for machine learning. I think it is one of best machine learning tool which provide Ruby wrapper.

Since GSoC Org application has been opened and deadline is close. I hope Shogun will be participating in GSoC 2020 and have project idea list ready.

Please let me know the Ruby wrapper ideas and enhancement plan. Also let me know if Shogun community can collaborate with SciRuby for any Ruby wrapper related projects. SciRuby already working on best Data Science related Ruby gems which is used worldwide. So it will be great if SciRuby gems (like daru- Data Analysis and Visualization in Ruby, nmatrix and other visualization and statistics related gems ): https://github.com/sciruby API work smoothly with shogun API.

It will surely make Shogun more useful in Ruby community.

What do you think? @vigsterkr , @iglesias

@vigsterkr
Copy link
Member

@Shekharrajak we are planning to apply for GSoC 2020!

indeed we wanted for a time to switch from nmatrix (or whatever the library we use at the moment) for ruby type maps to something more modern, as that project seems to be abandoned, or not that well maintained anymore. if you are interested working on this project, plz outline your idea and you can already start sending in some preliminary PRs

@vigsterkr
Copy link
Member

i guess a gem would be nice to have of the shogun ruby interface for starters :)

@Shekharrajak
Copy link
Author

Thanks @vigsterkr for the response. Can you please share some links or discussion about Ruby wrapper, so that I can understand the current status of the project and any plans you have in mind. it will be helpful.

@vigsterkr
Copy link
Member

@Shekharrajak basically you can just build manually the ruby wrapper like this:

cmake -DINTERFACE_RUBY=ON ..
make

this should actually build all the example for ruby. although now that i'm talking about this there's a bug currently against ruby interface:
#4177

needs to be checked whether there's an easy workaround for this.

@vigsterkr
Copy link
Member

in order to reproduce the error you should enable this: https://github.com/shogun-toolbox/shogun/blob/develop/tests/meta/CMakeLists.txt#L60

@vigsterkr
Copy link
Member

and comment out this one https://github.com/shogun-toolbox/shogun/blob/develop/examples/meta/CMakeLists.txt#L136

you'll see currently these tests are failing:

	116 - generated_ruby-base_api-factory (Failed)
	117 - generated_ruby-base_api-put_get_add (Failed)
	131 - generated_ruby-binary-svmlight_linear_term (Failed)
	158 - generated_ruby-evaluation-clustering (Failed)
	164 - generated_ruby-features-string_features (Failed)

@iglesias
Copy link
Collaborator

Thanks @vigsterkr for the response. Can you please share some links or discussion about Ruby wrapper, so that I can understand the current status of the project and any plans you have in mind. it will be helpful.

We use swig to generate interfaces between the C++ core of Shogun and Ruby (along with other languages).

@Shekharrajak
Copy link
Author

Okay! So currently Ruby wrapper is not functional. I will check!

@vigsterkr
Copy link
Member

well to be honest it mostly is, there are couple of function calls that will fail, but most of the library is usable from ruby

@Shekharrajak
Copy link
Author

Okay! So can anyone please make a TODO list to make it usable again?

@vigsterkr
Copy link
Member

i've just written you above what needs to be done

@vigsterkr
Copy link
Member

@Shekharrajak
Copy link
Author

Thanks @vigsterkr ! Should we add idea in SciRuby Idea page also and let's see if we find good student who can work on this?
The idea is to make it usable and functional(compatible) with SciRuby gems as well.

What do you think?

@vigsterkr
Copy link
Member

@Shekharrajak sure thing... i mean imo since SciRuby is using nmatrix as far as i can understand, shogun should be usable without any trouble.

@vigsterkr
Copy link
Member

fyi: i'll add somewhere a gist with a simple ruby based jupyter notebook just to test it out.

@vigsterkr
Copy link
Member

@Shekharrajak i've managed to export a daru df to nmatrix with to_nmatrix method (once, nmatrix is installed)... is there a plan to support https://github.com/ruby-numo/numo-narray as well?

@Shekharrajak
Copy link
Author

Thanks, @vigsterkr ! SciRuby team is working on NumRuby project: https://github.com/SciRuby/numruby . If you find numo-narray useful then it should be compatible as well.

@Shekharrajak
Copy link
Author

Shekharrajak commented Feb 1, 2020

@vigsterkr, You can have your gist or wiki page where this idea will be added for the GSoC 2020, I have added the idea at SciRuby idea page for this GSoC: https://github.com/SciRuby/sciruby/wiki/Google-Summer-of-Code-2020-Ideas#shogun, feel free to edit/update it and add yourself as mentor.

Thanks!

@vigsterkr
Copy link
Member

@Shekharrajak here's a working example shogunML with SciRuby stack: https://gist.github.com/vigsterkr/48a5f0523528bbab85bec04464ca2b6c

@stale
Copy link

stale bot commented Jul 30, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 30, 2020
@stale stale bot removed the stale label Jul 30, 2020
@karlnapf
Copy link
Member

bump

@stale
Copy link

stale bot commented Jan 26, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jan 26, 2021
@Shekharrajak
Copy link
Author

Hi Guys,

We are adding this idea in GSoC 2021 for SciRUby : https://github.com/SciRuby/sciruby/wiki/Google-Summer-of-Code-2021-Ideas

Interested people can reach out to SciRuby mailing list: sciruby-dev

@stale stale bot removed the stale label Jan 30, 2021
@stale
Copy link

stale bot commented Jul 30, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jul 30, 2021
@iglesias iglesias closed this as completed Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants