Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Inscrutable error
#6
This is the code where it happens. I posted the error down below and it gives a hint as to where the error is.


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,
    )
Input In [1]
    )
    ^
SyntaxError: positional argument follows keyword argument
I am guessing it tells us that the error is in the first few python lines I do not think that the number 1 surrounded by brackets means a lot. If I were to run the code again that one would probably change to two.

What exactly am I looking for?

As I said it is in the first couple of lines. I just do not know what I am looking for.

I use black for code formatting, and it does not flag anything like this error when I run it.

Any help appreciated.

Respectfully,

LZ
Reply


Messages In This Thread
Inscrutable error - by Led_Zeppelin - Oct-13-2022, 04:23 PM
RE: Inscrutable error - by jefsummers - Oct-13-2022, 04:31 PM
RE: Inscrutable error - by deanhystad - Oct-13-2022, 06:24 PM
RE: Inscrutable error - by Led_Zeppelin - Oct-13-2022, 06:27 PM
RE: Inscrutable error - by deanhystad - Oct-13-2022, 08:06 PM
RE: Inscrutable error - by Led_Zeppelin - Oct-13-2022, 08:29 PM
RE: Inscrutable error - by Led_Zeppelin - Oct-13-2022, 08:30 PM
RE: Inscrutable error - by deanhystad - Oct-13-2022, 09:07 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020