Skip to content

Commit 181477f

Browse files
committed
Fix variable name in DifferentialProgramming.md
In Podcast Player example of Intelligent Systems, struct `Observation` has var `podcastState`, while it has been referenced as `state` in the following cell. Changed it to `podcastState`.
1 parent 1f0ecc6 commit 181477f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/DifferentiableProgramming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ struct Observation {
343343
func meanError(for model: PodcastSpeedModel, _ observations: [Observation]) -> Float {
344344
var error: Float = 0
345345
for observation in observations {
346-
error += abs(model.prediction(for: observation.state) - observation.userSpeed)
346+
error += abs(model.prediction(for: observation.podcastState) - observation.userSpeed)
347347
}
348348
return error / Float(observations.count)
349349
}

0 commit comments

Comments
 (0)