virgo-modules 0.0.41__py3-none-any.whl → 0.0.43__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of virgo-modules might be problematic. Click here for more details.

@@ -578,6 +578,7 @@ def call_ml_objects(stock_code, client, call_models = False):
578
578
  ticker_name= stock_code,
579
579
  ticket_settings = ticket_settings,
580
580
  n_days = ticket_settings['settings']['general']['n_days'],
581
+ data_window = ticket_settings['settings']['general'].get('data_window','5y'),
581
582
  hmm_available = hmm_model
582
583
  )
583
584
  ### applying kalman
@@ -177,7 +177,12 @@ class stock_eda_panel(object):
177
177
  df['Date'] = pd.to_datetime(df['Date'])
178
178
 
179
179
  df = df[df.Date >= begin_date_str ]
180
- self.settings_general = {'n_days':self.n_days, 'begin_date':begin_date_str}
180
+ self.settings_general = {
181
+ 'n_days':self.n_days,
182
+ 'begin_date':begin_date_str,
183
+ 'data_window': self.data_window,
184
+ 'execution_date': self.today.strftime('%Y-%m-%d')
185
+ }
181
186
  self.df = df
182
187
 
183
188
  ### cleaning volume
@@ -226,8 +231,6 @@ class stock_eda_panel(object):
226
231
  df["lower"] = df['Close_roll_mean'] - df["Close_roll_std"]*2
227
232
 
228
233
  df = df[df.Date >= begin_date_str ]
229
- self.settings_general = {'n_days':self.n_days, 'begin_date':begin_date_str}
230
- self.df = df
231
234
 
232
235
  fig = make_subplots(rows=1, cols=1,vertical_spacing = 0.1,shared_xaxes=True,
233
236
  subplot_titles=(
@@ -1852,10 +1855,11 @@ def iterate_signal_analyser(test_data_size,feature_name, days_list, arguments_to
1852
1855
  return best_result
1853
1856
 
1854
1857
  class analyse_index(stock_eda_panel):
1855
- def __init__(self, index, asset, n_obs, lag, show_plot = True, save_path = False, save_aws = False):
1858
+ def __init__(self, index, asset, n_obs, lag, data_window = '5y', show_plot = True, save_path = False, save_aws = False):
1856
1859
  self.index = index
1857
1860
  self.asset = asset
1858
1861
  self.n_obs = n_obs
1862
+ self.data_window = data_window
1859
1863
  self.lag = lag
1860
1864
 
1861
1865
  self.show_plot = show_plot
@@ -1864,12 +1868,12 @@ class analyse_index(stock_eda_panel):
1864
1868
 
1865
1869
  def process_data(self):
1866
1870
 
1867
- index = stock_eda_panel(self.index, self.n_obs)
1871
+ index = stock_eda_panel(self.index, self.n_obs, self.data_window)
1868
1872
  index.get_data()
1869
1873
  index.df['shift'] = index.df.Close.shift(self.lag)
1870
1874
  index.df['index_return'] = index.df.Close/index.df['shift'] - 1
1871
1875
 
1872
- asset = stock_eda_panel(self.asset, self.n_obs)
1876
+ asset = stock_eda_panel(self.asset, self.n_obs, self.data_window)
1873
1877
  asset.get_data()
1874
1878
  asset.df['shift'] = asset.df.Close.shift(self.lag)
1875
1879
  asset.df['asset_return'] = asset.df.Close/asset.df['shift'] - 1
@@ -1,37 +1,36 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: virgo-modules
3
- Version: 0.0.41
3
+ Version: 0.0.43
4
4
  Summary: data processing and statistical modeling using stock market data
5
5
  Home-page: https://github.com/miguelmayhem92/virgo_module
6
6
  Author: Miguel Mayhuire
7
7
  Author-email: miguelmayhem92@gmail.com
8
8
  License: MIT
9
- Platform: UNKNOWN
10
9
  Classifier: License :: OSI Approved :: MIT License
11
10
  Classifier: Programming Language :: Python :: 3.9
12
11
  Classifier: Operating System :: OS Independent
13
12
  Requires-Python: >=3.9, <3.10
14
13
  Description-Content-Type: text/markdown
15
14
  License-File: LICENSE
16
- Requires-Dist: feature-engine (==1.6.1)
17
- Requires-Dist: matplotlib (==3.6.3)
18
- Requires-Dist: mlflow (==2.1.1)
19
- Requires-Dist: numpy (==1.23.5)
20
- Requires-Dist: optuna (==3.1.0)
21
- Requires-Dist: pandas (==1.5.3)
22
- Requires-Dist: plotly (==5.15.0)
23
- Requires-Dist: rsa (==4.9)
24
- Requires-Dist: scikit-learn (==1.2.1)
25
- Requires-Dist: scipy (==1.10.0)
26
- Requires-Dist: seaborn (==0.12.2)
27
- Requires-Dist: starlette (==0.22.0)
28
- Requires-Dist: statsmodels (==0.13.5)
29
- Requires-Dist: ta (==0.10.2)
30
- Requires-Dist: yfinance (==0.2.9)
31
- Requires-Dist: hmmlearn (==0.3.0)
15
+ Requires-Dist: feature-engine ==1.6.1
16
+ Requires-Dist: matplotlib ==3.6.3
17
+ Requires-Dist: mlflow ==2.1.1
18
+ Requires-Dist: numpy ==1.23.5
19
+ Requires-Dist: optuna ==3.1.0
20
+ Requires-Dist: pandas ==1.5.3
21
+ Requires-Dist: plotly ==5.15.0
22
+ Requires-Dist: rsa ==4.9
23
+ Requires-Dist: scikit-learn ==1.2.1
24
+ Requires-Dist: scipy ==1.10.0
25
+ Requires-Dist: seaborn ==0.12.2
26
+ Requires-Dist: starlette ==0.22.0
27
+ Requires-Dist: statsmodels ==0.13.5
28
+ Requires-Dist: ta ==0.10.2
29
+ Requires-Dist: yfinance ==0.2.9
30
+ Requires-Dist: hmmlearn ==0.3.0
32
31
  Requires-Dist: boto3
33
32
  Provides-Extra: dev
34
- Requires-Dist: pytest (>=7.0) ; extra == 'dev'
33
+ Requires-Dist: pytest >=7.0 ; extra == 'dev'
35
34
 
36
35
  # Virgo Package
37
36
 
@@ -52,4 +51,3 @@ obj = stock_eda_panel(stock_code = 'PEP', n_days = 20)
52
51
  obj.get_data()
53
52
  print(obj.df.shape)
54
53
  ```
55
-
@@ -0,0 +1,11 @@
1
+ virgo_modules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ virgo_modules/src/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ virgo_modules/src/aws_utils.py,sha256=zvCV_bfN8o8H3iSD-V_aYHtoKqXRD4Kt_T8HIji23WA,965
4
+ virgo_modules/src/pull_artifacts.py,sha256=5OPrgR7pcMSdpbevDRhf0ebk7g7ZRjff4NpTIIWAKjE,1989
5
+ virgo_modules/src/re_utils.py,sha256=9lHtZD4Zlp5bqehiOtMMHiZJyx7docFppQ1LfWiP7mc,44968
6
+ virgo_modules/src/ticketer_source.py,sha256=mlVEo9X4lpsbJyR4aqor5trwUE1pOxIaxsckSjSWvOQ,94565
7
+ virgo_modules-0.0.43.dist-info/LICENSE,sha256=pNgFyCYgmimaw0o6V20JupZLROycAnOA_HDDh1tX2V4,1097
8
+ virgo_modules-0.0.43.dist-info/METADATA,sha256=nu5XZwHjQgOkvwq5QjZH4tMBtgxq8svPcGX9dDmlxyU,1429
9
+ virgo_modules-0.0.43.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
10
+ virgo_modules-0.0.43.dist-info/top_level.txt,sha256=ZjI-qEkDtT-8mFwGAWnXfqPOKEGlIhWRW1es1VyXc60,14
11
+ virgo_modules-0.0.43.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.38.4)
2
+ Generator: bdist_wheel (0.41.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,11 +0,0 @@
1
- virgo_modules/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- virgo_modules/src/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- virgo_modules/src/aws_utils.py,sha256=zvCV_bfN8o8H3iSD-V_aYHtoKqXRD4Kt_T8HIji23WA,965
4
- virgo_modules/src/pull_artifacts.py,sha256=5OPrgR7pcMSdpbevDRhf0ebk7g7ZRjff4NpTIIWAKjE,1989
5
- virgo_modules/src/re_utils.py,sha256=KJSFqxl982OKjJk-qtyJPEB-ZcggNPYo5mloNeWrf2c,44873
6
- virgo_modules/src/ticketer_source.py,sha256=QxQRe1N_rnLvgMU4nlVynNBuzRRmp_Z7efgmmB68YzY,94429
7
- virgo_modules-0.0.41.dist-info/LICENSE,sha256=pNgFyCYgmimaw0o6V20JupZLROycAnOA_HDDh1tX2V4,1097
8
- virgo_modules-0.0.41.dist-info/METADATA,sha256=uxiALRoe7G7XoYklBmTyK6UvSJ51mjPWL9PVZ37QI-Y,1484
9
- virgo_modules-0.0.41.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
10
- virgo_modules-0.0.41.dist-info/top_level.txt,sha256=ZjI-qEkDtT-8mFwGAWnXfqPOKEGlIhWRW1es1VyXc60,14
11
- virgo_modules-0.0.41.dist-info/RECORD,,