Turi Create  4.0
Gradient Descent

Functions

template<typename Vector = DenseVector>
solver_return turi::optimization::gradient_descent (first_order_opt_interface &model, const DenseVector &init_point, std::map< std::string, flexible_type > &opts, const std::shared_ptr< regularizer_interface > reg=NULL)
 

Detailed Description

Function Documentation

◆ gradient_descent()

template<typename Vector = DenseVector>
solver_return turi::optimization::gradient_descent ( first_order_opt_interface model,
const DenseVector &  init_point,
std::map< std::string, flexible_type > &  opts,
const std::shared_ptr< regularizer_interface reg = NULL 
)
inline

Solve a first_order_optimization_iterface model with a gradient descent method.

Parameters
[in,out]modelModel with first order optimization interface.
[in]init_pointStarting point for the solver.
[in,out]optsSolver options.
Returns
stats Solver return stats.
Parameters
[in]regShared ptr to an interface to a regularizer.
Template Parameters
VectorSparse or dense gradient representation.

Definition at line 49 of file gradient_descent-inl.hpp.