Skip to content

Swaping the irace instances with python objects #29

@DE0CH

Description

@DE0CH

Since the number of things that can be converted into r objects and back is limited, I think it would be better if we just get the original python object from the other end using id.instance. As for the instances given to irace, I see three options:

  1. Replaced them with integers. The downside is that it will be more opaque what the instances are when someone is examining the log.
  2. Replace them with the json string for the object with json.dumps(obj, skipkeys=True, default=lambda x: '<not serializable>'), which would skip all the non-serializable objects.
  3. Convert it to equivalent r objects with best-effort. A hacky way to do it is to just convert it to json string and back. Or we can write our own recursive converter.

I would prefer the second option because it's the easiest to implement and human-readable in a log. For any missing data, we'll just ask the user to find the data somewhere else. For the third option, it seems like a lot of effort for not many benefits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions