Add `Dataset` and `Writer` modules for the `lmdb` format

オープン
#820 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

@astrojarred がすでに取り組んでいます。

2025年10月6日 から。

評価

この issue はまだ評価されていません。

説明

feature

Is your feature request related to a problem? Please describe.
lmdb is a memory-mapped database format that provides random access to individual training events faster than SQLite.

The main benefits of lmdb: Faster query speeds, lower storage footprint, serialized data allows for an elegant implementation of storing arbitrary DataRepresentations (see #781).

Image Image

For larger datasets, and particularly large events, SQLite can become prohibitive as a dataset format.

Describe the solution you'd like

  • A LMDBWriter that outputs events in lmdb format. Should accept a serialization method (msgpack, for example). Should optionally accept a DataRepresentation - if given, representations are pre-computed and serialized using dill or similar pickle methods (see #781). A field in the database should contain relevant information regarding the serializer, such that the file is a self-contained object that users can read without prior knowledge of the serializer used.
  • A LMDBDataset that is compatible with the lmdb database format. Should automatically check for which serializer was used, so the user doesn't have to guess. Should be able to retrieve pre-computed data representations.
主要言語
Python
スター
117
フォーク
115
平均マージ
2日 21時間
マージ済み PR(30日)
1

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

graphnet-team/graphnet のほかの issue

graphnet-team/graphnet の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。