Normalize -1 ~ 1
You can use the min-max scalar or the z-score normalization here is what u can do in sklearn
from sklearn.preprocessing import MinMaxScaler
from sklearn.preprocessing import StandardScaler
or hard code it like this
x_scaled = (x - min(x)) / (max(x) - min(x)) * 2 - 1 -> this one for minmaxscaler
x_scaled = (x - mean(x)) / std(x) -> this one for standardscaler
there are many ways about normalize skils for ml and dl. It is known to provide only normalization for 0 to 1.
I want to know that is some ways to normalize -1 between 1.