-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
36 lines (23 loc) · 882 Bytes
/
main.py
File metadata and controls
36 lines (23 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# This is a sample Python script.
# Press Shift+F10 to execute it or replace it with your code.
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings.
import LinearRegression as P
import OrdinaryLeastSquares
# import Ml2 as t
import getHistoricalData as feed
# def myproject():
# model = P.QuantML ()
# model.Engine()
def project_2():
print(" Model 2 ")
""" Get Stocks Data -- Reliance """
_t = feed.FinancialData()
df_stocks_data =_t.get_historical_data()
print(F"number of Record Found is : {len(df_stocks_data)}")
m2 = OrdinaryLeastSquares.Q_OLS(df_stocks_data)
# # Press the green button in the gutter to run the script.
if __name__ == '__main__':
""" Linear Regression to On Mean Price """
# myproject()
""" model 2 : get best fit Line (Reliance Stocks) """
project_2()