virgo-modules 0.0.42__tar.gz → 0.0.43__tar.gz

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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: virgo_modules
3
- Version: 0.0.42
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
@@ -5,7 +5,7 @@ with open("virgo_app/README.md", "r") as f:
5
5
 
6
6
  setup(
7
7
  name="virgo_modules",
8
- version="0.0.42",
8
+ version="0.0.43",
9
9
  description="data processing and statistical modeling using stock market data",
10
10
  package_dir={"": "virgo_app"},
11
11
  packages=find_packages(where="virgo_app"),
@@ -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
@@ -1855,10 +1855,11 @@ def iterate_signal_analyser(test_data_size,feature_name, days_list, arguments_to
1855
1855
  return best_result
1856
1856
 
1857
1857
  class analyse_index(stock_eda_panel):
1858
- 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):
1859
1859
  self.index = index
1860
1860
  self.asset = asset
1861
1861
  self.n_obs = n_obs
1862
+ self.data_window = data_window
1862
1863
  self.lag = lag
1863
1864
 
1864
1865
  self.show_plot = show_plot
@@ -1867,12 +1868,12 @@ class analyse_index(stock_eda_panel):
1867
1868
 
1868
1869
  def process_data(self):
1869
1870
 
1870
- index = stock_eda_panel(self.index, self.n_obs)
1871
+ index = stock_eda_panel(self.index, self.n_obs, self.data_window)
1871
1872
  index.get_data()
1872
1873
  index.df['shift'] = index.df.Close.shift(self.lag)
1873
1874
  index.df['index_return'] = index.df.Close/index.df['shift'] - 1
1874
1875
 
1875
- asset = stock_eda_panel(self.asset, self.n_obs)
1876
+ asset = stock_eda_panel(self.asset, self.n_obs, self.data_window)
1876
1877
  asset.get_data()
1877
1878
  asset.df['shift'] = asset.df.Close.shift(self.lag)
1878
1879
  asset.df['asset_return'] = asset.df.Close/asset.df['shift'] - 1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: virgo-modules
3
- Version: 0.0.42
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
File without changes
File without changes
File without changes