The previous code to to set an opional value for the temperature smoothing factor alpha redundantly set alpha to the default value if no --alpha was specified. The implementation was such that --alpha=0 actually set alpha to 0.9
This commit fixes that and is also tighter code, by simply setting
alpha = args.alpha
and of course the call to parser.add_argument() takes care of the default value.
The previous code to to set an opional value for the temperature smoothing factor alpha redundantly set alpha to the default value if no --alpha was specified. The implementation was such that --alpha=0 actually set alpha to 0.9
This commit fixes that and is also tighter code, by simply setting
alpha = args.alpha
and of course the call to parser.add_argument() takes care of the default value.