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)

After Change


        )

        if output_feature[LOSS]["type"] == "sampled_softmax_cross_entropy":
            set_default_values(
                output_feature[LOSS],
                {
                    "sampler": "log_uniform",
                    "negative_samples": 25,
                    "distortion": 0.75
                }
            )
        else:
            set_default_values(
                output_feature[LOSS],
                {
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: 0ac9afdac21526743a4c06bcc8473a898497fce7
Time: 2020-06-30
Author: w4nderlust@gmail.com
File Name: ludwig/features/timeseries_feature.py
Class Name: TimeseriesInputFeature
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