Skip to content

Commit 79f48ae

Browse files
committed
corrected Garriott name #70
1 parent d18bb08 commit 79f48ae

File tree

4 files changed

+26
-26
lines changed

4 files changed

+26
-26
lines changed

11_ultima_online/11_ultima_online.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ plot(sol)
109109
# ╔═╡ 4aff3714-284b-11eb-2047-814ca175e07b
110110
md"""#### Obtaining the model from the data
111111
112-
Back to the terrible case of Ultima Online. Suppose we had data on the population of predators and prey that were in harmony during the game at a given time. If we wanted to venture out and analyze what parameters Garriot and his team used to model their great ecosystem, would it be possible? Of course it is, we just need to add a little Bayesianism.
112+
Back to the terrible case of Ultima Online. Suppose we had data on the population of predators and prey that were in harmony during the game at a given time. If we wanted to venture out and analyze what parameters Garriott and his team used to model their great ecosystem, would it be possible? Of course it is, we just need to add a little Bayesianism.
113113
"""
114114

115115
# ╔═╡ e3da565c-2851-11eb-0fa7-a3cd80bb9d63
@@ -340,7 +340,7 @@ md"### References
340340
341341
- [SciML](https://sciml.ai/)
342342
- [Turing Bayesian Differential Equation](https://turing.ml/dev/tutorials/10-bayesiandiffeq/)
343-
- [Garriot telling the Story](https://www.youtube.com/watch?v=KFNxJVTJleE&ab_channel=ArsTechnica)"
343+
- [Garriott telling the Story](https://www.youtube.com/watch?v=KFNxJVTJleE&ab_channel=ArsTechnica)"
344344

345345
# ╔═╡ Cell order:
346346
# ╟─74cc60be-2821-11eb-3ad7-e581052437bd

12_ultima_continued/12_ultima_continued.jl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Let´s see how were the system equilibrium that he decided.
102102

103103
# ╔═╡ 247a6e7e-5417-11eb-3509-3d349198ec43
104104
begin
105-
#The Lotka-Volterra model Garriot define for Ultima Online
105+
#The Lotka-Volterra model Garriott define for Ultima Online
106106

107107
function lotka_volterra(du,u,p,t)
108108
prey, pred = u
@@ -132,15 +132,15 @@ md"""So the system seems in complete equilibrium.
132132
133133
And finally we arrive at the day when the madness begins.
134134
135-
Garriot wakes up early, doesn´t have any breakfast and goes to meet his team. Everything is ready. The countdown start: 3, 2, 1... And the game is online, running.
135+
Garriott wakes up early, doesn´t have any breakfast and goes to meet his team. Everything is ready. The countdown start: 3, 2, 1... And the game is online, running.
136136
137-
After the champagne, hugs and a little celebration Garriot returns to work and starts to analyze the metrics to see if everything is alright, and it does. He relax a little bit until something calls his attention: The curves of carnivorous and herbivorous animals are a little different than they should be. There are still **too few points** (only four hours from the release) to be alarmed, but he decides to do a deeper analysis. Luckily, a few days ago, he had read a paper on the Universal ODEs, so he thinks they can help him in this case.
137+
After the champagne, hugs and a little celebration Garriott returns to work and starts to analyze the metrics to see if everything is alright, and it does. He relax a little bit until something calls his attention: The curves of carnivorous and herbivorous animals are a little different than they should be. There are still **too few points** (only four hours from the release) to be alarmed, but he decides to do a deeper analysis. Luckily, a few days ago, he had read a paper on the Universal ODEs, so he thinks they can help him in this case.
138138
"""
139139

140140
# ╔═╡ 3bb32294-5423-11eb-1c75-27dc2f242255
141141
function lotka_volterra_players(du,u,p,t)
142142
#Lotka-Volterra function with players that hunt
143-
#Of course, Garriot doesn´t know about this new players part of the equation.
143+
#Of course, Garriott doesn´t know about this new players part of the equation.
144144
#He only saw some differences in the real curve vs the one he expected.
145145

146146
birth_prey, mort_prey, birth_pred, mort_pred, players_prey, players_pred = p
@@ -159,7 +159,7 @@ end;
159159

160160
# ╔═╡ 8de32f8c-5423-11eb-24c6-5be06370cb3f
161161
begin
162-
scatter(solution, alpha = 0.25, title="The data Garriot was seeing")
162+
scatter(solution, alpha = 0.25, title="The data Garriott was seeing")
163163
plot!(solution, alpha = 0.5)
164164
end
165165

@@ -171,7 +171,7 @@ end;
171171

172172
# ╔═╡ 5d5c55a0-5426-11eb-0e93-27e67f42dc8e
173173
begin
174-
scatter(expected_solution, alpha = 0.25, title="The data Garriot was expecting to see")
174+
scatter(expected_solution, alpha = 0.25, title="The data Garriott was expecting to see")
175175
plot!(expected_solution, alpha = 0.5)
176176
end
177177

@@ -204,7 +204,7 @@ end
204204

205205
# ╔═╡ a0b0497a-5436-11eb-0bad-f564c6033968
206206
md"""
207-
So lets stop for a minute to analize the code that Garriot just propose.
207+
So lets stop for a minute to analize the code that Garriott just propose.
208208
209209
In the first two lines, he just define the Neural Network that is going to learn the missing components of the two equations (one for the dynamics of the Pray and other for the dynamics of the Predator) and fill the variable p with its untrained parameters.
210210
@@ -214,7 +214,7 @@ $\frac{dPrey}{dt} = Prey*(1.3 - 0.9*Pred) + ANN_1(prey, pred)$
214214
215215
$\frac{dPred}{dt} = Pred*(0.8*Prey - 1.8) + ANN_2(prey, pred)$
216216
217-
So, as we already know, he is just adding a **function**. Which one? We already know that those are $Prey*players_{prey}$ and $Pred*players_{pred}$ (and $players_{pred}=players_{prey}=0.4$), but Garriot doesn´t, and is exactly what the Neural Network is going to learn for him.
217+
So, as we already know, he is just adding a **function**. Which one? We already know that those are $Prey*players_{prey}$ and $Pred*players_{pred}$ (and $players_{pred}=players_{prey}=0.4$), but Garriott doesn´t, and is exactly what the Neural Network is going to learn for him.
218218
219219
"""
220220

@@ -286,7 +286,7 @@ plot!(solution.t, X', title="The trained NN have fitted well")
286286
end
287287

288288
# ╔═╡ 58a1294c-544c-11eb-27ca-8512bc3d5461
289-
md"""Nice! Now that we have our Neural Network already learned the **Input-Output** relation in order to the entire system behave as the data Garriot were seeing in that Infamous morning, we need to transform that Input-Output behaviour into some function. We do this in order to *gain* interpretability of what may be happening and, in a scientific frame, learn the underling model. We do this by creating a [Function Space](https://en.wikipedia.org/wiki/Function_space) in order to the NN learn which function (or linear combination of those) is the best one to describe that Input-Output relation. The loss function to do so is designed in a way that the result will be the least complex one, that is, the answer will be the simplest function that behave like the NN.
289+
md"""Nice! Now that we have our Neural Network already learned the **Input-Output** relation in order to the entire system behave as the data Garriott were seeing in that Infamous morning, we need to transform that Input-Output behaviour into some function. We do this in order to *gain* interpretability of what may be happening and, in a scientific frame, learn the underling model. We do this by creating a [Function Space](https://en.wikipedia.org/wiki/Function_space) in order to the NN learn which function (or linear combination of those) is the best one to describe that Input-Output relation. The loss function to do so is designed in a way that the result will be the least complex one, that is, the answer will be the simplest function that behave like the NN.
290290
"""
291291

292292
# ╔═╡ b38b9410-544e-11eb-220b-5746f897b5f4
@@ -357,7 +357,7 @@ $\frac{dPrey}{dt} = Prey*(1.3 - 0.9*Pred) + p_1*Prey = Prey*(1.3 - 0.9*Pred + p1
357357
358358
$\frac{dPred}{dt} = Pred*(0.8*Prey - 1.8) + p_2*Pred = Pred*(0.8*Prey - 1.8 + p2)$
359359
360-
So, Remembering that we define the data Garriot was seeing as:
360+
So, Remembering that we define the data Garriott was seeing as:
361361
362362
$\frac{dPrey}{dt} = Prey*(1.3 - 0.9*Pred - players_{prey})$
363363
@@ -393,7 +393,7 @@ parameters(Ψf)
393393
md"So we recover the equations and its parameters with an outstanding acurracy. And that is even more incredible if we remember that we did this with a **minimum** of data."
394394

395395
# ╔═╡ e6ec4364-54eb-11eb-1bf6-83db426cd32f
396-
md"""After seeing that, Garriot took a big deep breath. He immediately understood what was going on. The players were mass killing the animals. He called his team and start planning the strategy to face this, not knowing that already was a lost cause...
396+
md"""After seeing that, Garriott took a big deep breath. He immediately understood what was going on. The players were mass killing the animals. He called his team and start planning the strategy to face this, not knowing that already was a lost cause...
397397
398398
### Summary
399399

0 commit comments

Comments
 (0)