Generates feature matrix outputs from R object inputs using a variety of expansion functions. The generated feature matrices have applications as inputs for a variety of machine learning algorithms. The expansion functions are based on coercing the input to a matrix, treating the columns as features and converting individual columns or combinations into blocks of columns. Currently these include expansion of columns by efficient sparse embedding by vectors of lags, quadratic expansion into squares and unique products, powers by vectors of degree, vectors of orthogonal polynomials functions, and block random affine projection transformations (RAPTs). The transformations are magrittr- and cbind-friendly, and can be used in a building block fashion. For instance, taking the cos() of the output of the RAPT transformation generates a stationary kernel expansion via Bochner's theorem, and this expansion can then be cbind-ed with other features. Additionally, there are utilities for replacing features, removing rows with NAs, creating matrix samples of a given distribution, a simple wrapper for LASSO with CV, a Freeman-Tukey transform, generalizations of the outer function, matrix size-preserving discrete difference by row, plotting, etc.

Install the latest version of this package by entering the following in R:

`install.packages("expandFunctions")`

Author | Scott Miller [aut, cre] |

Date of publication | 2016-10-01 15:05:50 |

Maintainer | Scott Miller <sam3CRAN@gmail.com> |

License | GPL-2 |

Version | 0.1.0 |

**coefPlot:** Plots coefficients in an impulse response format

**distMat:** Make a matrix with coefficients distributed as dist

**easyLASSO:** Select and fit sparse linear model with LASSO

**eDiff:** Matrix size-preserving diff function

**eLag:** Convert vector into a matrix of lag columns

**eMatrixOuter:** Extends eOuter to allow a matrix for the first argument

**eOuter:** Extend outer product.

**ePow:** Convert vector x into a matrix X_{ij} = {x_i}^j

**eQuad:** Multivariate second order polynomial expansion.

**eReplace:** Replace values in an R object coerible to a matrix

**eTrim:** Remove padded rows from matrix X

**expandFunctions:** expandFunctions: a feature matrix builder

**freemanTukey:** Freeman-Tukey transform

**lagshift:** Helper function for eLag.

**polywrapper:** Generate special functions using orthonormal functions

**rapt:** Expand an input matrix X using raptObj.

**raptMake:** Define a Random Affine Projection Transformation (RAPT)...

**reset.warnings:** Reset annoyingly persistent warning messages.

**Ydiagnostics:** Informative plots for Y and Yhat

**yyHatPlot:** Plot y and yHat on the same scale w/reference line

coefPlot | Man page |

distMat | Man page |

easyLASSO | Man page |

eDiff | Man page |

eLag | Man page |

eMatrixOuter | Man page |

eOuter | Man page |

ePow | Man page |

eQuad | Man page |

eReplace | Man page |

eTrim | Man page |

expandFunctions | Man page |

expandFunctions-package | Man page |

freemanTukey | Man page |

lagshift | Man page |

polywrapper | Man page |

rapt | Man page |

raptMake | Man page |

reset.warnings | Man page |

Ydiagnostics | Man page |

yyHatPlot | Man page |

NAMESPACE

NEWS.md

R

R/expandFunctions-package.R
R/expandFunctions.R
README.md

MD5

DESCRIPTION

man

man/eLag.Rd
man/rapt.Rd
man/polywrapper.Rd
man/yyHatPlot.Rd
man/eOuter.Rd
man/expandFunctions.Rd
man/freemanTukey.Rd
man/eReplace.Rd
man/Ydiagnostics.Rd
man/lagshift.Rd
man/raptMake.Rd
man/eMatrixOuter.Rd
man/eQuad.Rd
man/eTrim.Rd
man/reset.warnings.Rd
man/easyLASSO.Rd
man/distMat.Rd
man/ePow.Rd
man/coefPlot.Rd
man/eDiff.Rd
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.