What are your requirements Fred ? in terms of maximum execution time ?
Predicting could be quite "fast" actually (think milliseconds) but depends
on your model and nber of features.
Timing a prediction code with timeit [1] should give you numbers for your
specific use case.
HTH,
[1] http://docs.python.org/2/library/timeit.html
2013/9/23 Fred Baba <[email protected]>
> I'd like to use classifiers trained via sklearn in a real-time
> application, performance critical application. How do I access the internal
> representation of trained classifiers?
>
> For linear classifiers/regressions, I can simply store the coefficients
> and generate the linear combination myself. For tree regressions, I can use
> sklearn.tree.export_graphviz. Ideally there would be an export facility for
> all classifiers (particularly for examining the structure of generated
> models). Is there a general solution way to do this?
>
>
>
> ------------------------------------------------------------------------------
> LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
> 1,500+ hours of tutorials including VisualStudio 2012, Windows 8,
> SharePoint
> 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack
> includes
> Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
> http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
>
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general