Giter Club home page Giter Club logo

Comments (9)

adsmendesdaniel avatar adsmendesdaniel commented on June 5, 2024

I'm using Spyder3 to run this code:

`
import pydens as pde
from pydens import D
import numpy as np
import tensorflow as tf

pde.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 TFlow

config = {'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_block

ModuleNotFoundError: 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.

akoryagin avatar akoryagin commented on June 5, 2024

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.

adsmendesdaniel avatar adsmendesdaniel commented on June 5, 2024

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

Sorry, I installed pydens with pip and anaconda git, but I'm still getting the problem...

from pydens.

akoryagin avatar akoryagin commented on June 5, 2024

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.

adsmendesdaniel avatar adsmendesdaniel commented on June 5, 2024

It worked!! Probably it wasn't running because I didn't uninstall the previous version.
Thank you.

from pydens.

hossein-amini67 avatar hossein-amini67 commented on June 5, 2024

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,
photo_2020-10-09_16-18-57
I have added in my variable environment the new paths but still, I am suffering from that.

from pydens.

SergeyTsimfer avatar SergeyTsimfer commented on June 5, 2024

Hello,

you should probably try to install git by using this

Sergey

from pydens.

hossein-amini67 avatar hossein-amini67 commented on June 5, 2024

Hello,

you should probably try to install git by using this

Sergey

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.

SergeyTsimfer avatar SergeyTsimfer commented on June 5, 2024

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)

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.