Rows are not supported by LabeledPoint, one way to put them in LabeledPoint is to split your data into multiple columns, given that your rows are categorical.
So, for example, if you have the following data set:
id,String,Intvalue 1,"a",123 2,"b",456 3,"c",789 4,"a",887
Then you can split your string data by making each row value in a new column
a -> 1,0,0 b -> 0,1,0 c -> 0,0,1
Since you have 3 different row values, you will convert the row column to 3 new columns and each value will be represented by a value in these new columns.
Now your dataset will be
id,String,Intvalue 1,1,0,0,123 2,0,1,0,456 3,0,0,1,789 4,1,0,0,887
Now you can convert to double values ββand use it in your LabeledPoint.
Another way to convert rows in LabeledPoint is to create a separate list of values ββfor each column and convert the row values ββto the index of that row in that list. This is not recommended, because if so, there will be in this intended dataset
a = 0 b = 1 c = 2
But in this case, the algorithms will be considered closer to b than to c, which is impossible to determine.