Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assignment AWS computer vision #2

Open
ragguem opened this issue Jun 19, 2020 · 1 comment
Open

Assignment AWS computer vision #2

ragguem opened this issue Jun 19, 2020 · 1 comment

Comments

@ragguem
Copy link

ragguem commented Jun 19, 2020

Question 1
First, let's get a particular dataset for this exercise. We will be using the CIFAR10 dataset which is built-in in MXNet in the gluon.data.vision.datasets library.

In the following cell you will complete the function definition so that it returns the CIFAR10 dataset from MXNet. The function should return both the training and the validation dataset. To make things more exciting, the function should examine both the training and validation dataset and return the index that corresponds to the first occurrence of each class in CIFAR10.

For example, the first class (label) in the CIFAR10 training dataset is 6, this corresponds to index 0 in the training dataset. For the remaining classes in the dataset, find the index in the training dataset where that class first occurs. Repeat the same process for the validation dataset. To summarize, the get_cifar_10_dataset function below should return 4 values. The CIFAR10 training dataset, the indices of the training dataset that correspond to the first occurrence of each class, The CIFAR10 validation dataset and the indices of the validation dataset that correspond to the first occurrence of each class.

def get_cifar10_dataset():
train_data = None
val_data = None

train_indices = {}
val_indices = {}

// code here

@phreakyphoenix
Copy link
Owner

I'm unable to understand the issue. Please paraphrase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants