Skip to content

Commit dad9fa0

Browse files
authored
Fixes math rendering in BSOC example
1 parent 3ae58a0 commit dad9fa0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

examples/monotonic/BSOCEstimateUsingMonotonicNetworks/BatteryStateOfChargeEstimationUsingMonotonicNeuralNetworks.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,13 @@ The two networks trained on the differences have significantly lower RMSEs than
357357

358358
Monotonicity is guaranteed for the constrained network. You can sample the training or test set to get an idea of violations of monotonicity for the unconstrained networks. A convenient way to assess violation to monotonicity is to define the `monotonicityScore` to measure the degree of monotonicity of a signal. This is the ratio of intervals between two adjacent signals.
359359

360-
$$ \textrm{monotonicityScore}=\frac{1}{N-1}\sum_{n=1}^{N-1} \left\lbrace \begin{array}{ll} y\left(n+1\right)\ge y\left(n\right) & 1\newline y\left(n+1\right)<y\left(n\right) & 0 \end{array}\right. $$
360+
$$
361+
\textrm{monotonicityScore} = \frac{1}{N-1} \sum_{n=1}^{N-1}
362+
\begin{cases}
363+
1 & \text{if } y(n+1) \geq y(n) \\
364+
0 & \text{if } y(n+1) < y(n)
365+
\end{cases}
366+
$$
361367

362368
A fully monotonic increasing signal has a `monotonicityScore` of 1 and a fully monotonic decreasing signal has a `monotonicityScore` of 0.
363369

0 commit comments

Comments
 (0)