Skip to content

Commit fae995a

Browse files
authored
Merge pull request #31516 from Kshitij09/fix-doc-var-name
Fix variable name in `DifferentialProgramming.md`
2 parents 7542d19 + 181477f commit fae995a

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)