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

std::bad_array_new_length #54

Open
ghost opened this issue Sep 20, 2017 · 2 comments
Open

std::bad_array_new_length #54

ghost opened this issue Sep 20, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 20, 2017

If I call the method with the 3rd parameter > 1 I get the error:
File "pymrmr/pymrmr.pyx", line 26, in pymrmr.mRMR (pymrmr/pymrmr.cpp:1790)
MemoryError: std::bad_array_new_length
For the mRMR features.
E.g. call with 3rd parameter = 2:

*** MaxRel features ***
Order Fea Name Score
1 12 HitStatisticsValues.z_travel 0.429
2 18 LineFit_TT.z 0.392

*** mRMR features ***
Order Fea Name Score
1 12 HitStatisticsValues.z_travel 0.429
Traceback (most recent call last):
File "select_attributes.py", line 99, in
test = pymrmr.mRMR(data, 'MID', 2)
File "pymrmr/pymrmr.pyx", line 26, in pymrmr.mRMR (pymrmr/pymrmr.cpp:1790)
MemoryError: std::bad_array_new_length

@fbrundu
Copy link
Owner

fbrundu commented Sep 20, 2017

Hey @AlexHarn . Thanks for filing this issue.
Could you please provide me sample data and the call signature in order to reproduce this bug in my system?

Thank you.
Francesco

@blrk
Copy link

blrk commented Jun 16, 2021

I do get a similar error When I call the function mRMR

import pymrmr
pymrmr.mRMR(df1, 'MIQ', 10)

MemoryError Traceback (most recent call last)
in ()
1 import pymrmr
----> 2 pymrmr.mRMR(df1, 'MIQ', 10)

/usr/local/lib/python3.7/dist-packages/pymrmr/pymrmr.pyx in pymrmr.mRMR()

MemoryError: std::bad_array_new_length

df1 is the feature data frame that contains 38 features

Appreciate your help

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

2 participants