24c14ca346506f31d789db35bb1b0173b7d97ce6,magenta/music/encoder_decoder_test.py,ConditionalEventSequenceEncoderDecoderTest,testEncode,#ConditionalEventSequenceEncoderDecoderTest#,319
Before Change
[1.0, 0.0, 1.0, 0.0, 0.0],
[1.0, 0.0, 0.0, 0.0, 1.0]]
expected_labels = [1, 0, 2, 0]
expected_sequence_example = encoder_decoder.make_sequence_example(
expected_inputs, expected_labels)
self.assertEqual(sequence_example, expected_sequence_example)
def testGetInputsBatch(self):
control_event_sequences = [[1, 1, 1, 0, 0], [1, 1, 1, 0, 0]]
After Change
[1.0, 0.0, 1.0, 0.0, 0.0],
[1.0, 0.0, 0.0, 0.0, 1.0]]
expected_labels = [1, 0, 2, 0]
self.assertEqual(inputs, expected_inputs)
self.assertEqual(labels, expected_labels)
def testGetInputsBatch(self):
control_event_sequences = [[1, 1, 1, 0, 0], [1, 1, 1, 0, 0]]
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: tensorflow/magenta
Commit Name: 24c14ca346506f31d789db35bb1b0173b7d97ce6
Time: 2020-06-09
Author: adarob@google.com
File Name: magenta/music/encoder_decoder_test.py
Class Name: ConditionalEventSequenceEncoderDecoderTest
Method Name: testEncode
Project Name: tensorflow/magenta
Commit Name: 24c14ca346506f31d789db35bb1b0173b7d97ce6
Time: 2020-06-09
Author: adarob@google.com
File Name: magenta/music/encoder_decoder_test.py
Class Name: OneHotIndexEventSequenceEncoderDecoderTest
Method Name: testEncode
Project Name: tensorflow/magenta
Commit Name: 24c14ca346506f31d789db35bb1b0173b7d97ce6
Time: 2020-06-09
Author: adarob@google.com
File Name: magenta/music/encoder_decoder_test.py
Class Name: OneHotEventSequenceEncoderDecoderTest
Method Name: testEncode
Project Name: tensorflow/magenta
Commit Name: 24c14ca346506f31d789db35bb1b0173b7d97ce6
Time: 2020-06-09
Author: adarob@google.com
File Name: magenta/music/melody_encoder_decoder_test.py
Class Name: MelodyOneHotEventSequenceEncoderDecoderTest
Method Name: testEncode