MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / test_gradient_descent

Function test_gradient_descent

machine_learning/gradient_descent.py:130–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

128
129
130def test_gradient_descent():
131 for i in range(len(test_data)):
132 print(("Actual output value:", output(i, "test")))
133 print(("Hypothesis output:", calculate_hypothesis_value(i, "test")))
134
135
136if __name__ == "__main__":

Callers 1

Calls 2

outputFunction · 0.85

Tested by

no test coverage detected