numerox icon indicating copy to clipboard operation
numerox copied to clipboard

Data.xnew() is broken

Open chrkorn opened this issue 5 years ago • 1 comments

The assignment to df.values does not work and leaves all feature data set to 0.

chrkorn avatar Apr 08 '20 18:04 chrkorn

I encountered the same problem with the following code:

import numerox as nx
from sklearn.preprocessing import StandardScaler

data = nx.load_zip('.numerai_datasets.zip', single_precision=True)
sc = StandardScaler()
x = sc.fit_transform(data.x)
data = data.xnew(x)

data.x is now a matrix full of zeros

EDIT: when setting single_precision=False, xnew has the correct behavior

clementpoiret avatar Sep 27 '20 07:09 clementpoiret