Learn R Programming

stochQN (version 0.1.2-1)

Stochastic Limited Memory Quasi-Newton Optimizers

Description

Implementations of stochastic, limited-memory quasi-Newton optimizers, similar in spirit to the LBFGS (Limited-memory Broyden-Fletcher-Goldfarb-Shanno) algorithm, for smooth stochastic optimization. Implements the following methods: oLBFGS (online LBFGS) (Schraudolph, N.N., Yu, J. and Guenter, S., 2007 ), SQN (stochastic quasi-Newton) (Byrd, R.H., Hansen, S.L., Nocedal, J. and Singer, Y., 2016 ), adaQN (adaptive quasi-Newton) (Keskar, N.S., Berahas, A.S., 2016, ). Provides functions for easily creating R objects with partial_fit/predict methods from some given objective/gradient/predict functions. Includes an example stochastic logistic regression using these optimizers. Provides header files and registered C routines for using it directly from C/C++.

Copy Link

Version

Install

install.packages('stochQN')

Monthly Downloads

294

Version

0.1.2-1

License

BSD_2_clause + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

David Cortes

Last Published

September 26th, 2021

Functions in stochQN (0.1.2-1)

get_iteration_number

Get current iteration number from the optimizer object
coef.stoch_logistic

Retrieve fitted coefficients from stochastic logistic regression object
partial_fit

Partial fit stochastic model to new data
SQN_free

SQN Free-Mode Optimizer
oLBFGS_free

oLBFGS Free-Mode Optimizer
oLBFGS

oLBFGS guided optimizer
get_curr_x

Get current values of the optimization variables
SQN

SQN guided optimizer
adaQN

adaQN guided optimizer
print.SQN_free

Print summary info about SQN free-mode object
predict.stoch_logistic

Prediction function for stochastic logistic regression
print.SQN

Print summary info about SQN guided-mode object
run_oLBFGS_free

Run oLBFGS optimizer in free-mode
stochastic.logistic.regression

Stochastic Logistic Regression
print.adaQN

Print summary info about adaQN guided-mode object
adaQN_free

adaQN Free-Mode Optimizer
predict.stochQN_guided

Predict function for stochastic optimizer object
update_fun

Update objective function value (adaQN)
summary.stoch_logistic

Print general info about stochastic logistic regression object
partial_fit_logistic

Update stochastic logistic regression model with new batch of data
print.stoch_logistic

Print general info about stochastic logistic regression object
print.oLBFGS_free

Print summary info about oLBFGS free-mode object
run_SQN_free

Run SQN optimizer in free-mode
run_adaQN_free

Run adaQN optimizer in free-mode
print.adaQN_free

Print summary info about adaQN free-mode object
print.oLBFGS

Print summary info about oLBFGS guided-mode object
update_hess_vec

Update Hessian-vector product (SQN)
update_gradient

Update gradient (oLBFGS, SQN, adaQN)