37acb137b1bc42319cf759b73270517c2147698a,ludwig/features/text_feature.py,TextOutputFeature,populate_defaults,#Any#,494
Before Change
if output_feature[LOSS]["type"] == "sampled_softmax_cross_entropy":
set_default_value(output_feature[LOSS], "sampler", "log_uniform")
set_default_value(output_feature[LOSS], "negative_samples", 25)
set_default_value(output_feature[LOSS], "distortion", 0.75)
else:
set_default_value(output_feature[LOSS], "sampler", None)
set_default_value(output_feature[LOSS], "negative_samples", 0)
set_default_value(output_feature[LOSS], "distortion", 1)
After Change
else:
set_default_values(
output_feature[LOSS],
{
"sampler": None,
"negative_samples": 0,
"distortion": 1
}
)
set_default_value(output_feature[LOSS], "unique", False)
set_default_value(output_feature, "decoder", "generator")
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 2
Instances
Project Name: uber/ludwig
Commit Name: 37acb137b1bc42319cf759b73270517c2147698a
Time: 2019-08-02
Author: smiryala@uber.com
File Name: ludwig/features/text_feature.py
Class Name: TextOutputFeature
Method Name: populate_defaults
Project Name: uber/ludwig
Commit Name: 37acb137b1bc42319cf759b73270517c2147698a
Time: 2019-08-02
Author: smiryala@uber.com
File Name: ludwig/features/text_feature.py
Class Name: TextInputFeature
Method Name: populate_defaults
Project Name: uber/ludwig
Commit Name: 37acb137b1bc42319cf759b73270517c2147698a
Time: 2019-08-02
Author: smiryala@uber.com
File Name: ludwig/features/numerical_feature.py
Class Name: NumericalOutputFeature
Method Name: populate_defaults
Project Name: uber/ludwig
Commit Name: 37acb137b1bc42319cf759b73270517c2147698a
Time: 2019-08-02
Author: smiryala@uber.com
File Name: ludwig/features/binary_feature.py
Class Name: BinaryOutputFeature
Method Name: populate_defaults