You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Elm PR #192 add elm.mldataset.serialize_mixin for serialization will dill for models that have been initialized and/or fit. We also want to provide a means of plain text (YAML for now) serialization of estimators (and Pipelines) so that we have:
Some part of Elm that are usable to non-Python users
An easier time passing json text model specifications between UI / backend in later UI related milestones
A mapping to param data structures. param allows input validation and structuring of inputs for UIs in Bokeh and other tools, as needed in later UI related work of Phase I. Feel free to separate this param spec work to separate issues/PRs as the work gets done.
TODO:
Implement a to_spec and from_spec method for each estimator, where to/from spec means to return/read a text specification of an estimator, yaml format by default
For an estimator, a spec consists of a dict with three keys:
func: Callable such as elm.pipeline.steps.linear_model.LinearRegression
args: List - positional arguments to func
kwargs: Keyword arguments to func, such as fit_intercept as in the example - kwargs that can go to set_params or __init__ of func
Implement this generally for classes that are BaseEstimator-like in inheritance and BaseComposition-like separately, i.e. most estimators/transformers have a common base callable for how they do to/from spec and special cases like EaSearchCV, Pipeline, and others are handled separately.
The text was updated successfully, but these errors were encountered:
Elm PR #192 add
elm.mldataset.serialize_mixin
for serialization willdill
for models that have been initialized and/or fit. We also want to provide a means of plain text (YAML for now) serialization of estimators (and Pipelines) so that we have:param
data structures.param
allows input validation and structuring of inputs for UIs in Bokeh and other tools, as needed in later UI related work of Phase I. Feel free to separate thisparam
spec work to separate issues/PRs as the work gets done.TODO:
to_spec
andfrom_spec
method for each estimator, where to/from spec means to return/read a text specification of an estimator, yaml format by defaultfunc
: Callable such aselm.pipeline.steps.linear_model.LinearRegression
args
: List - positional arguments tofunc
kwargs
: Keyword arguments tofunc
, such asfit_intercept
as in the example - kwargs that can go toset_params
or__init__
offunc
BaseEstimator
-like in inheritance andBaseComposition
-like separately, i.e. most estimators/transformers have a common base callable for how they do to/from spec and special cases likeEaSearchCV
,Pipeline
, and others are handled separately.The text was updated successfully, but these errors were encountered: