Giter Club home page Giter Club logo

Comments (5)

jsspencer avatar jsspencer commented on July 19, 2024

Hard to know without a full stack trace from one of the tests, but I suspect ferminet needs a python 3.10 or 3.11 (I don't have versions older than 3.11 to hand to check, unfortunately).

from ferminet.

SLZ0106 avatar SLZ0106 commented on July 19, 2024

Hi I have updated python to 3.10.6, but new error occurs in ferminet/tests/train_test.py.

======================================================================= short test summary info =======================================================================FAILED ferminet/tests/train_test.py::QmcTest::test_training_step0 - TypeError: RepeatedDenseBlock.update_curvature_matrix_estimate() missing 1 required positional argument: 'pmap_axis_name'
FAILED ferminet/tests/train_test.py::QmcTest::test_training_step1 - TypeError: RepeatedDenseBlock.update_curvature_matrix_estimate() missing 1 required positional argument: 'pmap_axis_name'
FAILED ferminet/tests/train_test.py::QmcTest::test_training_step4 - TypeError: RepeatedDenseBlock.update_curvature_matrix_estimate() missing 1 required positional argument: 'pmap_axis_name'
FAILED ferminet/tests/train_test.py::QmcTest::test_training_step5 - TypeError: RepeatedDenseBlock.update_curvature_matrix_estimate() missing 1 required positional argument: 'pmap_axis_name'
FAILED ferminet/tests/train_test.py::QmcTest::test_training_step8 - TypeError: RepeatedDenseBlock.update_curvature_matrix_estimate() missing 1 required positional argument: 'pmap_axis_name'
FAILED ferminet/tests/train_test.py::QmcPyscfMolTest::test_schnet_training_step0 - TypeError: RepeatedDenseBlock.update_curvature_matrix_estimate() missing 1 required positional argument: 'pmap_axis_name'
FAILED ferminet/tests/train_test.py::QmcPyscfMolTest::test_schnet_training_step1 - TypeError: RepeatedDenseBlock.update_curvature_matrix_estimate() missing 1 required positional argument: 'pmap_axis_name'
FAILED ferminet/tests/train_test.py::QmcPyscfMolTest::test_schnet_training_step2 - TypeError: RepeatedDenseBlock.update_curvature_matrix_estimate() missing 1 required positional argument: 'pmap_axis_name'
FAILED ferminet/tests/train_test.py::QmcPyscfMolTest::test_schnet_training_step3 - TypeError: RepeatedDenseBlock.update_curvature_matrix_estimate() missing 1 required positional argument: 'pmap_axis_name'
FAILED ferminet/tests/train_test.py::QmcPyscfMolTest::test_schnet_training_step4 - TypeError: RepeatedDenseBlock.update_curvature_matrix_estimate() missing 1 required positional argument: 'pmap_axis_name'
FAILED ferminet/tests/train_test.py::QmcPyscfMolTest::test_training_step_pyscf1 - TypeError: RepeatedDenseBlock.update_curvature_matrix_estimate() missing 1 required positional argument: 'pmap_axis_name'

from ferminet.

jsspencer avatar jsspencer commented on July 19, 2024

This is due to a minor API change in KFAC. I pushed an update fixing this.

from ferminet.

SLZ0106 avatar SLZ0106 commented on July 19, 2024

Thanks a lot, it is solved. But one more interesting thing I would like to know is that in which part of the code represents the optimization of the wave function (because I am majoring in Computer Science so I cannot fully understand the paper and the code).
Many Thanks!

from ferminet.

jsspencer avatar jsspencer commented on July 19, 2024

The training loop is in ferminet/train.py - the training step with KFAC is created in make_kfac_training_step [https://github.com/deepmind/ferminet/blob/main/ferminet/train.py#L280], though the training step using optax optimizers are more accessible if you wish to read the entire code.

from ferminet.

Related Issues (20)

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.