Python: SyntaxError: keyword can't be an expression

后端 未结 5 2250
清酒与你
清酒与你 2020-12-01 20:28

In a Python script I call a function from rpy2, but I get this error:

#using an R module 
res = DirichletReg.ddirichlet(np.asarray(my_values),al         


        
5条回答
  •  [愿得一人]
    2020-12-01 21:21

    I guess many of us who came to this page have a problem with Scikit Learn, one way to solve it is to create a dictionary with parameters and pass it to the model:

    params = {'C': 1e9, 'gamma': 1e-07}
    cls = SVC(**params)    
    

提交回复
热议问题