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

Description Usage Arguments

View source: R/generator.R

Description

Creates a Python Class that internally iterates over the data.

Usage

1
2
3
4
5
6
7
8
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 Oct. 5, 2021, 1:06 a.m.