GithubHelp home page GithubHelp logo

bmlingam's People

Contributors

taku-y avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bmlingam's Issues

Unable to run bmlingam-coeff

I have installed bmlingam which works great finding causality .
However I am facing the following issue while running bmlingam-coeff.

Traceback (most recent call last):
File "/home/administrator/anaconda2/bin/bmlingam-coeff", line 11, in <module>
from bmlingam.commands.bmlingam_coeff import estimate_coeff_posterior, \
ImportError: cannot import name estimate_coeff_posterior

Can you please help what must have gone wrong

Unable to run with --prior_indvdl as gauss

Hi ,
I am facing following error while trying to run bmlingam with gauss.
Commands we have issued :

  1. bmlingam-causality --standardize_on --prior_indvdls=gauss time_2.csv
  2. bmlingam-causality --standardize_off --prior_indvdls=gauss time_2.csv
  3. bmlingam-causality --prior_indvdls=gauss time_2.csv
  4. bmlingam-causality --standardize_off --fix_mu_zero_off --max_c=1.0 --n_mc_samples=1000 --prior_scale=log_normal --L_cov_21s=[-0.9, -0.7, -0.5, -0.3, 0, 0.3, 0.5, 0.7, 0.9] --prior_indvdls=gauss time_2.csv --sampling_mode cache_mp8 --cs=[ 0. , 0.2, 0.4, 0.6, 0.8, 1. ]

In the 4th command, BMLingam does not take lists 'cs' and L_cov_21s.

Following is the stack trace.
Traceback (most recent call last): File "/usr/local/bin/bmlingam-causality", line 18, in <module> bmlingam_causality_(**params) File "/usr/local/lib/python2.7/site-packages/bmlingam/commands/bmlingam_causality.py", line 281, in bmlingam_causality varnames[list(pair)]) for pair in pairs] File "/usr/local/lib/python2.7/site-packages/bmlingam/infer_causality.py", line 24, in infer_causality find_best_model(xs, hparamss, sampling_mode) File "/usr/local/lib/python2.7/site-packages/bmlingam/find_best_model.py", line 41, in find_best_model for hparams in hparamss]) File "/usr/local/lib/python2.7/site-packages/bmlingam/bmlingam_np.py", line 56, in comp_logP cache, prior_indvdl, L_cov_21, df_indvdl, beta_coeff) File "/usr/local/lib/python2.7/site-packages/bmlingam/cache_mc.py", line 165, in fetch_mu_indvdl ('mu_indvdl1', prior_indvdl, L_cov_21, df_indvdl, beta_coeff)] KeyError: ('mu_indvdl1', 'gauss', -0.9, 8.0, None)
Thanks for looking to the problem.

Update document for installation

Before update, need to confirm that PyMC3 is automatically installed when executing pip install BMLiNGAM-0.1.5-py2.py3-none-any.whl.

Upgrade to Aesara

I was able to get this running with the port of PyMC3 to Aesara. I also added, to bmlingam_causality.py an exclusion of rows with any na values from pairs. It may not be appropriate for this repo but I figured I'd mention the fact since I did this upgrade due to the fact that none of my attempts to install bmlingam worked due to version conflicts involving theano.

KeyError: 'L_cov'

Hi, thanks for your work.
The 'cache' version can work. But when I change the 'sampling_mode' to 'normal'. The error message 'KeyError: 'L_cov' appeared in L_cov = hparams['L_cov']. Could you please help me?

Docker file

Create docker file to automate tests the library.

Can we resume BMLiNGAM

The CSV file I am giving has 37 variables out of which few have been processed and log has been captured, but suddenly my system crashed.
Now in my logs I can see
{
2 * log(p(M)) - log(p(M_rev)) : 22.123
Infered Causality : "A->B"
}
Is there a way to resume BMLiNGAM where the program last left with ?

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.