Skip to content

Instantly share code, notes, and snippets.

@greencoder
greencoder / predict.py
Last active July 27, 2022 19:32
SKLearn Linear Regression Stock Price Prediction
from __future__ import print_function
import numpy as np
import pandas as pd
import talib as ta
import pandas_datareader as web
from sklearn.linear_model import LinearRegression
from sklearn.linear_model import Ridge
from sklearn.model_selection import cross_val_score