88d3f856936b8620e999386476bcdd0f96ae846b,model/uisrnn.py,UISRNN,fit,#UISRNN#,151
Before Change
"train_cluster_id length.")
if type(train_sequence).__module__ != np.__name__:
raise TypeError("train_sequence type should be an numpy array.")
if type(train_cluster_id).__module__ != np.__n ame__:
raise TypeError("train_cluster_id type should be an numpy array.")
self.rnn_model.train()
After Change
// check dimension
if train_sequence.ndim != 2:
raise ValueError("train_sequence must be 2-dim array")
if train_cluster_id.ndim != 1:
raise ValueError("train_cluster_id must be 1-dim array")
// check length and size
train_total_length, observation_dim = train_sequence.shape
if observation_dim != self.observation_dim:
raise ValueError("train_sequence does not match the dimension specified "
"by args.observation_dim.")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: google/uis-rnn
Commit Name: 88d3f856936b8620e999386476bcdd0f96ae846b
Time: 2018-11-14
Author: quanw@google.com
File Name: model/uisrnn.py
Class Name: UISRNN
Method Name: fit
Project Name: kundajelab/deeplift
Commit Name: 8df19287c66ec48337010289475dce44d1dc7cdb
Time: 2017-02-20
Author: avanti.shrikumar@gmail.com
File Name: deeplift/blobs/core.py
Class Name: Dense
Method Name: _get_mxts_increments_for_inputs
Project Name: google/uis-rnn
Commit Name: 88d3f856936b8620e999386476bcdd0f96ae846b
Time: 2018-11-14
Author: quanw@google.com
File Name: model/uisrnn.py
Class Name: UISRNN
Method Name: predict