ac1f07e722b1117642774b04d96e7174751e325c,demo.py,,diarization_experiment,#Any#,27

Before Change


  // training
  if args.pretrain == None:
    model = fit(args, train_sequence, train_cluster_id)
    torch.save(model.rnn_model.state_dict(), "rnn_model {}".format(args.dataset))
  else: // use pretrained model
    model = init_model(args, train_sequence, train_cluster_id)
    model.rnn_model.load_state_dict(torch.load("rnn_model {}".format(args.dataset)))

After Change


  test_sequences = test_data["test_sequences"]
  test_cluster_ids = test_data["test_cluster_ids"]

  _ , observation_dim = train_sequence.shape
  input_dim = observation_dim

  model = UISRNN(args, input_dim, observation_dim, .5)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: google/uis-rnn
Commit Name: ac1f07e722b1117642774b04d96e7174751e325c
Time: 2018-10-18
Author: aonan@aonan.nyc.corp.google.com
File Name: demo.py
Class Name:
Method Name: diarization_experiment


Project Name: Microsoft/nni
Commit Name: 73b2221b5eb4fd21802e6bf41e21d5df8ef9bf2c
Time: 2019-11-22
Author: v-yugzh@microsoft.com
File Name: src/sdk/pynni/nni/nas/pytorch/darts/trainer.py
Class Name: DartsTrainer
Method Name: train_one_epoch


Project Name: stanfordnlp/stanza
Commit Name: b44d5bf6c87e3b857ca56e7a17c084d486da8d07
Time: 2018-10-15
Author: zyh@stanford.edu
File Name: models/lemma/trainer.py
Class Name: Trainer
Method Name: save