salesforce/TransmogrifAI

Allow adding/getting metadata on the model level

开放

#148 创建于 2018年10月4日

 (8 条评论) (0 个反应) (0 位负责人)Scala (399 个派生)batch import
enhancementgood first issue

仓库指标

星标
 (2,274 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Problem We would like to be able to store some types of metadata of the level of the model, e.g instance holdout splits. Currently there is no easy way to store metadata with the trained model, except if not through OpParams, stage metadata or manually if a separate file.

Solution We would like to add two methods to OpWorkflowModel class to allow saving/loading metadata with the model:

class OpWorkflowModel { 
   def addMetadata[T <: Product](name: String, value: T): this.type
   def getMetadata[T <: Product](name: String): Try[T]
}

Alternatives Store metadata in custom map in OpParams or in a separate file.

Additional context N/A

贡献者指南