question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

A WARNING from ax.storage.sqa_store.save when saving an Experiment with MapData

See original GitHub issue

I’m trying to save an experiment with a freshly ‘attached’ MapData object created by .fetch_trial_data_multi. The new data is supposed to replace the existing data, stored in the data_v2 table, because overwrite_existing_data is set to True on all the metrics involved. I’m getting the following warning:

[WARNING 07-18 13:34:38] ax.storage.sqa_store.save: Error encountered when copying db_ids from Experiment(ExperimentName) back to user-facing object Experiment(ExperimentName). This might cause issues if you re-save this experiment. Exception: Error encountered while traversing source ['_data_by_trial', 0, 1658169130577, '_map_key_infos', '[<ax.core.map_data.MapKeyInfo object at 0x7faf05656be0>, <ax.core.map_data.MapKeyInfo object at 0x7faf05656d30>]'] and target ['_data_by_trial', 0, 1658169130577, '_map_key_infos', '[<ax.core.map_data.MapKeyInfo object at 0x7faf062a5fd0>, <ax.core.map_data.MapKeyInfo object at 0x7faf059580d0>]']: TypeError encountered during sorting: '<' not supported between instances of 'method' and 'method'

Do I understand it right that the phrase “TypeError encountered during sorting: ‘<’ not supported between instances of ‘method’ and ‘method’” signifies that your software tried to compare incomparable and this is a bug? Or is this because I should have used the same map_key_infos list on every MapData that I’m attaching to the experiment? … on every MapData object from every MapMetric combined into a resulting MapData object for the trial? Please explain.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mpolson64commented, Aug 10, 2022

Alex, we’re having some trouble reproducing this error on our end. Could we ask you for a minimal reproduction of this error and a full stack trace?

1reaction
alxfedcommented, Aug 8, 2022

Yes. On any version (0.2.5.1 included) when I’m trying to save MapData in the SQA store the WARNING is raised.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Storage · Ax
Saving. To save an experiment to SQL, first initialize a session by passing a URL pointing to your database. Such a URL is...
Read more >
A warning message is returned when attempting to save a ...
This is known behavior. Sufficient storage is needed to save an ArcMap map document. Refer to Problem: Saving a map template returns the...
Read more >
How to properly save and load an experiment #76 - GitHub
I have a modified version of this https://botorch.org/tutorials/custom_botorch_model_in_ax where I have saved the experiment after each call ...
Read more >
Saving a map—Help | ArcGIS for Desktop
After you finish working on a map, you can save it and exit ArcMap. You save a map as a document and it...
Read more >
Data don't save on Pavlovia Data file - PsychoPy Discourse
The only thing we notice is that perhaps whenever the experiment is saved under the name associated with the Psychopy file then the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found