Help in learning feature weights

I need help with a problem.

I have n features. With these features I can create a vector of size n. Given x vectors (where each vector is of size n) and a final score of the x vectors, what is the best way to learn the weights of each feature?

Thank you!