| 32 | } |
| 33 | |
| 34 | static void CheckContainsOnly01s(const ITypedSequence<float>& typedSequence) { |
| 35 | typedSequence.ForEach( |
| 36 | [] (float value) { |
| 37 | CB_ENSURE_INTERNAL( |
| 38 | (value == 0.0f) || (value == 1.0f), |
| 39 | "targetType is Boolean but target values contain non-{0,1} data" |
| 40 | ); |
| 41 | } |
| 42 | ); |
| 43 | } |
| 44 | |
| 45 | static void CheckContainsOnlyIntegers(const ITypedSequence<float>& typedSequence) { |
| 46 | typedSequence.ForEach( |
no test coverage detected