GithubHelp home page GithubHelp logo

Comments (10)

shm-smn avatar shm-smn commented on May 30, 2024 1

Did you find the solution for that? as i am encountering the same problem.

from pymrmr.

fbrundu avatar fbrundu commented on May 30, 2024

Hi @Kein0112,
Could you provide me a test matrix that generates such error so I can debug it?
Thanks,
Francesco

from pymrmr.

fbrundu avatar fbrundu commented on May 30, 2024

@shm-smn could you share a test matrix to understand the issue?

Thanks

from pymrmr.

Irving-ren avatar Irving-ren commented on May 30, 2024

@fbrundu I just occurred the same problem. Do you familiar with this problem?

from pymrmr.

fbrundu avatar fbrundu commented on May 30, 2024

@terminator9487 could you share some test data to understand the issue?

Thanks

from pymrmr.

Irving-ren avatar Irving-ren commented on May 30, 2024

Of course, Could I have you email address?

from pymrmr.

fbrundu avatar fbrundu commented on May 30, 2024

If it's not private you can just drop it here. Can you anonymize it?

from pymrmr.

AlvaroRodriguezDelRio avatar AlvaroRodriguezDelRio commented on May 30, 2024

Hi! I am experiencing the same problem when inputing this matrix (which is a subset of a larger one for which I get the same error):

disease g1 g2 g3
CTR 0.000482 0.0 0.0
CRC 0.003343 0.0 0.0
CRC 0.006969 0.0 0.0
CTR 0.000000 0.0 0.0

Any idea of what the problem could be? Thanks in advanced!

from pymrmr.

noobyogi0010 avatar noobyogi0010 commented on May 30, 2024

Hi @AlvaroRodriguezDelRio !
I looked at the error and got to know that it is caused by the file pymrmr.pyx
Upon more debugging I found that it's because in the source file pymrmr.pyx where the mRMR function is defined, there's a line as follows:

  1. def mRMR(data, method, nfeats):
  2. cdef vector[vector[int]] _data = data.copy().values

In the line 2, you can see that the values of the input data, that's, the actual CSV file is copied into a int cell of the 2d vector. On the other hand, the data file you input contains values in float format, due to which it is giving the TypeError.
I'll create a pull request after making the appropriate changes to the pymrmr.pyx file.
I hope this might help you.
Thanks

from pymrmr.

AlvaroRodriguezDelRio avatar AlvaroRodriguezDelRio commented on May 30, 2024

Thanks a lot for your answer @noobyogi0010 ! This was really helpful, I will be looking forward to the new updated version with the changes you propose!

from pymrmr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.