Post
Python
How to resolve the error keyword can’t be an expression?
Whenever I am trying to call rpy2 function I am getting this error here is the code I am using
res = DirichletReg.ddirichlet(np.asarray(my_values),alphas,
log=False, sum.up=False)
SyntaxError: keyword can't be an expression
Posted on 19th April 2024
There is a very easy solution for this problem just by creating a dictionary by passing parameters to the model like this
params = {'C': 1e9, 'gamma': 1e-07}
cls = SVC(**params)
STILL GOT QUERIES?