Skip to content

Instantly share code, notes, and snippets.

View dustinvtran's full-sized avatar

Dustin Tran dustinvtran

View GitHub Profile
@dustinvtran
dustinvtran / plot.risk.R
Last active August 29, 2015 14:07
pretty plotting for comparing stochastic approximation methods
plot.risk <- function(data, est) {
# Plot estimated biases of the 4 optimization routines performed.
#
# Args:
# data: List of x, y, A, theta in particular form
# est: A list of matrix estimates, one for each set of optimization
# methods done on the data.
#
# Returns:
# A log-log plot with 4 curves, showing excess risk over training size.
### Keybase proof
I hereby claim:
* I am dustinvtran on github.
* I am dvt (https://keybase.io/dvt) on keybase.
* I have a public key whose fingerprint is 91B5 FBA6 2E1D 2938 4866 BBB8 3571 FE5A 0F13 2DFE
To claim this, I am signing this object: