How do I make Predict function accept a sequence of data inputs as a feature while training? I am unable to use this : trainingdata = { 5 -> {{1,4},{2,3}}, 6 -> {{2,4},{3,3}} , .... } as training data for Predict inbuilt function.
This is the code I tried.
trainingset = {4 -> {{1, 3}, {2, 2}},
5 -> {{2, 3}, {1, 4}}, 6 -> {{3, 3}, {1, 5}},
7 -> {{4, 3}, {2, 5}}};
p = Predict[trainingset,
Method ->"LinearRegression"]
ERROR MSG : Predict:: Incompatible variable type (Numerical) and variable value ({{1,3},{2,2}}).