2023-06-01ãã1ã¶æéã®è¨äºä¸è¦§
ã½ããã¦ã§ã¢ç£æ¥ã¯ãä¸å ·åæãã§åºè·ãå¾ã«ä¿®æ£ãã許ãããæåãããã ãªãããã許容å¯è½ã«ãªã£ã¦ããã®ãï¼ ãå¾ã«ä¿®æ£ããç¾å®çã«å¯è½ãã©ãããå¿ è¦æ¡ä»¶ã ä¾ãã°è»ã ã£ãããããã¯ãªã³ã¼ã«ã«å¤ããã ä¿®æ£è¨è¨ãå®äºããå¾ãè»ã®ååã¨æ¹ä¿®ã¨åâ¦
Pythonã¯è¨èªä»æ§ã¨ãã¦ããã©ã«ãå¼æ°ãåå©ç¨ããããã㯠mutable ãªãã¸ã§ã¯ãã¨ã®çµã¿åããã§å®¹æã«ãã°ãå¼ãèµ·ããã è¨èªä»æ§ é¢æ°å®ç¾©æã«ããã©ã«ãå¼æ°ãè©ä¾¡ããã¦ç¢ºå®ãï¼=è©ä¾¡ã¯ä¸åº¦ããï¼ããããé¢æ°å¼ã³åºãæã«æ¸¡ãããã The default vaâ¦
OmegaConf ã¯æ§é åã³ã³ãã£ã°ã®å ¥ãåï¼Nesting structured configsï¼ããµãã¼ããã¦ããï¼docs - Nesting structured configsï¼ã ãã®éãdefault_factory ã®å©ç¨ãæ¨å¥¨ããã¦ããã @dataclass class Group: name: str = MISSING admin: User = field(deâ¦
æéãããã«ä½ãåºããç©é â çç£æ§ æéãããã«ç£ãã 価å¤ã®é ï¼ çç£æ§ ã´ããé«éã§ä½ãç¶ãã¦ãçç£æ§ãç¡ãã æ©æã®ç¨¼åçã¯çç£æ§ã¨æ£æ¯ä¾ããªãã