Git Product home page Git Product logo

Comments (3)

adamoppenheimer avatar adamoppenheimer commented on August 30, 2024

Hi Jakob,

Thank you for using PyTwoWay and for reaching out!

The issue you reference is with the preconditioner, not the solver. The solver is actually iterative, so it doesn't check if the matrix is full rank. I'm planning to add an option to check if the matrix is full rank over the summer.

I recommend trying out the different preconditioner options to find one that works. You should specify 'preconditioner': [preconditioner] in your FE control parameters.

The preconditioner options are:

  • None
  • 'jacobi'
  • 'vcycle'
  • 'ichol'
  • 'ilu'

The default is 'ichol', which is the incomplete Cholesky decomposition, which seems not to work for your data. I would recommend trying 'jacobi' next. You could always try disabling the preconditioner with None, although this could be slow. I'm not sure how well 'ilu' and 'vcycle' will work, but feel free to try them.

In addition, you can always try out different solvers to see which is the fastest. In case you want to avoid preconditioners entirely, setting 'solver': 'amg' in your FE control parameters will use the AMG solver which doesn't use a preconditioner. This is also Professor Lamadon's preferred solver for very large datasets.

Please let me know if this doesn't resolve your issue, and also please feel free to reach out again if you have any more questions or issues with the code!

Best,
Adam

from pytwoway.

jakobbrounstein avatar jakobbrounstein commented on August 30, 2024

Thank you for your response!

I tried to use solver “‘amg”, but I received this error:
_pickle.PicklingError: Can't pickle <class 'pyamg.multilevel.coarse_grid_solver..GenericSolver'>:

However, this object is not found as “pyamg.multilevel.coarse_grid_solver..GenericSolver”.

I’m very sorry to bother, but I am just not sure which pickle is missing. Do you have an idea what causes this issue?

Best,

Jakob

from pytwoway.

adamoppenheimer avatar adamoppenheimer commented on August 30, 2024

Hi Jakob,

That sounds like an issue with multiprocessing. I think there are two good solutions.

First, you could install the multiprocess package so that it uses dill instead of pickle.

Alternatively, you can run the code with 'ncore': 1. If speed is an issue then you probably want multiprocessing though.

Please let me know if this resolves the issue!

Best,
Adam

from pytwoway.

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.