Skip to content

_id_ token not working with dictionary #6

@thomasloux

Description

@thomasloux
_id_: data_module_config
data_path: /data/pablo/260106_mag_matproj_log_scaled.h5
val_frac: 0.1
test_frac: 0.8
memory_scaler: n_atoms
max_bin_length: 10000.0
n_workers: 10
prefetch_factor: 4
seed_split: 123456789
seed_shuffle: 1122334455
dataset_class: 
  _target_: matune.dataset.GraphStructH5Dataset
  # You can also use InMemoryDataset for small datasets that fit in RAM
  # construct once and for all the graph structures in memory
  # But not faster in my tests
  # _target_: matune.dataset.InMemoryDataset
  _call_: false

I want to read this dictionary and use it to refer in another yaml. But in this case the id token is not registered in ParserContext().registry. It work though by adding target: dict. But I think it's not an ideal solution.

_target_: dict
_id_: data_module_config
data_path: /data/pablo/260106_mag_matproj_log_scaled.h5
...

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions