Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idiosyncratic crash in PCAmodel._screecv_optimize_ncomps #8

Open
jaketmp opened this issue Apr 23, 2018 · 0 comments
Open

Idiosyncratic crash in PCAmodel._screecv_optimize_ncomps #8

jaketmp opened this issue Apr 23, 2018 · 0 comments

Comments

@jaketmp
Copy link
Collaborator

jaketmp commented Apr 23, 2018

Running the below code will fail ~15% of the iterations.

 for i in range(100):
             PCAmodel = ChemometricsPCA(ncomps=10, scaler=scaler_obj)
             data = numpy.random.lognormal(size=(10, 10)) + 1
             PCAmodel._npyc_dataset_shape = {'NumberSamples': data.shape[0], 'NumberFeatures': data.shape[1]}
             PCAmodel.fit(data)
             try:
                 scree_cv = PCAmodel._screecv_optimize_ncomps(data, total_comps=10, stopping_condition=0.05)
                 
             except:
                print('failed')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant