mljar-supervised icon indicating copy to clipboard operation
mljar-supervised copied to clipboard

Slow Inference Time of Compete Model in MLJAR

Open HanChangHun opened this issue 3 years ago • 2 comments

Hello,

I've been using MLJAR for training my data and have noticed longer inference times with my trained models. It seems that the slowdown might be related to ensembles or stacked ensembles, but I'm not entirely sure. I'm looking for ways to improve the inference speed without significantly compromising accuracy.

Is there a recommended approach or any specific settings in MLJAR that I can tweak to achieve faster inference times while maintaining a reasonable level of accuracy?

Thank you!

HanChangHun avatar Sep 27 '23 05:09 HanChangHun

Hi @HanChangHun,

That's great question. The inference time for Compete mode can be very large because it usually consists of many models.

There is a Perform mode, that maximize accuracy and keep prediction time below the threshold.To set prediction time threshold please set max_single_prediction_time. You can read more in the docs https://supervised.mljar.com/api/

pplonski avatar Sep 27 '23 07:09 pplonski

@pplonski

Thank you for your prompt and helpful response!

HanChangHun avatar Sep 27 '23 07:09 HanChangHun