How to use sample subset of dataset with ImageClassifierData?

The code here in lesson2-image_models.ipynb seems to use the whole dataset by default.

def get_data(sz):
    tfms = tfms_from_model(f_model, sz, aug_tfms=transforms_top_down, max_zoom=1.05)
    return ImageClassifierData.from_csv('', trainc_dir, label_csv, tfms=tfms, val_idxs=val_idxs, test_name=testc_dir)

data = get_data(sz)

learn = ConvLearner.pretrained(f_model, data, metrics=metrics)

How to use only a subset of data? I don’t seem to find anything relating that.

Look my example:

data = (ImageDataBunch.from_folder(path=path, train=path_images,valid_pct=0.2)

I use .use_partial_data(0.1) to use only 10% of my datasets:
See also: