...Resolution
=> ..Answer
This commit is contained in:
parent
30ab62e9b8
commit
3c3c88fb7b
|
@ -260,20 +260,20 @@ let dispatchToGenericOutput = (
|
||||||
| ("klDivergence", [EvDistribution(a), EvDistribution(b)]) =>
|
| ("klDivergence", [EvDistribution(a), EvDistribution(b)]) =>
|
||||||
Some(DistributionOperation.run(FromDist(ToScore(KLDivergence(b)), a), ~env))
|
Some(DistributionOperation.run(FromDist(ToScore(KLDivergence(b)), a), ~env))
|
||||||
| (
|
| (
|
||||||
"logScoreWithPointResolution",
|
"logScoreWithPointAnswer",
|
||||||
[EvDistribution(prediction), EvNumber(answer), EvDistribution(prior)],
|
[EvDistribution(prediction), EvNumber(answer), EvDistribution(prior)],
|
||||||
)
|
)
|
||||||
| (
|
| (
|
||||||
"logScoreWithPointResolution",
|
"logScoreWithPointAnswer",
|
||||||
[EvDistribution(prediction), EvDistribution(Symbolic(#Float(answer))), EvDistribution(prior)],
|
[EvDistribution(prediction), EvDistribution(Symbolic(#Float(answer))), EvDistribution(prior)],
|
||||||
) =>
|
) =>
|
||||||
DistributionOperation.run(
|
DistributionOperation.run(
|
||||||
FromDist(ToScore(LogScore(answer, prior->Some)), prediction),
|
FromDist(ToScore(LogScore(answer, prior->Some)), prediction),
|
||||||
~env,
|
~env,
|
||||||
)->Some
|
)->Some
|
||||||
| ("logScoreWithPointResolution", [EvDistribution(prediction), EvNumber(answer)])
|
| ("logScoreWithPointAnswer", [EvDistribution(prediction), EvNumber(answer)])
|
||||||
| (
|
| (
|
||||||
"logScoreWithPointResolution",
|
"logScoreWithPointAnswer",
|
||||||
[EvDistribution(prediction), EvDistribution(Symbolic(#Float(answer)))],
|
[EvDistribution(prediction), EvDistribution(Symbolic(#Float(answer)))],
|
||||||
) =>
|
) =>
|
||||||
DistributionOperation.run(FromDist(ToScore(LogScore(answer, None)), prediction), ~env)->Some
|
DistributionOperation.run(FromDist(ToScore(LogScore(answer, None)), prediction), ~env)->Some
|
||||||
|
|
Loading…
Reference in New Issue
Block a user