Comments (9)
I'm using Spyder3 to run this code:
`
import pydens as pde
from pydens import D
import numpy as np
import tensorflow as tfpde.add_tokens()
pde = {'n_dims': 2,
'form': lambda u, x, y: D(D(u, x), x) + D(D(u, y), y) - 5 * pde.sin(np.pi * (x + y)),
'boundary_condition': 1}body = {'layout': 'fa fa fa f', #estrutura da rede neural (layers)
'units': [15, 25, 15, 1], #neurônios por camada
'activation': [tf.nn.tanh, tf.nn.tanh, tf.nn.tanh]} #ativação advinda do TFlowconfig = {'body': body,
'pde': pde}us = pde.NumpySampler('uniform', dim=2)
dg = pde.Solver(config)
dg.fit(batch_size=100, sampler=us, n_iters=1500)
`
...and I'm getting this error:`File "C:\Users\my_user\Anaconda3\lib\site-packages\pydens\letters.py", line 20, in
from .batchflow.models.tf.layers import conv_blockModuleNotFoundError: No module named 'pydens.batchflow'`
My tersorflow are actualized and I got PyDEns and Batchflow with pip on conda terminal.
Do Tensorflow have to be version 1.14??
from pydens.
Hey, @adsmendesdaniel!
First of all, thanks for the interest!
It looks like installation from PyPI doesn't work: clearly, we've forgotten to upload batchflow
-submodule on the repository. We'll fix this as soon as possible! As of now, you can install pydens
using
pip3 install git+https://github.com/analysiscenter/pydens.git
This command will automatically include the needed batchflow
-submodule.
As to your second question: pydens
should work just fine with tensorflow 1.8
and higher.
Best,
Alex
from pydens.
Hey, @adsmendesdaniel!
First of all, thanks for the interest!
It looks like installation from PyPI doesn't work: clearly, we've forgotten to upload
batchflow
-submodule on the repository. We'll fix this as soon as possible! As of now, you can installpydens
usingpip3 install git+https://github.com/analysiscenter/pydens.git
This command will automatically include the needed
batchflow
-submodule.As to your second question:
pydens
should work just fine withtensorflow 1.8
and higher.Best,
Alex
Sorry, I installed pydens with pip and anaconda git, but I'm still getting the problem...
from pydens.
That looks strange. Did you try to uninstall the previous version of pydens
before reinstalling it using pip
+ git
?
pip uninstall pydens
If uninstalling doesn't help, I'd suggest you to use
git clone --recursive https://github.com/analysiscenter/pydens.git
for the installation of pydens
into a specific folder.
Best,
Alex
from pydens.
It worked!! Probably it wasn't running because I didn't uninstall the previous version.
Thank you.
from pydens.
Well, I have a problem even with the initial things like installing and then the current error that has been posted on this page. I do not know how to install using "git" since the windows does not accept installing though that command. Of course,
I have added in my variable environment the new paths but still, I am suffering from that.
from pydens.
Hello,
you should probably try to install git
by using this
Sergey
from pydens.
Hello,
you should probably try to install
git
by using thisSergey
Dear ,
thanks for your prompt reply. I did it at the time but I faced the issue of this page "No module named 'pydens.batchflow'" and I followed the steps of the page but nothing changed and happened.
from pydens.
Try to completely uninstall everything and run git clone --recursive https://github.com/analysiscenter/pydens.git
, as it seems that batchflow
submodule was not correctly pulled
from pydens.
Related Issues (20)
- Compilation error HOT 2
- boundry conditions HOT 1
- How can I change the interval of x HOT 3
- Elasticity Equations HOT 2
- How to install easily with PIP command? HOT 2
- Disentangle pydense and batchflow
- OperatorNotAllowedInGraphError: iterating over `tf.Tensor` is not allowed in Graph execution. Use Eager execution or decorate this function with @tf.function HOT 2
- How to solve Elliptic PDE with four different boundary conditions?
- Can anyone tell me the version of all the python packages installed?
- Create workflow to check installation
- Create workflow for releases
- Pyden Installation Problem HOT 1
- readme tanh,not tahn HOT 1
- How to solve if Parametric heat-equation in the example has 2 or 3 boundary conditions? HOT 2
- Learning from Data
- LBFGS optimizer not working
- Plotting problem HOT 1
- Systems of PDEs
- How to set an additional initial condition?
- Bug: type of missing layer (`ConvBlock`)
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 pydens.