Thanks! that does sound very easy. I'll get into Cython soon!

I have pushed a draft version of the Sparse Autoencoder to scikit's github. Hopefully I have sent the pull request correctly :).

Thanks!

On 6/26/2013 2:28 AM, Robert Layton wrote:
The basics of cython are, and I'm not kidding here, quite easy to learn.
Steps:
1) Rename .py file to .pyc
2) Put "int" in front of all object declarations that will be integers, "float" in front of things that are floats. (If you know java/C/C++ etc, this will feel really natural)
3) Compile with cython  - *cython filename.pyc*
4) Done.

After that, it gets slightly more complicated -- i.e. importing properly and using cdef etc. I can never remember the method to do numpy arrays, but google helps with that.

Good luck!




------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to