Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vectors as labels #2047

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

Vectors as labels #2047

RawanMG opened this issue Mar 5, 2015 · 5 comments

Comments

@RawanMG
Copy link

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.

@bhack
Copy link
Contributor

bhack commented Mar 5, 2015

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

@grib0ed0v
Copy link

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.

@ducha-aiki
Copy link
Contributor

Use HDF5 input layer

@shelhamer
Copy link
Member

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).

@shelhamer
Copy link
Member

For modeling questions ask on the caffe-users group.

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

No branches or pull requests

5 participants