virgo-modules 0.0.71__py3-none-any.whl → 0.0.72__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.
@@ -1217,7 +1217,20 @@ class stock_eda_panel(object):
1217
1217
  ### first feature: the hidden state
1218
1218
  self.df['hmm_feature'] = self.model_hmm.predict(self.df)
1219
1219
  self.create_hmm_derived_features(lag_returns = lag_returns_state)
1220
-
1220
+
1221
+ ## completion
1222
+
1223
+ hidden_states = pipeline_hmm.predict(data_train)
1224
+ map_ = {i:f'state_{i}' for i in range(n_clusters)}
1225
+ color_map = { i:DEFAULT_PLOTLY_COLORS[i] for i in range(n_clusters)}
1226
+
1227
+ data_train['HMM'] = hidden_states
1228
+ data_train['HMM_state'] = data_train['HMM'].map(map_)
1229
+
1230
+ hidden_states = pipeline_hmm.predict(data_test)
1231
+ data_test['HMM'] = hidden_states
1232
+ data_test['HMM_state'] = data_test['HMM'].map(map_)
1233
+
1221
1234
  if model:
1222
1235
  self.df['hmm_feature'] = model.predict(self.df)
1223
1236
  self.create_hmm_derived_features(lag_returns = lag_returns_state)
@@ -1229,13 +1242,6 @@ class stock_eda_panel(object):
1229
1242
 
1230
1243
  if plot:
1231
1244
 
1232
- hidden_states = pipeline_hmm.predict(data_train)
1233
- map_ = {i:f'state_{i}' for i in range(n_clusters)}
1234
- color_map = { i:DEFAULT_PLOTLY_COLORS[i] for i in range(n_clusters)}
1235
-
1236
- data_train['HMM'] = hidden_states
1237
- data_train['HMM_state'] = data_train['HMM'].map(map_)
1238
-
1239
1245
  fig = go.Figure()
1240
1246
  fig.add_trace(go.Scatter(x=data_train['Date'], y=data_train['Close'], mode='lines',name = 'history', marker_color = 'grey'))
1241
1247
  for state in data_train['HMM_state'].unique():
@@ -1246,10 +1252,6 @@ class stock_eda_panel(object):
1246
1252
  fig.show()
1247
1253
 
1248
1254
  print('---------------------------------------------------------')
1249
-
1250
- hidden_states = pipeline_hmm.predict(data_test)
1251
- data_test['HMM'] = hidden_states
1252
- data_test['HMM_state'] = data_test['HMM'].map(map_)
1253
1255
 
1254
1256
  fig = go.Figure()
1255
1257
  fig.add_trace(go.Scatter(x=data_test['Date'], y=data_test['Close'], mode='lines',name = 'history', marker_color = 'grey'))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: virgo-modules
3
- Version: 0.0.71
3
+ Version: 0.0.72
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
@@ -4,9 +4,9 @@ virgo_modules/src/aws_utils.py,sha256=GWmVdXM0mIJJPn-X-bEtM4KtNPCHM1D457hnuKxaM7
4
4
  virgo_modules/src/edge_utils.py,sha256=Ihdmq7dyb8gOvG6CrDal7wsa15tqsdsFk6KINwM6578,7691
5
5
  virgo_modules/src/pull_artifacts.py,sha256=5OPrgR7pcMSdpbevDRhf0ebk7g7ZRjff4NpTIIWAKjE,1989
6
6
  virgo_modules/src/re_utils.py,sha256=LDI3sYAaNm3LO5gRul7PyCVbJrkT3PBihObkdVilVec,52428
7
- virgo_modules/src/ticketer_source.py,sha256=fGj954x4UmYU4zaI20q5dTkgqAVK0XQJsuibM2UBPMs,104812
8
- virgo_modules-0.0.71.dist-info/LICENSE,sha256=pNgFyCYgmimaw0o6V20JupZLROycAnOA_HDDh1tX2V4,1097
9
- virgo_modules-0.0.71.dist-info/METADATA,sha256=vWlzxe3a8nehV54nuJZi87OWDKwwEhz5JNRkncIv_To,1429
10
- virgo_modules-0.0.71.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
11
- virgo_modules-0.0.71.dist-info/top_level.txt,sha256=ZjI-qEkDtT-8mFwGAWnXfqPOKEGlIhWRW1es1VyXc60,14
12
- virgo_modules-0.0.71.dist-info/RECORD,,
7
+ virgo_modules/src/ticketer_source.py,sha256=ciMPObqntAFtnlY1IPt8-Y4mz6yuD1jy6gRQN109D4M,104837
8
+ virgo_modules-0.0.72.dist-info/LICENSE,sha256=pNgFyCYgmimaw0o6V20JupZLROycAnOA_HDDh1tX2V4,1097
9
+ virgo_modules-0.0.72.dist-info/METADATA,sha256=Txin9qouILtGSvPTQYcJPPkWXNry0JjI3sSfAMB0Cjg,1429
10
+ virgo_modules-0.0.72.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
11
+ virgo_modules-0.0.72.dist-info/top_level.txt,sha256=ZjI-qEkDtT-8mFwGAWnXfqPOKEGlIhWRW1es1VyXc60,14
12
+ virgo_modules-0.0.72.dist-info/RECORD,,