Vectors as labels #2047

Closed
RawanMG opened this Issue Mar 5, 2015 · 5 comments

Comments

Projects
None yet
5 participants

RawanMG commented Mar 5, 2015

Hi,
I'm using Caffe for regression and I need to set the labels to be an N-dim vector instead of using a discrete set of labels. Is there a way of doing this without modifying the source code?

I understand that HDF5 Layer can be used to input that N-dim label vector, but I'm not so sure about vectorizing the image in that case.

Contributor

bhack commented Mar 5, 2015

See also #1522 and cited indirection layer. But probably this code it is far from the HEAD.

Hi, RawanMG. Currently I'm working on multivariate regression problem and I found that caffe does not support multivariate labels. Moreover, all data layers are designed to store label as integer. The possible solution to your problem is to create your own data layer or store training data directly to blobs.

Contributor

ducha-aiki commented Mar 6, 2015

Use HDF5 input layer

Owner

shelhamer commented Mar 6, 2015

Duplicate of #1698 (vector / matrix, it's all the same).

No, most Caffe layers support matrix and vector data and losses such as
Softmax, Euclidean, and SigmoidCrossEntropy all allow for vector or matrix
ground truth. Caffe networks can have multiple data layers. See this code
example for preparing vector / matrix data:
#1698 or use HDF5 data layer as
suggested by Dmytro Mishkin.

An example of multivariate regression / multi-label classification will be
bundled soon to make this more clear.

On Fri, Mar 6, 2015 at 2:23 AM, AlexGruzdev notifications@github.com
wrote:

Hi, RawanMG. Currently I'm working on multivariate regression problem and
I found that caffe does not support multivariate labels. Moreover, all data
layers are designed to store label as integer. The possible solution to
your problem is to create your own data layer or store training data
directly to blobs.


Reply to this email directly or view it on GitHub
#2047 (comment).

Owner

shelhamer commented Mar 6, 2015

For modeling questions ask on the caffe-users group.

shelhamer closed this Mar 6, 2015

shelhamer added the duplicate label Mar 6, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment