Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Data.xnew() is broken #40

Open
chrkorn opened this issue Apr 8, 2020 · 1 comment
Open

Data.xnew() is broken #40

chrkorn opened this issue Apr 8, 2020 · 1 comment

Comments

@chrkorn
Copy link

chrkorn commented Apr 8, 2020

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

csp197 added a commit to csp197/numerox that referenced this issue Jun 15, 2020
@csp197 csp197 mentioned this issue Jun 16, 2020
@clementpoiret
Copy link

clementpoiret commented Sep 27, 2020

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants