First Look at a Dataset

~6 mincode completion

Implement dataset_summary(X, y) returning the list [n_rows, n_features, n_classes].

Where this shows up

~6 min

7 employers weight this skill

2 health and bio companies, 2 quant funds, 2 enterprise vendors, 1 AI product company. Top match scores 50.

Python
import numpy as np


def dataset_summary(X, y):
    """
    The three numbers to check before training.

    Args:
        X: feature matrix, one row per example, one column per feature
        y: labels, one per row (numbers or strings)

    Returns:
        list [n_rows, n_features, n_classes]
    """
    # YOUR CODE HERE
    pass

Run your code to see results

⌘↵ runs against the visible tests

Loading docs…

The AI Mentor needs an account

It reads your code and the failing tests and nudges you toward the fix without handing you the answer. Free accounts get it on every problem you're working on today.