ec38de771d75b3636ed8b758c455b99baf0a0618,labs/05/fashion_masks.py,Dataset,__init__,#Dataset#,6

Before Change


        self._labels = data["labels"] if "labels" in data else None
        self._masks = data["masks"] if "masks" in data else None

        self._permutation = np.random.permutation(len(self._images))

    @property
    def images(self):
        return self._images

After Change


class Dataset:
    def __init__(self, filename, shuffle_batches = True):
        data = np.load(filename)
        self._images = data["images"]
        self._labels = data["labels"] if "labels" in data else None
        self._masks = data["masks"] if "masks" in data else None

        self._shuffle_batches = shuffle_batches
        self._permutation = np.random.permutation(len(self._images)) if self._shuffle_batches else range(len(self._images))

    @property
    def images(self):
        return self._images
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 9

Instances


Project Name: ufal/npfl114
Commit Name: ec38de771d75b3636ed8b758c455b99baf0a0618
Time: 2018-04-03
Author: houskape@gmail.com
File Name: labs/05/fashion_masks.py
Class Name: Dataset
Method Name: __init__


Project Name: ufal/npfl114
Commit Name: 50c647a035bdef06777b283378042a96d860222a
Time: 2018-04-03
Author: houskape@gmail.com
File Name: labs/06/3d_recognition.py
Class Name: Dataset
Method Name: epoch_finished


Project Name: ufal/npfl114
Commit Name: ec38de771d75b3636ed8b758c455b99baf0a0618
Time: 2018-04-03
Author: houskape@gmail.com
File Name: labs/05/fashion_masks.py
Class Name: Dataset
Method Name: epoch_finished


Project Name: ufal/npfl114
Commit Name: 50c647a035bdef06777b283378042a96d860222a
Time: 2018-04-03
Author: houskape@gmail.com
File Name: labs/06/3d_recognition.py
Class Name: Dataset
Method Name: __init__