December 2018
Intermediate to advanced
268 pages
8h 23m
English
This method focuses on removing values that fall far away from the median value for a single value. Typically, the evaluation metric is called the cleaning parameter. This parameter will define which values to remove from the distribution. Choosing an aggressive cleaning parameter could remove diverse data. On the contrary, choosing too large of a cleaning parameter won't change much about the distribution.
Here's an example of how to perform a univariate fit on some sample data:
#!/usr/bin/env pythonfrom numpy import linspace,expfrom numpy.random import randnimport matplotlib.pyplot as pltfrom scipy.interpolate import UnivariateSpline########## Univariate Fitx = linspace(-5, 5, 200)y = exp(-x**2) + randn(200)/10s = UnivariateSpline(x, ...
Read now
Unlock full access