Oct-13-2022, 04:23 PM
The following Python code gives an error when it is interpreted.
What is this error. How do I get rid of it?
Respectfully,
LZ
GridsearchCV( cv=TimeSeriesSplit(gap=0, max_train_size=None, n_splits=5, test_size=None), estimator=XGBClassifier( base_score=None, booster=None, colsample_bylevel=None, colsample_bynode=None, colsaample_bytree=None, gamma=None, gpu_id=None, importnce_type="gain", interaction_constraints=None, learning_rate=None, max_delta_step=None, max_depth=None, min_child_weight=None, missing=nan, monotone_constraints=None, n_estimators=100, n_jobs=None, num_parallel_tree=None, random_state=None, reg_alpha == None, reg_lambda=None, scale_pos_weight=None, subsample=None, tree_method=None, validate_paramters=None, verbosity=None, ), n_jobs=-1, param_grid={ "max_depth": [1, 3, 5, 7, 10, 20], "n_estimators": [5, 10, 20, 30, 40, 50], }, return_train_score=True, scoring="f1_macro", )The error is now posted.
Input In [35] ), ^ SyntaxError: positional argument follows keyword argumentIt is referring to line numbers, so I am attaching a screenshot showing the above code with line numbers.
What is this error. How do I get rid of it?
Respectfully,
LZ