spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 颜发才(Yan Facai) <>
Subject How to convert String to Vector ?
Date Tue, 06 Sep 2016 09:56:46 GMT
I have a csv file like:
uid      mid      features       label
123    5231    [0, 1, 3, ...]    True

Both  "features" and "label" columns are used for GBTClassifier.

However, when I read the file:
Dataset<Row> samples =;
The type of"features") is String.

My question is:
How to map"features") to Vector or any appropriate type,
so I can use it to train like:
        GBTClassifier gbdt = new GBTClassifier()


View raw message