Skip to content
Snippets Groups Projects
Commit e4306dad authored by Elkhadri Doha's avatar Elkhadri Doha
Browse files

Upload New File

parent 9b0df479
No related branches found
No related tags found
No related merge requests found
from mlp import one_hot
import numpy as np
def one_hot_test():
x = list(range(10))
oh = one_hot(x)
assert oh.shape == (len(x), 10)
assert (np.sum(oh, axis=1) == np.ones((1, 10))).all()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment