Coder Social home page Coder Social logo

nbouziani / physics-driven-ml Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 8.0 217.28 MB

Physics-driven machine learning using PyTorch and Firedrake

License: MIT License

Python 100.00%
autograd automatic-differentiation deep-learning differentiable-programming dolfin-adjoint firedrake machine-learning pde physics-aware-ml physics-driven-machine-learning pytorch

physics-driven-ml's People

Contributors

nbouziani avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

physics-driven-ml's Issues

Error in testing package

Hi,
I installed firedrake successfully by following the instructions on firedrake website and also installed pytorch as well as physics-driven-ml. However, while testing pytest tests it is throwing me error. I think its because of pytorch-coupling, I did not use 'curl -O https://raw.githubusercontent.com/firedrakeproject/firedrake/master/scripts/firedrake-install
python3 firedrake-install --package-branch firedrake pytorch_coupling' .
How to do coupling manually?

Here is the error-


=================================== ERRORS ====================================
_______________ ERROR collecting tests/test_pytorch_coupling.py ________________
ImportError while importing test module '/home/teamacoustics/Downloads/physics-driven-ml/tests/test_pytorch_coupling.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_pytorch_coupling.py:9: in <module>
    from physics_driven_ml.models import EncoderDecoder
physics_driven_ml/__init__.py:3: in <module>
    from physics_driven_ml.dataset_processing import *            # noqa: F401
physics_driven_ml/dataset_processing/__init__.py:3: in <module>
    from physics_driven_ml.dataset_processing.pde_dataset import PDEDataset                      # noqa: F401
physics_driven_ml/dataset_processing/pde_dataset.py:6: in <module>
    from firedrake import CheckpointFile, load_backend
E   ImportError: cannot import name 'load_backend' from 'firedrake' (/home/teamacoustics/Downloads/firedrake/src/firedrake/firedrake/__init__.py)
------------------------------- Captured stderr --------------------------------
firedrake:WARNING OMP_NUM_THREADS is not set or is set to a value greater than 1, we suggest setting OMP_NUM_THREADS=1 to improve performance
=========================== short test summary info ============================
ERROR tests/test_pytorch_coupling.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 2.18s ===============================

Testing installation

Hi Nacime,
Executing following

cd physics_driven_ml
pytest tests

ERROR: file or directory not found: tests

If I run the command pytest tests from directory 'physics-driven-ml'. It is giving me farrowing error.


_______________ ERROR collecting tests/test_pytorch_coupling.py ________________
ImportError while importing test module '/Users/asaini/physics-driven-ml/tests/test_pytorch_coupling.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_pytorch_coupling.py:3: in <module>
    import torch
E   ModuleNotFoundError: No module named 'torch'
=========================== short test summary info ============================
ERROR tests/test_pytorch_coupling.py
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.03s ===============================

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.