invenia / Models.jl

An interface package that defines the methods and types for working with models.
MIT License
3 stars 0 forks source link

Add submodels() #3

Closed oxinabox closed 4 years ago

oxinabox commented 4 years ago

This is a feature in our main internal models package,
for a multistage/composed model, submodels(model) returns the trained model for each of the components. If it is a concrete model, then it returns a empty tuple.

Similar for tempates. submodels(template) returns a template for each component, or an empty tuple if template is not for a compositional model

submodels should be defined here and overloaded in packages implementing models.

nickrobinson251 commented 4 years ago

closed via #10