0
$\begingroup$

Suppose that I have a 1D dataset with 6 features.

Can I apply a 2D convolutional neural net to this dataset?

$\endgroup$

2 Answers 2

1
$\begingroup$

This depends on the engine you use, but in general, yes, of course.

For example, in the TensorFlow height and width are separate variables, so nothing in your way to set one of them to 1 to have 1D data in it.

$\endgroup$
0
$\begingroup$

You can certainly reshape the data to make it fit a 2D network. You could set the width or height to 1 as suggested by DamirTenishev, but you could also set the features/channels to 1 and treat the features as a height, if you wanted to convolve that way (would be a bit strange).

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .