Giter Site home page Giter Site logo

gsq's People

Contributors

cpflat avatar joosthvanderlinden avatar keiichishima avatar shisa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gsq's Issues

Error handling needed for call to numpy.log

In line 157 of discrete.py, there is a runtime warning that gets raised when numpy.log encounters values equal to or less than zero. Is there anything you can do to fix it?

data issue

Hi, I got a issue when I use discrete.py for my data with discrete data. but my data isn't like 0, 1, 2, 3 ... continues integers. It is like 0, 2, 3, 5. So it got an exception error such as

in line 95
nijk[i, j] += 1
IndexError: index 5 is out of bounds for axis 0 with size 4

data type issue

thank for you rewrite the PC algorithm with python.
But i meet some error with the G square conditional test part.
My array class was numpy.float64 for it's continuous features , and i'm try to conduct the conditional test with ci_test_dis as my conditional test function. But it raise error with my data type:
File "pcalg.py", line 299, in <module> alpha=0.01) File "pcalg.py", line 91, in estimate_skeleton **kwargs) File "E:\Users\jiaxin\Miniconda3\lib\site-packages\gsq\ci_tests.py", line 27, in ci_test_dis return g_square_dis(data_matrix, x, y, s, levels) File "E:\Users\jiaxin\Miniconda3\lib\site-packages\gsq\discrete.py", line 91, in g_square_dis nijk = np.zeros((levels[x], levels[y])) TypeError: 'numpy.float64' object cannot be interpreted as an integer
Is it because the G square test can only applied on the discrete data?
Can you give me some advices which conditional test is suite for my data type?
Thank you!

binary.py question

I don't clearly comprehend the code in the binary.py how it judge two nodes are D-separation.
Would you please add some comments on that file?
Thank you.

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.