Giter VIP home page Giter VIP logo

Comments (5)

obilaniu avatar obilaniu commented on June 21, 2024

@ronikobrosly I am the author of the C chunk.

  1. It must be compiled, a step carried out by setup.py. I suspect you may not have done pip install -e ..
  2. It very heavily uses AVX2 and FMA vector extensions, available only on CPUs Intel Haswell/AMD Excavator and newer. A runtime CPU detection code rejects loading the module on CPUs that are too old. I don't see the warning it prints in your error message, so I really suspect you're still at problem 1), but I may be mistaken.

from causal_learning_unknown_interventions.

ronikobrosly avatar ronikobrosly commented on June 21, 2024

Thank you for the heads up @obilaniu ! I will try this later today and report back here.

from causal_learning_unknown_interventions.

ronikobrosly avatar ronikobrosly commented on June 21, 2024

Hi @obilaniu , unfortunately that did not seem to work. I ran both pip install -e . and python setup.py develop. When I run
python run.py train --seed 1 --train_functional 10000 --mopt adam:5e-2,0.9 --gopt adam:5e-3,0.1 -v 500 --lsparse 0.1 --bs 256 --ldag 0.5 --predict 100 --temperature 1 --limit-samples 500 -N 2 -p confounder3
I still get AttributeError: module 'causal' has no attribute '_causal'.

Do you have any more ideas?

from causal_learning_unknown_interventions.

obilaniu avatar obilaniu commented on June 21, 2024

@ronikobrosly Well, I'll guess based on your paths that you're on macOS.

I never developed for that platform specifically, and because Apple does things differently I had to disable my CPU check for too-old compilers. My vector code will also 100% not work on very new M1 chips because they're not x86_64 architecture but Aarch64.

Assuming you're still on one of the Intel-based Macs, I propose you remove the try-except from around the import here and say what error message it gives, and furthermore check whether there is a newly-compiled library causal/_causal*.{so|dylib} (or something like that). If there is not, I'd suggest you try pip install -v -e . to see more verbosely what's going on.

I would not be surprised to learn that it failed to compile (x86_64 code will not compile on Aarch64), or fails to import with a failing CPU check (x86_64 CPU is too old).

from causal_learning_unknown_interventions.

ronikobrosly avatar ronikobrosly commented on June 21, 2024

Ahhh, welp you basically guessed it, Im using a new Macbook Pro with the M1 chip. Oh well, thanks for your help though!

from causal_learning_unknown_interventions.

Related Issues (2)

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.