make_generator_from_matrix: Make a DataGenerator from a data.frame or matrix

View source: R/generator.R

make_generator_from_matrixR Documentation

Make a DataGenerator from a data.frame or matrix

Description

Creates a Python Class that internally iterates over the data.

Usage

make_generator_from_matrix(
  x,
  y = NULL,
  generator = image_data_generator(),
  batch_size = 32L,
  shuffle = TRUE,
  seed = 1L
)

Arguments

x

matrix;

y

vector;

generator

generator as e.g. obtained from 'keras::image_data_generator'. Used for consistent train-test splits.

batch_size

integer

shuffle

logical; Should data be shuffled?

seed

integer; seed for shuffling data.


deepregression documentation built on Jan. 18, 2023, 1:11 a.m.