chovanecm / sacredboard

Dashboard for sacred. Monitor and access your past machine learning experiments.
MIT License
184 stars 39 forks source link

Displaying datetime objects #109

Open mattdornfeld opened 5 years ago

mattdornfeld commented 5 years ago

I have several Python datetime objects in my configs being sent to Sacred. In Sacredboard these are displayed as

start_dt | {...}
-- | --
__reduce__[{...}, [B+IMDgUILwnL0A==]]py/objectdatetime.datetime | __reduce__ | [{...}, [B+IMDgUILwnL0A==]] | py/object | datetime.datetime
__reduce__ | [{...}, [B+IMDgUILwnL0A==]]
py/object | datetime.datetime

Does anyone know if there's a way to get these displayed as strings?

chovanecm commented 5 years ago

This is odd. If you use MongoDB as a backend, the data adapter between Sacred and MongoDB should convert datetime to a MongoDB format, meaning there should be no "python datetime" object at all. Can you use e.g. https://robomongo.org/ to locate the experiment in your database directly (bypassing Sacredboard) and check whether you notice anything suspicious?