Closed mivanit closed 8 months ago
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
@mivanit, you included the comment in
serialize_minimal
: "ensure that we run the metadata collection filter, since we throw it out per maze". How do you run this filter? Does it just mean that we can get rid of thegeneration_metadata_collected
item in the dict? Then inload_minimal
we would just passgeneration_metadata_collected=None
to the constructor?
You should just need to run:
dataset_with_meta = dataset.filter_by.collect_generation_meta()
By default, clear_in_mazes: bool = True
-- all metadata will be stripped from individual mazes. You can see usage of this function in the "metadata" section of demo_dataset.ipynb
@mivanit Should be ready to merge. A couple of details I want to highlight for your review:
MazeDataset.collect_generation_meta
to make the function idempotent. All I added was a check if dataset.generation_metadata_collected is not None
. Is this sufficient?serialize_minimal
excluding the time to collect generation metadada. In light of the encouraging profiling results including metadata collection, I didn't implement this because it didn't seem to be very valuable. But if you'd still like to see that happen, I can do so.Awesome work! <3
Interesting timing results in profile_dataset_save_read.ipynb
! They look quite different than those in my last commit 3d9500c, and not only because you added way more detail and breadth. I'm guessing I missed some factors when doing the timing that were making the speedups with the new methods look bigger than they really were. I'll have to pick your brain on this at our next meeting.
@mivanit, you included the comment in
serialize_minimal
: "ensure that we run the metadata collection filter, since we throw it out per maze". How do you run this filter? Does it just mean that we can get rid of thegeneration_metadata_collected
item in the dict? Then inload_minimal
we would just passgeneration_metadata_collected=None
to the constructor?