107af7f70e062ab29cb92d9ed5494047bd05678f,tests/data/label_source/test_semantic_segmentation_label_source.py,TestSemanticSegmentationLabelSource,test_get_labels_rgb,#TestSemanticSegmentationLabelSource#,89

Before Change


            np.testing.assert_array_equal(labels, expected_labels)

            window = Box.make_square(7, 7, 3)
            labels = label_source.get_labels(window=window).to_array()
            expected_labels = np.ones((3, 3))
            np.testing.assert_array_equal(labels, expected_labels)

After Change


            source=raster_source, rgb_class_map=rgb_class_map)
        with label_source.activate():
            window = Box.make_square(7, 7, 3)
            labels = label_source.get_labels(window=window)
            label_arr = labels.get_label_arr(window)
            expected_label_arr = np.ones((3, 3))
            np.testing.assert_array_equal(label_arr, expected_label_arr)

    def test_build_missing(self):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: azavea/raster-vision
Commit Name: 107af7f70e062ab29cb92d9ed5494047bd05678f
Time: 2019-01-14
Author: lewfish@gmail.com
File Name: tests/data/label_source/test_semantic_segmentation_label_source.py
Class Name: TestSemanticSegmentationLabelSource
Method Name: test_get_labels_rgb


Project Name: azavea/raster-vision
Commit Name: 107af7f70e062ab29cb92d9ed5494047bd05678f
Time: 2019-01-14
Author: lewfish@gmail.com
File Name: tests/data/label_source/test_semantic_segmentation_label_source.py
Class Name: TestSemanticSegmentationLabelSource
Method Name: test_get_labels


Project Name: azavea/raster-vision
Commit Name: f753bdc5062e335acd054d144d969d9a8a9f024d
Time: 2018-07-18
Author: lewfish@gmail.com
File Name: src/rastervision/ml_tasks/object_detection.py
Class Name: ObjectDetection
Method Name: get_train_labels


Project Name: snorkel-team/snorkel
Commit Name: 90fa42738c0c76a13cfe7d9dfb439662b4e961d6
Time: 2016-08-22
Author: stephenhbach@gmail.com
File Name: snorkel/viewer.py
Class Name: Viewer
Method Name: save_labels