dnhkng / cylowess Goto Github PK
View Code? Open in Web Editor NEWThis project forked from livingsocial/cylowess
This project forked from livingsocial/cylowess
Requirements: Numpy >= 1.7.0 Cython >= 0.18 (if you want to tweak the generated C code) Note: This content is extracted from here: https://github.com/fooblahblah/Will_it_Python/tree/master/MLFH/CH2/lowess%20work Files for an improved version of statsmodel's lowess. cylowess.pyx is Cython code for a faster version of the lowess function in statsmodels.nonparametric.lowess. This code is more or less a from-scratch re-write, borrowing from both statsmodel's lowess, and from W. Cleveland's original lowess.f Fortran code. The main speed improvements come from: 1. Replacing expensive lstsq() calls in the statsmodel versions with direct calculations of the fitted y-values. 2. General Cython-based speedups for simple procedures in tight loops (like updating k-nearest neighbors). 3. But mostly the implementation of local linear interpolation via the new delta parameter. This vastly reduces the amount of times weighted regressions are run with minimal effect on the results. The idea, is to only run regression at points spaced at most `delta` apart, then linearly interpolate between those two results. For moderate to large data (N > 5000) this cuts timings about 50-100x--from seconds to milliseconds Currently, the default delta is zero, so the feature is not implemented unless explicitly set by the user. This should probably change. See the IPython notebook for comparisons with statsmodels and R lowess. CSV files are exported R data that are loaded into the notebook. -C. Vogel May 2012
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.