a32397a90fe9b7b65098a411cd892dbb509c0c27,bin/basenji_map.py,,main,#,30

Before Change



        // get layer representations
        grads = model.gradients(sess, batcher, options.target_indexes, options.layers)
        print("grads", grads.shape)

        // plot as heatmap
        plt.figure()
        sns.heatmap(grads[0,:,:])

After Change



    // drop sequence dimension
    for lii in range(len(layer_grads)):
        layer_grads[lii] = np.squeeze(layer_grads[lii], 0)

    //////////////////////////////////////////////////////////////////////////////////////////////////////////////
    // visualize
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: calico/basenji
Commit Name: a32397a90fe9b7b65098a411cd892dbb509c0c27
Time: 2017-01-17
Author: drk@calicolabs.com
File Name: bin/basenji_map.py
Class Name:
Method Name: main


Project Name: geomstats/geomstats
Commit Name: ab14bcf6073746800bb8d39150b08337e0ceac51
Time: 2020-04-12
Author: hadizaatiti@gmail.com
File Name: geomstats/learning/frechet_mean.py
Class Name:
Method Name: _ball_gradient_descent


Project Name: deepchem/deepchem
Commit Name: bb9258537df719fcb3a425c3c26647c5a9b31964
Time: 2016-02-08
Author: evan.n.feinberg@gmail.com
File Name: deepchem/featurizers/grid_featurizer.py
Class Name: GridFeaturizer
Method Name: _transform


Project Name: geomstats/geomstats
Commit Name: b0d0053b1f1738640fc99fba642c83af42d10b22
Time: 2018-02-02
Author: ninamio78@gmail.com
File Name: geomstats/invariant_metric.py
Class Name: InvariantMetric
Method Name: exp