Normalizing data in Elixir Nx


is there any built in way to normalize datasets in Elixir Nx? In docs I found just Nx.Type.normalize!/1 for types normalization. Of course I can do it by myself, but it is very common operation and I’m surprised there is no any function to do that. Or may I am wrong?


1 Like

Generally speaking Nx is not for data “normalization”. When you arrive to Nx, the data is usually already normalized to zeros and ones, as it only knows about tensors. Maybe the Explorer library is a better fit for that.