Skip to content

Errors in tests in Gradient Descent task Pima Indians and Linear Classifier / Gradient Descent #80

@edutools-service

Description

@edutools-service

The 'test_predict' and 'test_weights' tests in the Gradient Descent task contain calls to 'assertEquals()' instead of 'assertEqual()'. This prevents the tests from running sucessfully so the task cannot be completed.

Traceback (most recent call last):
File "/home/*********/PycharmProjects/Machine Learning 101/Pima indians diabetes and linear classifier/task/tests/test_task.py", line 34, in test_predict
self.assertEquals(1, gd.predict(np.array([1, 2, 3, 4, 5])))
^^^^^^^^^^^^^^^^^
AttributeError: 'TestCase' object has no attribute 'assertEquals'. Did you mean: 'assertEqual'?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions