61613b27b92aef20d87c881cfc7451e2b942df00,python/mead/tf/exporters.py,TaggerTensorFlowExporter,_create_model,#TaggerTensorFlowExporter#Any#Any#,151

Before Change


        model = load_tagger_model(basename, sess=sess, **kwargs)
        softmax_output = tf.nn.softmax(model.probs)
        values, indices = tf.nn.top_k(softmax_output, 1)
        return model, model.best, values

    def _create_rpc_call(self, sess, basename):
        model, classes, values = self._create_model(sess, basename)

After Change


                list_of_labels[idval] = label
            class_tensor = tf.constant(list_of_labels)
            table = tf.contrib.lookup.index_to_string_table_from_tensor(class_tensor)
            classes = table.lookup(tf.to_int64(indices))
            return model, classes, values
        else:
            return model, indices, values
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: dpressel/mead-baseline
Commit Name: 61613b27b92aef20d87c881cfc7451e2b942df00
Time: 2019-03-07
Author: sagnik1987@gmail.com
File Name: python/mead/tf/exporters.py
Class Name: TaggerTensorFlowExporter
Method Name: _create_model


Project Name: CellProfiler/CellProfiler
Commit Name: 460d4c99f7ae1e8baf1fad8e3a067c93fdeb7fa2
Time: 2015-06-19
Author: leek@broadinstitute.org
File Name: BatchProfiler/bpformdata.py
Class Name:
Method Name: __get_defaults


Project Name: bokeh/bokeh
Commit Name: f1e668d3bf88c88560dd2b40c6db8ea9500f9dc6
Time: 2021-01-25
Author: mattpap@gmail.com
File Name: bokeh/model.py
Class Name: Model
Method Name: on_change