Ad
  • Custom User Avatar

    Look in the problem description below 'The "train_ada_boost" function accepts the following arguments:'. That should give you a hint

  • Custom User Avatar

    Traceback (most recent call last):
    File "/workspace/default/.venv/lib/python3.11/site-packages/codewars_test/test_framework.py", line 112, in wrapper
    func()
    File "/workspace/default/tests.py", line 132, in _
    test_ada_boost(f2_is_prime, 300, n_est = 10, seed=256)
    File "/workspace/default/tests.py", line 74, in test_ada_boost
    u, u_test_set, u_test_target = train_ada_boost(X.reshape(-1, 1), target, estimators = n_est, random_seed=seed)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    TypeError: train_ada_boost() got an unexpected keyword argument 'estimators'
    I just get that error but I did everything to fix that but I couldn't. How should I do?