src/modules/convex/mlp_igd.cpp
/**
 * @brief Return the coefficients and diagnostic statistics of the state
 */
@brief Return the coefficients and diagnostic statistics of the state
@brief Return the coefficients and diagnostic statistics of the state
AnyType
internal_mlp_minibatch_result::run(AnyType &args) {
    MLPMiniBatchState<ArrayHandle<double> > state = args[0];
    HandleTraits<ArrayHandle<double> >::ColumnVectorTransparentHandleMap flattenU;
    flattenU.rebind(&state.task.model.u[0](0, 0),
                    state.task.model.arraySize(state.task.numberOfStages,
                                               state.task.numbersOfUnits));
    double loss = state.algo.loss;
    AnyType tuple;
    tuple << flattenU
          << loss;
    return tuple;
}
AnyType internal_mlp_minibatch_result :: run ( AnyType & args ) { MLPMiniBatchState < ArrayHandle < double > > state = args [ 0 ] ; HandleTraits < ArrayHandle < double > > :: ColumnVectorTransparentHandleMap flattenU ; flattenU . rebind ( & state . task . model . u [ 0 ] ( 0 , 0 ) , state . task . model . arraySize ( state . task . numberOfStages , state . task . numbersOfUnits ) ) ; double loss = state . algo . loss ; AnyType tuple ; tuple << flattenU << loss ; return tuple ; }
@brief Return the coefficients and diagnostic statistics of the state
@brief Return the coefficients and diagnostic statistics of the state