Real feature matrices have holes, and constant columns, and columns that are entirely missing for a whole segment. All three turn a naive standardiser into a matrix of nan, and a single nan in a batch makes every gradient computed from it nan too.
Implement standardize(x) for a 2-D array of shape (n, d) that may contain nan. Return an array of the same shape where, for each column independently:
You have read the opening. The rest is free with a Bezen account, and no card is needed.
Behind the sign-in