Open yaniyuval opened 5 years ago
I just synced our internal code to this repository again. I think this specific error may be fixed by https://github.com/google-research/data-driven-pdes/commit/e182dde76e7d4f26e7f7381589acc31be28bc6ad. Can you give this a try again?
(I also really should get a continuous integration setup going on GitHub...)
Hi Stephan, Thanks for the fast response. It is working now. Me and Nick understand better from your tutorial how to define and solve an equation. What seems to us complicated (or at least would require from us to dive into your code, which we want to avoid), is where could we use some ML to predict different things. Namely, if we want to train some algorithm, to predict some of the terms in the equation (e.g., predict a forcing based on ML, and not based on analytic formulation), where should we do it in the code.
Thanks, Yani and Nick
On Wed, Jul 17, 2019 at 2:45 PM Stephan Hoyer notifications@github.com wrote:
I just synced our internal code to this repository again. I think this specific error may be fixed by e182dde https://github.com/google-research/data-driven-pdes/commit/e182dde76e7d4f26e7f7381589acc31be28bc6ad. Can you give this a try again?
(I also really should get a continuous integration setup going on GitHub...)
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/google-research/data-driven-pdes/issues/7?email_source=notifications&email_token=AFPRKJJJQXEELUAPPHNBP2LP75SELA5CNFSM4IETJ3EKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2GG6LQ#issuecomment-512519982, or mute the thread https://github.com/notifications/unsubscribe-auth/AFPRKJPI325PRBRUZFNKXGDP75SELANCNFSM4IETJ3EA .
I think (@shoyer correct me if I'm wrong) what you need to do is write a Model
(see here). As I wrote in the tutorial, a Model
is a structure that takes the current state
and calculates the time derivative. This is done by the method Model.time_derivative
, which calculates all the inputs needed for the Equation.time_derivative
function.
The model that you write calculate the inputs in any way you want, Random Forests or CNNs or whatever.
Eventually I'll add an example for this to the tutorial, but it will take a few weeks
I think (@shoyer correct me if I'm wrong) what you need to do is write a
Model
(see here
Generally you only need to reuse an existing Model
, not write one from scratch. PseudoLinearModel
is the main model we used in our PNAS paper.
Thanks. but they need to learn a reaction term, possibly not in a convolutional setting. They might have to write a new one.
On Tue, Jul 23, 2019 at 11:53 AM Stephan Hoyer notifications@github.com wrote:
I think (@shoyer https://github.com/shoyer correct me if I'm wrong) what you need to do is write a Model (see here https://github.com/google-research/data-driven-pdes/blob/master/datadrivenpdes/core/models.py
Generally you only need to reuse an existing Model, not write one from scratch. PseudoLinearModel is the main model we used in our PNAS paper.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/google-research/data-driven-pdes/issues/7?email_source=notifications&email_token=ABPA5PMHIR3RCS7BUPCJYETQA4SPJA5CNFSM4IETJ3EKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2TSQXA#issuecomment-514271324, or mute the thread https://github.com/notifications/unsubscribe-auth/ABPA5PMT2MJKJTG7B3BQ5RDQA4SPJANCNFSM4IETJ3EA .
-- Yohai Bar Sinai Post Doctoral Fellow John A. Paulson School of Engineering and Applied Sciences Harvard University
Hi, When trying to run the tutorial code, I get an error in the line:
results = pde.core.integrate.integrate_times( model=pde.core.models.FiniteDifferenceModel(equation,grid), state=initial_state, times=times, axis=0)
The error that I get is (I will also send it to the AutoGraph team as they requested) :
W0717 14:24:34.494019 140735880733568 ag_logging.py:145] Entity <function integrate_steps..advance_until_saved_step at 0xb4026f378> could not be transformed and will be executed as-is. Please report this to the AutgoGraph team. When filing the bug, set the verbosity to 10 (on Linux, .advance_until_saved_step at 0xb4026f378>: ValueError: inconsistent nodes: None (NoneType) and None (NoneType)
WARNING: Entity <function integrate_steps..advance_until_saved_step at 0xb4026f378> could not be transformed and will be executed as-is. Please report this to the AutgoGraph team. When filing the bug, set the verbosity to 10 (on Linux, .advance_until_saved_step at 0xb4026f378>: ValueError: inconsistent nodes: None (NoneType) and None (NoneType)
export AUTOGRAPH_VERBOSITY=10
) and attach the full output. Cause: converting <function integrate_steps.export AUTOGRAPH_VERBOSITY=10
) and attach the full output. Cause: converting <function integrate_steps.TypeError Traceback (most recent call last)