shogun-toolbox / shogun

Shōgun
http://shogun-toolbox.org
BSD 3-Clause "New" or "Revised" License
3.03k stars 1.04k forks source link

Tutorial for new users: Creating an own structured learning model #2055

Open tklein23 opened 10 years ago

tklein23 commented 10 years ago

If a new user wants to quickly evaluate shogun for a problem he has, it's not clear where to start. It would be good to have a small tutorial for the website that shows how to deal with different problems.

It's similar to #2054

One example one could do in a small tutorial:

The second part of the tutorial could either be:

Since we have Label classes for both Multiclass and Multilabels, it should be possible to create quick examples for Multiclass/Multilabel/CLR.

As in #2054, the focus shouldn't be on the machine learning part, but on how to use shogun and get it running. We assume that potential users know ML well and only want a quick intro on how to use SHOGUN.

abinashpanda commented 10 years ago

I am attempting this one. @tklein23 I have a question: what should be the file format of tutorial (should it be C++ files or something other)?

tklein23 commented 10 years ago

Hey @abinashpanda - the task is yours!

A few comments, that might answer your question:

Which structured output problem you choose as an example, is up to you. But I recommend choosing something with a simple decoding like (1) multiclass or (2) multilabel.

tklein23 commented 10 years ago

An example tutorial: http://docs.python.org/2/extending/extending.html

Note that you don't need to be as verbose; it's not necessary explain everything. It's more like showing how to glue the different pieces (Makefile, program, reading inputs, so model, decoding, so labels) to a working example.

iglesias commented 10 years ago

Just a small remark to what Thoralf said a couple of comments ago. In fact, thanks to the SWIG director classes, it is possible to create a structured output model from Python as well. For an example, see https://github.com/iglesias/linal/blob/master/graph/structure_grid_crf.py#L20.

tklein23 commented 10 years ago

Thanks for your comment, @iglesias -- I already forgot that this is possible as well.

tklein23 commented 10 years ago

@abinashpanda - hope I'm not pushing you too hard, but let me know if you got stuck or need more information.

achintp commented 10 years ago

Hey, is it ok if I take this up as well?

tklein23 commented 10 years ago

@achintp - I think this task is in progress and is too easy to distribute it to more people. Lets discuss on the mailing list which task fits your skills.

@abinashpanda - your last comment was 10 days ago. Are you still working on this issue? Please give a quick status update.

abinashpanda commented 10 years ago

@tklein23 Sorry for the delay in this task. I am feeling sick since past 2-3 days so unable to proceed on this task. I am ok if any one else is interested in taking this task as I would not be able to work for next 3-4 days.

tklein23 commented 10 years ago

@abinashpanda - thanks for your response. I hope you are recovering soon, but take the time you need.

@achintp - feel free to start working on this task. If something is missing, please let us know.

achintp commented 10 years ago

Cool!

i'm on it!

tklein23 commented 10 years ago

@achintp, I seems you're stuck. Do you need assistance on this issue?

achintp commented 10 years ago

Hey @tklein23 ,

Sorry my finals were going on and I couldn't devote much time to this. Understandably, I mised the GSoC deadline. I still want to complete it though, so I should have it in a couple of days

iglesias commented 10 years ago

Great @achintp! We are looking forward to seeing this!