Evaluate models

Hi, trying to figure out ml in opensearch… is it possible to evaluate models? I mean, after training phase, can you investigate how well the model fit to non viewed data? is there an API for this?