2012/3/6 Olivier Grisel <[email protected]>

> 2012/3/6 Mathieu Blondel <[email protected]>:
> > Hello,
> >
> > This was probably obvious but I recently realized that Cython pyd
> > files can be shared across projects. For example, one can do:
> >
> >    from sklearn.linear_model.sgd_fast cimport WeightVector
> >
> > For it to work, one currently has to compile the corresponding pyx
> > file with the -I option to indicate the location of the pyd file:
> >
> >    cython test_cimport.pyx -I
> /home/mathieu/Desktop/projects/scikit-learn/
> >
> > However, recent versions of Cython [*] apparently search PYTHONPATH
> > for pyd files, which is really awesome. This makes it possible for
> > projects to rely on third-party Cython code without hardcoding the
> > include path.
> >
> > This makes me think that in the future we should really provide a
> > public Cython API whenever it makes sense. For example, the dataset
> > utility class that Peter started to work on for his SGD module would
> > be very useful for my work.
>
> +1, I did not about it either.
>

Mathieu, I've moved WeightVector and Dataset into a dedicated util module
(``sklearn.utils.largescale``). You can find the pull-reqeust here [1]

[1] https://github.com/scikit-learn/scikit-learn/pull/682


>
> > Does anyone know if Sphinx can generate API references for pyd files?
>
> No idea.
>

Me neither.

>
> --
> Olivier
> http://twitter.com/ogrisel - http://github.com/ogrisel
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>



-- 
Peter Prettenhofer
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to