Hi,
yes it is a good idea. One implementaiton with a single valued label and a second implementation with a label vector.

Best Regards,
Hilmi

From: *Chiwan Park* <chiwanp...@apache.org <mailto:chiwanp...@apache.org>>
Date: Tue, Jan 5, 2016 at 12:17 PM
Subject: Re: LabeledVector with label vector
To: dev@flink.apache.org <mailto:dev@flink.apache.org>


Hi Hilmi,

Thanks for suggestion about type of labeled vector. Basically, I agree that your suggestion is reasonable. But, I would like to generialize `LabeledVector` like following example:

```
case class LabeledVector[T <: Serializable](label: T, vector: Vector) extends Serializable {
  // some implementations for LabeledVector
}
```

How about this implementation? If there are any other opinions, please send a email to mailing list.

> On Jan 5, 2016, at 7:36 PM, Hilmi Yildirim <hilmi.yildi...@dfki.de <mailto:hilmi.yildi...@dfki.de>> wrote:
>
> Hi,
> in the ML-Pipeline of Flink we have the "LabeledVector" class. It consists of a vector and a label as a double value. Unfortunately, it is not applicable for sequence learning where the label is also a vector. For example, in NLP we have a vector of words and the label is a vector of the corresponding labels.
>
> The optimize function of the "Solver" class has a DateSet[LabeledVector] as input and, therefore, it is not applicable for sequence learning. I think the LabeledVector should be adapted that the label is a vector instead of a single Double value. What do you think?
>
> Best Regards,
>
> --
> ==================================================================
> Hilmi Yildirim, M.Sc.
> Researcher
>
> DFKI GmbH
> Intelligente Analytik für Massendaten
> DFKI Projektbüro Berlin
> Alt-Moabit 91c
> D-10559 Berlin
> Phone: +49 30 23895 1814 <tel:%2B49%2030%2023895%201814>
>
> E-Mail: hilmi.yildi...@dfki.de <mailto:hilmi.yildi...@dfki.de>
>
> -------------------------------------------------------------
> Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
> Firmensitz: Trippstadter Strasse 122, D-67663 Kaiserslautern
>
> Geschaeftsfuehrung:
> Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender)
> Dr. Walter Olthoff
>
> Vorsitzender des Aufsichtsrats:
> Prof. Dr. h.c. Hans A. Aukes
>
> Amtsgericht Kaiserslautern, HRB 2313
> -------------------------------------------------------------
>

Regards,
Chiwan Park

Reply via email to