'From an input vector of parabolic shape values, predict a scalar value using machine learning

I was wondering if you could train a neural network model where from a vector a parabolic shape values you could predict a scalar value.

For example : let's say the input vector is [5, 10, 15, 20, 22, 25, 22, 15, 10, 5] then the ouput should be 23. And to train it I just give the model lots of input vector like the one in the example and the values that should be returned for each one of these vectors. I looked it up on the internet but didn't find anything that was matching my case but I'm a newbie in this so maybe I just don't understand certain algorithms.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source