Spaces:
Sleeping
Sleeping
added the following files:
Browse files
app.py
CHANGED
|
@@ -18,8 +18,8 @@ def dataProcessing(file, timestamp_column:str=None):
|
|
| 18 |
try:
|
| 19 |
validateData(file, timestamp_column)
|
| 20 |
preProcessedData, timestamp_old, target_cols = preProcessData(file, timestamp_column)
|
| 21 |
-
predictions = predictData(chronos2, preProcessedData, target_cols)
|
| 22 |
-
scores = computeDiscreteScores(predictions, preProcessedData, target_cols)
|
| 23 |
df = assembleResults(preProcessedData, timestamp_old, target_cols, scores)
|
| 24 |
|
| 25 |
fig = plotResults(df, target_cols)
|
|
|
|
| 18 |
try:
|
| 19 |
validateData(file, timestamp_column)
|
| 20 |
preProcessedData, timestamp_old, target_cols = preProcessData(file, timestamp_column)
|
| 21 |
+
predictions, indexes = predictData(chronos2, preProcessedData, target_cols)
|
| 22 |
+
scores = computeDiscreteScores(predictions, preProcessedData, target_cols, indexes=indexes)
|
| 23 |
df = assembleResults(preProcessedData, timestamp_old, target_cols, scores)
|
| 24 |
|
| 25 |
fig = plotResults(df, target_cols)
|