Well it kinda is just what it says.You are feeding a 1D array where you need a 2D one.
Numpy.log10 gives you a array where each values is the log of whatever you feed it (if it's negative it returns Nan check for that) with the same shape of whatever you feed it.
You arent verry clear on what you want to predict so i'll just assume you want to do linear regresion on a matrix like this [log_tStress, log_tStrain] so you can predict log_tStress over log_tStrain (or vice versa)
I cant help you much given i have 0 idea what log_tStress is or how it looks like . I can assume log_tStrain is your training data. If you want to predict the training data alone you'll have to give it another dimension to it's matrix (something relevant to whatever the training data is) but if you have nothing on that index might work too
.Fit requires you these params:
X - the training data [nr_samples, nr_features]
y - the array shape of said targets
Here I'll link you the documentation so you can look: http://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LinearRegression.html
true_stress
andtrue_strain
arrays? – Patrizio