virgo-modules 0.2.6__tar.gz → 0.2.7__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.

Files changed (20) hide show
  1. {virgo_modules-0.2.6 → virgo_modules-0.2.7}/PKG-INFO +1 -1
  2. {virgo_modules-0.2.6 → virgo_modules-0.2.7}/setup.py +1 -1
  3. {virgo_modules-0.2.6 → virgo_modules-0.2.7}/virgo_app/virgo_modules/src/re_utils.py +5 -3
  4. {virgo_modules-0.2.6 → virgo_modules-0.2.7}/virgo_app/virgo_modules.egg-info/PKG-INFO +1 -1
  5. {virgo_modules-0.2.6 → virgo_modules-0.2.7}/LICENSE +0 -0
  6. {virgo_modules-0.2.6 → virgo_modules-0.2.7}/README.md +0 -0
  7. {virgo_modules-0.2.6 → virgo_modules-0.2.7}/setup.cfg +0 -0
  8. {virgo_modules-0.2.6 → virgo_modules-0.2.7}/virgo_app/virgo_modules/__init__.py +0 -0
  9. {virgo_modules-0.2.6 → virgo_modules-0.2.7}/virgo_app/virgo_modules/src/__init__.py +0 -0
  10. {virgo_modules-0.2.6 → virgo_modules-0.2.7}/virgo_app/virgo_modules/src/aws_utils.py +0 -0
  11. {virgo_modules-0.2.6 → virgo_modules-0.2.7}/virgo_app/virgo_modules/src/backtester.py +0 -0
  12. {virgo_modules-0.2.6 → virgo_modules-0.2.7}/virgo_app/virgo_modules/src/edge_utils.py +0 -0
  13. {virgo_modules-0.2.6 → virgo_modules-0.2.7}/virgo_app/virgo_modules/src/hmm_utils.py +0 -0
  14. {virgo_modules-0.2.6 → virgo_modules-0.2.7}/virgo_app/virgo_modules/src/pull_artifacts.py +0 -0
  15. {virgo_modules-0.2.6 → virgo_modules-0.2.7}/virgo_app/virgo_modules/src/ticketer_source.py +0 -0
  16. {virgo_modules-0.2.6 → virgo_modules-0.2.7}/virgo_app/virgo_modules/src/transformer_utils.py +0 -0
  17. {virgo_modules-0.2.6 → virgo_modules-0.2.7}/virgo_app/virgo_modules.egg-info/SOURCES.txt +0 -0
  18. {virgo_modules-0.2.6 → virgo_modules-0.2.7}/virgo_app/virgo_modules.egg-info/dependency_links.txt +0 -0
  19. {virgo_modules-0.2.6 → virgo_modules-0.2.7}/virgo_app/virgo_modules.egg-info/requires.txt +0 -0
  20. {virgo_modules-0.2.6 → virgo_modules-0.2.7}/virgo_app/virgo_modules.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: virgo_modules
3
- Version: 0.2.6
3
+ Version: 0.2.7
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.2.6",
8
+ version="0.2.7",
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"),
@@ -1092,7 +1092,7 @@ class produce_plotly_plots:
1092
1092
  states = list(df.hmm_feature.unique())
1093
1093
  states.sort()
1094
1094
  ### expand hmm analysis
1095
- hmm_titles = ['Transition matrix heatmap' , 'state return (base first observation)','length chains dist']
1095
+ hmm_titles = ['state return (base first observation)','Transition matrix heatmap','length chains dist']
1096
1096
 
1097
1097
  fig = make_subplots(
1098
1098
  rows= rows_subplot, cols=2,
@@ -1121,7 +1121,8 @@ class produce_plotly_plots:
1121
1121
  for state in states:
1122
1122
  dfi = df_[df_.hmm_feature == state]
1123
1123
  fig.add_trace(go.Box(y = dfi.chain_return, name=str(state),showlegend=False, marker_color = color_map[state] ),row=1, col=1)
1124
-
1124
+ fig.add_hline(y=0, line_width=2, line_dash="dash", line_color="grey",row=1, col=1)
1125
+
1125
1126
  ## lengths chains by state dist
1126
1127
  if 'hmm_chain_order' in df.columns:
1127
1128
  df_agg = df.groupby(['hmm_feature','chain_id'],as_index = False).agg(length_by_chain = ('hmm_chain_order','max'))
@@ -1268,6 +1269,7 @@ class produce_plotly_plots:
1268
1269
  df = prediction[prediction.ExecutionDate == last_date]
1269
1270
  fig.add_trace(go.Scatter(x=df.Date, y=df.log_return, mode='lines',marker_color ='#ff7f0e',showlegend=False),row=1, col=1)
1270
1271
  fig.add_trace(go.Scatter(x=df.Date, y=df.log_return, mode='markers',marker_color ='#ff7f0e',showlegend=False),row=1, col=1)
1272
+ fig.add_hline(y=0, line_width=2, line_dash="dash", line_color="grey",col = 1, row = 1)
1271
1273
 
1272
1274
  ## closing prices
1273
1275
 
@@ -1292,7 +1294,7 @@ class produce_plotly_plots:
1292
1294
  upload_file_to_aws(bucket = 'VIRGO_BUCKET', key = self.save_aws + result_json_name, input_path = self.save_path + result_json_name, aws_credentials = self.aws_credentials)
1293
1295
  if self.return_figs:
1294
1296
  return fig
1295
-
1297
+
1296
1298
  def plot_hmm_analysis_logger(data_frame,test_data_size, save_path = False, show_plot = True):
1297
1299
  '''
1298
1300
  display box plots train and test of hmm state returns
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: virgo-modules
3
- Version: 0.2.6
3
+ Version: 0.2.7
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