Comments (9)
exp(0.5)
is just a constant. You can use np.exp
or math.exp
instead of torch.exp
, which only works for pytorch tensors (similar to numpy arrays)
from neurodiffeq.
I haven't heard of the butterfly optimization algorithm. If you really want to try it out, you probably have to implement your own Optimizer. Here is an article.
Can you be a little bit more specific as to "Loss and validation graph"? In general, you can inject behavior, including custom plotting and logging using the callback feature.
from neurodiffeq.
Hi @SK-Math , you can easily achieve this by implementing your own torch module.
import torch
from neurodiffeq.networks import FCNN
class MyActivation(torch.nn.Module):
def forward(self, x):
return torch.cos(1.75 * x) * torch.exp(-x**2 / 2)
fcnn = FCNN(hidden_units=(50, 50), actv=MyActivation)
Let me know if there are further questions.
from neurodiffeq.
Thnka you @shuheng-liu for your quick responce
from neurodiffeq.
def forward(self, x):
return x*torch.exp(0.5)
when calling in solver getting error like
TypeError: exp(): argument 'input' (position 1) must be Tensor, not float
how to fix it
from neurodiffeq.
Hi @shuheng-liu
How can I use Butterfly Optimization Algorithm instead of default ADAM optimization?
As I see torch.optim.
has not Butterfly Optimization .
How to plot Loss and validation graph during training ?
Thank you
from neurodiffeq.
-
Hi,
Can I write ode= 0.5*u''(x) + u'(0.5x) + u(x) likeode= lambda u, t: [ 0.5* diff(u, t, order=2) + diff(u, t/2) + u]
Just want to confirm writing of this term u'(0.5x)
please check. -
Is neurodiffeq support fractional order diff. eq?
Thank you
from neurodiffeq.
Hi,
-
Can I write ode= 0.5u''(x) + u'(0.5x) + u(x) like ode= lambda u, t: [ 0.5 diff(u, t, order=2) + diff(u, t/2) + u]
Just want to confirm writing of this term u'(0.5x)
please check. -
Is neurodiffeq support fractional order diff. eq?
Thank you
from neurodiffeq.
Hi, the first equation is, by definition, not a differential equation. It is a generic functional equation with differential operators. Hence, NeuroDiffEq cannot be used to solve this equation out of the box. But you can still solve it with neural networks, you just have to write some codes by yourself.
At the moment, NeuroDiffEq doesn't support fractional derivatives.
from neurodiffeq.
Related Issues (20)
- Is there a way to access the train/valid loss history for Solver1D, like for solve? HOT 2
- 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.
- Adding the option to use a learning rate schedule during training.
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.