the-ethan-hunt / sciruby-examples

A guide to machine learning examples in Ruby using IRuby notebooks
MIT License
2 stars 2 forks source link

Implementation of Linear regression #2

Open the-ethan-hunt opened 6 years ago

the-ethan-hunt commented 6 years ago

Linear regression is among the first algorithms for an ML newbie. Write an IRuby notebook for it with detailed explanation. DO NOT COPY the algorithm from any other GitHub repository.

anandwana001 commented 6 years ago

@the-ethan-hunt I would like to do this.

the-ethan-hunt commented 6 years ago

Sure @anandwana001 ! You can surely do!

anandwana001 commented 6 years ago

@the-ethan-hunt could you please help me in getting started with this!?

the-ethan-hunt commented 6 years ago

I hope the required stuff is in the readme.md. Anything else you might want help on? :smile:

anandwana001 commented 6 years ago

@the-ethan-hunt done installing anaconda and my jupyter notebook also started. It shows like an explorer in chrome. How to select ruby kernel?
These are the steps I performed:

  1. Download and install anaconda. I have git already installed image
  2. after this I run these commands from here
conda update conda
conda update ipython
conda install jupyter
jupyter notebook 

jupyter get started in chrome

  1. After this, I install ruby from here and run commands as suggested in readme file
gem install cztop
gem install iruby

It gives error as I have not install MSYS2 so I install that too and run again with iruby register --force image

  1. I start jupyter-notebook from anaconda cmd After this not getting what to do!!
the-ethan-hunt commented 6 years ago

@anandwana001 , good going! Well as the cmd opens, another window in your internet browser might open where to the right, a new kernel option is given. On clicking that option, you might see two options: Python and Ruby. You can also view this up in Jupyter notebooks for IRuby documentation

anandwana001 commented 6 years ago

@the-ethan-hunt image
I had selected ruby and this opens this
image The kernel is dying, again and again, showing an alert to restart but nothing working!!!
maybe this is something helpful but not getting how to do it!!

anandwana001 commented 6 years ago

@minad if you could please help me in here!

the-ethan-hunt commented 6 years ago

@anandwana001 , yes you are absolutely right. But you need to run from the gem, not from the cloned IRuby repo. See this discussion for more details.