# Advancing towards Modeling 2.0 with neural-ODE via Wolfram Language

**URL:** <https://community.wolfram.com/t/advancing-towards-modeling-2-0-with-neural-ode-via-wolfram-language/18979>\
**Category:** Staff Picks\
**Tags:** biological-sciences, data-science, calculus, equation-solving, machine-learning, staff-pick, publication-materials, neural-networks, artificial-intelligence\
**Created:** [October 16, 2021, 5:20pm UTC](https://community.wolfram.com/t/advancing-towards-modeling-2-0-with-neural-ode-via-wolfram-language/18979 "2021-10-16T17:20:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lujames](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/lujames/32/35975_2.png) [@lujames](https://community.wolfram.com/u/lujames)\
**Post date:** [October 16, 2021, 5:20pm UTC](https://community.wolfram.com/t/advancing-towards-modeling-2-0-with-neural-ode-via-wolfram-language/18979/1 "2021-10-16T17:20:41Z")

</div>

_SUPPLEMENTARY WOLFRAM MATERIALS for the ARTICLE:_

> Lu, J., Bender, B., Jin, J.Y. et al. (2021).

> Deep learning prediction of patient response time course from early data via neural-pharmacokinetic/pharmacodynamic modelling.

> NATURE Machine Intelligence 3, 696–704.

> [Deep learning prediction of patient response time course from early data via neural-pharmacokinetic/pharmacodynamic modelling | Nature Machine Intelligence](https://doi.org/10.1038/s42256-021-00357-4)

> [Full article PDF](https://t.co/2pd8EkWTrD)

![NeuralPKPD_simulation_in_action.gif](https://global.discourse-cdn.com/wolfram/original/3X/e/4/e44421ca1de46c546fa9bb4d3048e3036eedc783.gif)

[Video](https://www.youtube.com/watch?v=3_SYOrmJlp0)

![NeuralPKPD_prediction_update_in_action.gif](https://global.discourse-cdn.com/wolfram/original/2X/0/0641c60f77b9c7d50381e6eddfc3b89891e02c38.gif)

[Video](https://www.youtube.com/watch?v=7Tdp1KtFDJM)

[Open in Wolfram Cloud ↗](https://www.wolframcloud.com/obj/f05eb712-2187-493c-a472-0faa9f180f8b)

---

<div class="post-metadata">

**Author:** ![wolframcommunity](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/wolframcommunity/32/8335_2.png) [@wolframcommunity](https://community.wolfram.com/u/wolframcommunity)\
**Post date:** [October 18, 2021, 6:59pm UTC](https://community.wolfram.com/t/advancing-towards-modeling-2-0-with-neural-ode-via-wolfram-language/18979/2 "2021-10-18T18:59:14Z")

</div>

![news-congrads-kkluyshnik-02-04-19.jpg](https://global.discourse-cdn.com/wolfram/original/3X/6/a/6a310c2d0904616faf4e6e148260c9f29ab9f4eb.jpeg) – you have earned _ **Featured Contributor Badge** _ ![2015-11-02_10-07-11.png](https://global.discourse-cdn.com/wolfram/original/3X/5/0/50e59c9ead62f729e7130d3ea1482555a75602b6.png)  
Your exceptional post has been selected for our editorial column _ **Staff Picks** _ [http://wolfr.am/StaffPicks](http://wolfr.am/StaffPicks) and [Your Profile](http://community.wolfram.com/web/lujames) is now distinguished by a _ **Featured Contributor Badge** _ and is displayed on the [Featured Contributor Board](https://community.wolfram.com/people). Thank you!

---

<div class="post-metadata">

**Author:** ![sangdonlee](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/sangdonlee/32/41841_2.png) [@sangdonlee](https://community.wolfram.com/u/sangdonlee)\
**Post date:** [March 31, 2022, 2:39am UTC](https://community.wolfram.com/t/advancing-towards-modeling-2-0-with-neural-ode-via-wolfram-language/18979/3 "2022-03-31T02:39:05Z")

</div>

Hi,  
Thanks for the great work. I am following your nb and I have error messages at the following commands. I appreciate your help. I am guessing these are input data.

```
n = 10;
trainedPK = NetTrain[combinedPKNet,<|"PKPDData" -> Table[trainPKPDData, n],
   "Target" -> Table[inputPKObs, n],"Weight" -> Table[inputWeight, n] ,"InitialState" -> Table[initState, n],"Dose" -> Table[inputDosing, n]|>, LossFunction -> "Loss", ValidationSet -> None, MaxTrainingRounds -> 10, Method -> {"ADAM", "LearningRate" -> 10^-4, "GradientClipping" -> 1, "L2Regularization" -> 0.1} ] 

NetTrain::invindim3: Data provided to port "Dose" should be a non-empty list of n*1 matrices, but was inputDosing.

```

Sangdon Lee
