« first day (1229 days earlier)      last day (2349 days later) » 

08:39
X = df.iloc[:, :-1].values
y = df.iloc[:, 1].values
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size = 0.1, random_state = 0, shuffle = False)
lm = LinearRegression()
lm.fit(X_train, y_train)
y_pred = lm.predict(X_test)
plt.scatter(X_train, y_train, color = 'red')
plt.plot(X_train, lm.predict(X_train), color = 'blue')
plt.title('Years vs Values (training set)')
plt.xlabel('Years')
plt.ylabel('Values')
plt.show()
08:52
1 message moved from Python
please refer to this: https://stackoverflow.com/questions/51120555/how-to-fit-a-non-linear-regression-in-python

this is what exactly I'm looking for. In extension to the above I also tried using SVM way of doing things but didn't work
1 message moved from Python
 
1 hour later…
09:57
@AndrasDeak I'm looking for your help on stackoverflow.com/questions/51120555/…. Let me know if you're unable to open the output
link*
2 messages moved from Python

« first day (1229 days earlier)      last day (2349 days later) »