GithubHelp home page GithubHelp logo

Comments (6)

Arup-nit avatar Arup-nit commented on June 16, 2024

Also facing same problem for import Solver 2D and Monitor 2D.
Thank you

from neurodiffeq.

shuheng-liu avatar shuheng-liu commented on June 16, 2024

Can you check your C:\Users\USER\anaconda3\lib\site-packages\neurodiffeq\solvers.py file and see if it contains a Solver1D class? This is likely a python environment issue specific to your local setup.

from neurodiffeq.

Arup-nit avatar Arup-nit commented on June 16, 2024

I update to latest version.
I want to solve fourth order ODE, With both neumann and dirichlit conditions. for ex y(0)=1,y'(0)=2,y(1)=2,y'(1)=3
Can I solve using this package?

from neurodiffeq.

Arup-nit avatar Arup-nit commented on June 16, 2024

Dear Liu,
after update to latest version; my earlier code is not working for solving second order ode for DirichletBVP

train_generator = ExampleGenerator(N, t_min=0.1, t_max=2, method='uniform')

solution, loss_history, internals = solve(
    ode=ode,
    condition=condition, 
    t_min=x_1, 
    t_max=x_2, 
    optimizer=adam,
    monitor=monitor, 
    max_epochs=5000,
    return_internal=True,
    train_generator=train_generator,
    valid_generator=valid_generator,
    batch_size=train_generator.size,
  )

Giving error like
name 'adam' is not defined
If remove optimizer=adam and run then giving below error
TqdmKeyError: "Unknown argument(s): {'colour': 'blue'}"

Please look into this

from neurodiffeq.

shuheng-liu avatar shuheng-liu commented on June 16, 2024

The error is because you did not define the variable adam and python doesn't know that variable is. You need to try

adam = torch.optim.Adam(...)

before passing that to the solve function.

On another note, the solve function is deprecated long ago and you should stop using it because we'll stop supporting it in the future.

from neurodiffeq.

Arup-nit avatar Arup-nit commented on June 16, 2024

Thank you

from neurodiffeq.

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.