[英]Training multiple model in AWS Sagemaker
Can I train multiple model in AWS Sagemaker by evaluating the models is train.py script and also how to get back multiple metrics from multiple models?我可以通过评估模型在 AWS Sagemaker 中训练多个模型是 train.py 脚本以及如何从多个模型中取回多个指标吗?
Any links, docs or videos would be useful.任何链接、文档或视频都会很有用。
Yes, what you write in a sagemaker training script (assuming you use something that lets you pass custom code like your own container or a framework container) is flexible, and does not need to be just one model or even ML.是的,您在 sagemaker 培训脚本中编写的内容(假设您使用的东西可以让您传递自定义代码,例如您自己的容器或框架容器)是灵活的,并且不需要只是一个模型甚至 ML。 You can definitely write multiple model trainings in a single container, and pull all related metrics using SageMaker metric capture via regex, see an example regex here with the Sklearn random forest .
您绝对可以在单个容器中编写多个模型训练,并通过正则表达式使用 SageMaker 指标捕获提取所有相关指标,请参阅此处使用Sklearn 随机森林的示例正则表达式。 That being said, it is often a better idea to separate things and have one model per SageMaker job , because of the following reasons among other:
话虽如此,由于以下原因,将事物分开并为每个 SageMaker 作业使用一个模型通常是一个更好的主意:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.