AutoTrain - Part 1: Ingredients

Context AwarenessURL copied

  1. Unlike standard ini, we are able to resolve the variables using a parser. This lets us have several benefits -
  • Multiple components in the experiment can be dynamically manipulated without worrying about bookkeeping.
  • As you can see in above example, changing the project name will change where the data is downloaded on the disk.
  • User is free to hardcode their own location or reuse variables present in the config file itself.
  1. All the variables can be called by using object.header.section.sub_section.variable notation.
  • This is applicable to any depth.
  • You get tab completion for free.

Every project will have a different logic to download data. It is meaningful to wrap it up as part of config file too. But ini files can only hold primitive objects like ints, strings or lists. Creating a function registry is a natural way to overcome this limitation.