As I mentioned in the first comment, worth moving the [number validator](https://github.com/elastic/kibana/blob/6ff66841a7ddb85d7c15e872b39b872dc9eee378/x-pack/plugins/ml/common/util/validators.ts#L110) to the recently created ml-utils package