MCPcopy Create free account
hub / github.com/MultiPath/CopyNet / to_categorical

Function to_categorical

emolga/utils/np_utils.py:8–18  ·  view source on GitHub ↗

Convert class vector (integers from 0 to nb_classes) to binary class matrix, for use with categorical_crossentropy

(y, nb_classes=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected