Hi,
Listed below are some troubleshooting steps:
- Check MATLAB Version and Python Integration: Ensure you're using MATLAB R2016b or later, as earlier versions had limitations with "pyargs()".
- Try both "name=value" syntax and "pyargs()" for different methods to see which approach works for each.
- For methods like "AddLayer", provide required positional arguments before optional keyword arguments.
- From the official documentation of "pyargs" function from MathWorks, there are some limitations mentioned and here is the documention link: https://www.mathworks.com/help/matlab/ref/pyargs.html
- Do not combine pyargs and name=value syntax when passing keyword arguments to Python functions.
- MATLAB does not support name,value syntax for passing keyword arguments to Python functions. Use name=value syntax instead.
I hope these steps help you.