Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

ParamSpec serialization with less verbose output #150

@jzhang-gp

Description

@jzhang-gp

Description

Currently ParamSpec uses a form that follows the convention of sklearn (e.g., using __ to represent a path down to an underlying component). One example here:

{
  "param_distributions": [
    {
      "X_preparer__feature_preprocessor___parallel_process__group: 0__Scaler__transformer": "RobustScaler",
      "X_preparer__feature_preprocessor___parallel_process__group: 0__Scaler__transformer__quantile_range": [
        [25.0, 75.0],
        [55.0, 65.0]
      ]
    },
    {
      "X_preparer__feature_preprocessor___parallel_process__group: 0__Scaler__transformer": "MinMaxScaler",
      "X_preparer__feature_preprocessor___parallel_process__group: 0__Scaler__transformer__feature_range": [
        [0, 1]
      ]
    }
  ],
  "_class": "ParamSpec",
  "_method": "dict"
}

We may want to consider change __ to . form if this becomes too verbose for the user. If we decide we need to do this, we also need to deserialize the . to the __ form since sklearn only recognize the original form.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions