It gives me an error for the following line:
assert(isa(opts.train.solver, 'function_handle') && nargout(opts.train.solver) == 2,...
'Invalid solver; expected a function handle with two outputs.');
Error using nargout
Function solver.adam does not exist.
It seems there is no @solver.adam in Matlab R2017a.
@solver.adam is from MatConvNet, not MATLAB. This is the implementation. Make sure you are using MatConvNet toolbox version 1.0-beta25, and it should work.
It gives me an error for the following line: assert(isa(opts.train.solver, 'function_handle') && nargout(opts.train.solver) == 2,... 'Invalid solver; expected a function handle with two outputs.');
Error using nargout Function solver.adam does not exist.
It seems there is no @solver.adam in Matlab R2017a.