88d3f856936b8620e999386476bcdd0f96ae846b,model/uisrnn.py,UISRNN,fit,#UISRNN#,151

Before Change


    if train_total_length != len(train_cluster_id):
      raise ValueError("train_sequence length is not equal to "
                       "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.__name__:
      raise TypeError("train_cluster_id type should be an numpy array.")

After Change


      raise TypeError("train_cluster_id type be an numpy array.")
    // 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
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

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: masa-su/pixyz
Commit Name: 1a895914343d520c260f53eb32ec91d4e75c9fe3
Time: 2020-01-19
Author: kaneko@weblab.t.u-tokyo.ac.jp
File Name: pixyz/distributions/distributions.py
Class Name: ReplaceVarDistribution
Method Name: __init__


Project Name: masa-su/pixyz
Commit Name: 1a895914343d520c260f53eb32ec91d4e75c9fe3
Time: 2020-01-19
Author: kaneko@weblab.t.u-tokyo.ac.jp
File Name: pixyz/distributions/distributions.py
Class Name: MarginalizeVarDistribution
Method Name: __init__


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