keiichishima / gsq Goto Github PK
View Code? Open in Web Editor NEWG Square Conditional Independence Test
License: GNU General Public License v2.0
G Square Conditional Independence Test
License: GNU General Public License v2.0
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?
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
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!
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.