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

Function wrapper

machine_learning/multilayer_perceptron_classifier.py:18–23  ·  view source on GitHub ↗

>>> [int(x) for x in wrapper(Y)] [0, 0, 1]

(y)

Source from the content-addressed store, hash-verified

16
17
18def wrapper(y):
19 """
20 >>> [int(x) for x in wrapper(Y)]
21 [0, 0, 1]
22 """
23 return list(y)
24
25
26if __name__ == "__main__":

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected