QuantumLearner commited on
Commit
81de65a
·
verified ·
1 Parent(s): 0e6cc35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -295,7 +295,7 @@ if selected == "DTW Pattern Recognition":
295
  st.markdown("""
296
  ### DTW Pattern Recognition
297
 
298
- Dynamic Time Warping (DTW) is a method that measures the similarity between two time series that may vary in time or speed. DTW aligns the time series by warping the time axis to minimize the distance between them. This method identifies historical periods that have similar patterns to the current stock price pattern by comparing their shapes, regardless of possible distortions in the time axis.
299
 
300
  The DTW distance \( D \) between two time series \( X \) and \( Y \) is calculated as:
301
 
@@ -312,8 +312,8 @@ if selected == "DTW Pattern Recognition":
312
 
313
  **How to use:**
314
  1. Enter the stock ticker, start date, and end date.
315
- 2. Select the number of subsequent days to forecast.
316
- 3. Select the number of days to compare.
317
  4. Click the 'Run' button.
318
 
319
  **Results:**
@@ -344,9 +344,9 @@ elif selected == "Correlation Pattern Recognition":
344
 
345
  **How to use:**
346
  1. Enter the stock ticker, start date, and end date.
347
- 2. Select the number of subsequent days to forecast.
348
- 3. Select the number of days to compare.
349
- 4. Select the number of days prior to the similar series.
350
  5. Click the 'Run' button.
351
 
352
  **Results:**
@@ -378,8 +378,8 @@ elif selected == "TA-Enhanced DTW Pattern Recognition":
378
 
379
  **How to use:**
380
  1. Enter the stock ticker, start date, and end date.
381
- 2. Select the number of subsequent days to forecast.
382
- 3. Select the number of days to compare.
383
  4. Click the 'Run' button.
384
 
385
  **Results:**
 
295
  st.markdown("""
296
  ### DTW Pattern Recognition
297
 
298
+ Dynamic Time Warping (DTW) is a method that measures the similarity between two time series that may vary in time or speed. DTW aligns the time series by warping the time axis to minimize the distance between them. This method could potentially identify historical periods that have similar patterns to the current stock price pattern by comparing their shapes, regardless of possible distortions in the time axis.
299
 
300
  The DTW distance \( D \) between two time series \( X \) and \( Y \) is calculated as:
301
 
 
312
 
313
  **How to use:**
314
  1. Enter the stock ticker, start date, and end date.
315
+ 2. Select the number of subsequent days to observe (forecast). This parameter determines how many days into the future you want to observe after identifying a similar historical pattern. For example, if you set it to 20, the app will show the stock price movements for 20 days following the identified pattern.
316
+ 3. Select the number of days to compare and find patterns. Choose one or more time periods (in days) to compare against the current pattern. For instance, you might select 15, 20, and 40 days. The app will look for historical patterns of these lengths that match the current stock price pattern.
317
  4. Click the 'Run' button.
318
 
319
  **Results:**
 
344
 
345
  **How to use:**
346
  1. Enter the stock ticker, start date, and end date.
347
+ 2. Select the number of subsequent days to observe (forecast). This parameter determines how many days into the future you want to observe after identifying a similar historical pattern. For example, if you set it to 20, the app will show the stock price movements for 20 days following the identified pattern.
348
+ 3. Select the number of days to compare.
349
+ 4. Select the number of days prior to the similar series. This parameter is used to set the number of days before the start of the similar pattern for additional context.
350
  5. Click the 'Run' button.
351
 
352
  **Results:**
 
378
 
379
  **How to use:**
380
  1. Enter the stock ticker, start date, and end date.
381
+ 2. Select the number of subsequent days to observe (forecast). This parameter determines how many days into the future you want to observe after identifying a similar historical pattern. For example, if you set it to 20, the app will show the stock price movements for 20 days following the identified pattern.
382
+ 3. Select the number of days to compare. Choose one or more time periods (in days) to compare against the current pattern. For instance, you might select 15, 20, and 40 days. The app will look for historical patterns of these lengths that match the current stock price pattern.
383
  4. Click the 'Run' button.
384
 
385
  **Results:**