comparison to_categorical.xml @ 3:ec69cbe34b73 draft

planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools/sklearn commit 8850f42c2c3763e614f7454c9c006f3d2ff572c0
author bgruening
date Fri, 27 May 2022 12:43:28 +0000
parents 59e8b4328c82
children b650955a20cc
comparison
equal deleted inserted replaced
2:612ca26c197d 3:ec69cbe34b73
67 **What it does** 67 **What it does**
68 68
69 Converts a class vector (integers) to binary class matrix. 69 Converts a class vector (integers) to binary class matrix.
70 70
71 tf.keras.utils.to_categorical( 71 tf.keras.utils.to_categorical(
72 y, num_classes=None, dtype='float32' 72 y, num_classes=None, dtype='float32'
73 ) 73 )
74 74
75 E.g. for use with categorical_crossentropy. 75 E.g. for use with categorical_crossentropy.
76 76
77 Arguments 77 Arguments