Keras predict number, please code

as graph shown , input xs and output ys
xs=2 FOR ys=100
xs=3 FOR ys=200
xs=4 FOR ys=300

NOW, I want a create new array, 7 numbers in xs FOR 1 number in ys, all number in range 1-49

for example
xs=[1,3,11,15,16,28,32] FOR ys=29
xs=[2,6,33,42,13,22,39] FOR ys=8
xs=[35,26,6,40,48,17,10] FOR ys=35



//300 set of data for taining

and machine should predict 24 numbers as ys in range 1-49 according to xs (7 numbers)

for example
we have xs=1,2,5,16,22,32,40,ys=5
and model predict ys=3,5,7,8,9,10,11,12,13,18,20,22,25,26,32,30,33,35,36,37,40,41,42,43(24 numbers,and 5 is predicted,success, if no 5 in 24 numbers, then fail )

meanwhile , calculate the success rate of prediction

PLEASE do a little help to code for this …thanks

Since you are using Keras and Tensorflow I would recommend asking in their discussion board since you will find the experts there. :slight_smile:

OK,thanks, i’m new …