Comments (6)
Also facing same problem for import Solver 2D and Monitor 2D.
Thank you
from neurodiffeq.
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.
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.
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.
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.
Thank you
from neurodiffeq.
Related Issues (20)
- Special Type Boundary Condition HOT 4
- Is there a way to access the train/valid loss history for Solver1D, like for solve? HOT 2
- Using Special type activation function HOT 9
- Finding value of weights HOT 2
- Saving subclass of solvers HOT 1
- TqdmKeyError: "Unknown argument(s): {'colour': 'blue'}" HOT 3
- Publish `neurodiffeq` on `conda-forge`?
- Neumann boundary conditions
- Nonzero Dirichlet boundary conditions HOT 8
- Add tests for solver_utils
- BundleSolver setup too restrictive HOT 1
- fitting a variable in a system of ODE as a function of time HOT 4
- Problems :return inspect.signature(optimizer.step).parameters.get('closure').default == inspect._empty AttributeError: 'NoneType' object has no attribute 'default' HOT 2
- Parametric system of ODEs HOT 1
- Bundle Solution for PDEs
- Improve Docs
- Solving system of PDEs/ODEs HOT 1
- Missing eq_param_index when loading BundleSolution HOT 4
- Could we implement the differential equations in symbolic format? HOT 3
- Access to the differential equations of the system.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neurodiffeq.