ace.ace module
The Alternating Conditional Expectation (ACE) algorithm.
ACE was invented by L. Breiman and J. Friedman [Breiman85]. It is a powerful way to perform multidimensional regression without assuming any functional form of the model. Given a data set:
\(y = f(X)\)
where \(X\) is made up of a number of independent variables xi, ACE will tell you how \(y\) varies vs. each of the individual independents \(xi\). This can be used to:
Understand the relative shape and magnitude of y’s dependence on each xi
Produce a lightweight surrogate model of a more complex response
other stuff
- class ace.ace.ACESolver(delrsq=0.01, maxit=20, nterm=3)[source]
Bases:
objectThe Alternating Conditional Expectation algorithm to perform regressions.
The iteration control follows Friedman’s mace.f rather than the simpler description in [Breiman85].
- Parameters:
- delrsqfloat, optional
Termination threshold. Iteration stops when R^2 changes by less than this over
ntermconsecutive outer iterations.- maxitint, optional
Maximum number of inner and of outer iterations.
- ntermint, optional
Number of consecutive outer iterations considered for convergence.
- specify_data_set(x_input, y_input)[source]
Define input to ACE.
- Parameters:
- x_inputlist
list of iterables, one for each independent variable
- y_inputarray
the dependent observations