Calmcode - gin: required settings

Calmcode - gin: Required Settings

1 2 3 4 5

You can configure gin to force a setting. This is useful when you'd like a setting to be required. The files below show you how to set this up.


simulate.n_samples = 200

import gin
import random

def simulate(n_samples=gin.REQUIRED)
    return sum(random.random() for i in range(n_samples))

if __name__ == "__main__":