7fd49e352027b5e24d0f8ede917877e5d5ef945f,dataset/models/tf/vgg.py,VGG,_build,#VGG#,45
Before Change
logits = tf.identity(net, name="predictions")
pred_proba = tf.nn.softmax(logits, name="predicted_proba")
pred_labels = tf.argmax(pred_proba, axis=-1, name="predicted_labels")
true_labels = tf.argmax(inputs["labels"], axis=-1, name="true_labels")
equality = tf.equal(pred_labels, true_labels)
equality = tf.cast(equality, dtype=tf.float32)
tf.reduce_mean(equality, name="accuracy")
After Change
with tf.variable_scope("VGG"):
x = self.input_block(dim, inputs["images"], **{**kwargs, **input_block_config})
x = self.body(dim, x, arch, **{**kwargs, **body_config})
output = self.head(dim, x, **{**kwargs, **head_config})
logits = tf.identity(output, name="predictions")
tf.nn.softmax(logits, name="predicted_proba")
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 2
Instances
Project Name: analysiscenter/batchflow
Commit Name: 7fd49e352027b5e24d0f8ede917877e5d5ef945f
Time: 2017-11-10
Author: rhudor@gmail.com
File Name: dataset/models/tf/vgg.py
Class Name: VGG
Method Name: _build
Project Name: okfn-brasil/serenata-de-amor
Commit Name: f513ca886a2f5a0d55caf60d0cecb05faf310e4d
Time: 2017-02-22
Author: jessicatemporal@gmail.com
File Name: develop/2017-02-20-anaschwendler-expenses-in-closed-companies.py
Class Name:
Method Name:
Project Name: CNuge/kaggle-code
Commit Name: b7990885d8b26b9404fd9ce952b0b2f005019594
Time: 2018-01-12
Author: nugentc@uoguelph.ca
File Name: california_housing/feature_engineering.py
Class Name:
Method Name:
Project Name: cesium-ml/cesium
Commit Name: 2ab1119596b420cc696a783271d617562ccf7e28
Time: 2017-03-29
Author: brettnaul@gmail.com
File Name: examples/plot_EEG_Example.py
Class Name:
Method Name:
Project Name: dirty-cat/dirty_cat
Commit Name: 39813c572463211d05f35a0dcac56ba7bd07c725
Time: 2018-06-07
Author: pierreglaser@msn.com
File Name: examples/plot_investigating_dirty_categories.py
Class Name:
Method Name: