0

I noticed that somewhere in the library of scikit-learn there is a bug according to forums and i saw that they github has a developed library for scikit-learn. I am hoping they fixed the bugs there so I want to install scikit-learn on my ubuntu and raspbian os. I want to install the latest version 0.18 scikit-learn for python 2.7. can anybody help me. thank you in advance

5
  • side note - what was the bug that you faced? is it easily overcome? Commented Dec 13, 2016 at 2:39
  • I cannot load the trained classifier. I trained it in ubuntu but when loaded to raspbian it it does not load. it says "did not recognize loaded array Layout". Commented Dec 13, 2016 at 5:56
  • This is a different issue - I think the issue is saving data on one platform then opening on another will cause all sorts of issues. For example, you can save a pickle in any fashion on your local machine and open it on a remote server - this is a known behaviour with pickle, this puts the onus on you as the dev to ensure you have the compatibility. Try creating another question with this error or search pickle for your platforms - also explain if you are using the sklearn model dump or just the standard pickle. Commented Dec 13, 2016 at 16:06
  • so there is an issue with pickle on different platforms.. that is new to me. I am using sklearn model dump by the way Commented Dec 14, 2016 at 2:21
  • I have not tried this myself but this link about using anaconda to install sklearn etc. Commented Dec 14, 2016 at 3:30

1 Answer 1

1

Literally on the readme file here on the scikit-learn git page.

For the latest branch i.e. 0.18x you have to do the following

  • git clone the repo as in the link I have provided or run the following git clone https://github.com/scikit-learn/scikit-learn.git

  • checkout the latest branch with git checkout origin/0.18.X

You should now have the latest and greatest.

Note that this branch may have functions that will break your current scripts that depend on sklearn.

Sign up to request clarification or add additional context in comments.

3 Comments

is this compatible with 32bit python?
It should do. But I have not tested this idea - did you try to install?
I installed the development scikit learn but it did not solve the problem i matched the ubuntu os and raspbian to no avail

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.