Ad
  • Custom User Avatar
  • Custom User Avatar

    Next time I would prefer that instead of relying on implementation details such as ordered dicts/Maps you simply provide an array of tuplies (i.e. the result of functions.entries() in JS). the V8 engine happens to also have ordered Maps and Sets, but that is not guranteed to happen in other JS engines.

  • Default 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?

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution