f64
commited on
Commit
·
2f89b0d
1
Parent(s):
ed424f6
- pages/2_TECT_IDXYZ.py +4 -2
pages/2_TECT_IDXYZ.py
CHANGED
|
@@ -37,7 +37,9 @@ def GetListOf_XYZV_ToTrainClassifier(repo):
|
|
| 37 |
@st.cache_data
|
| 38 |
def GetCachedClassifier(lstDfOriginal, nHystorySteps):
|
| 39 |
classifier_object, df_train_with_predict, time_elapsed = my_stm.GetClassifier(lstDfOriginal, nHystorySteps)
|
| 40 |
-
st.session_state.df_train_with_predict = df_train_with_predict
|
|
|
|
|
|
|
| 41 |
print(f"GetCachedClassifier() : {time_elapsed=}")
|
| 42 |
return classifier_object
|
| 43 |
|
|
@@ -140,7 +142,7 @@ if selectedFile is not None:
|
|
| 140 |
classifier_object = GetCachedClassifier(lstDfOriginal, pack_size-1)
|
| 141 |
col2.popover(type(classifier_object).__name__).write(type(classifier_object))
|
| 142 |
# прогноз на обучающей выборке
|
| 143 |
-
columns_xyzv = [c for c in df_train_with_predict.columns if "Vis" in c] + [c for c in df_train_with_predict.columns if c[0] in "XYZ"]
|
| 144 |
#col2.dataframe(df_train_with_predict[columns_xyzv], height=650)
|
| 145 |
# расчет пакетов
|
| 146 |
xyz = ["X","Y","Z"]
|
|
|
|
| 37 |
@st.cache_data
|
| 38 |
def GetCachedClassifier(lstDfOriginal, nHystorySteps):
|
| 39 |
classifier_object, df_train_with_predict, time_elapsed = my_stm.GetClassifier(lstDfOriginal, nHystorySteps)
|
| 40 |
+
#st.session_state.df_train_with_predict = df_train_with_predict
|
| 41 |
+
columns_xyzv = [c for c in df_train_with_predict.columns if "Vis" in c] + [c for c in df_train_with_predict.columns if c[0] in "XYZ"]
|
| 42 |
+
st.session_state.df_train_with_predict = df_train_with_predict[columns_xyzv]
|
| 43 |
print(f"GetCachedClassifier() : {time_elapsed=}")
|
| 44 |
return classifier_object
|
| 45 |
|
|
|
|
| 142 |
classifier_object = GetCachedClassifier(lstDfOriginal, pack_size-1)
|
| 143 |
col2.popover(type(classifier_object).__name__).write(type(classifier_object))
|
| 144 |
# прогноз на обучающей выборке
|
| 145 |
+
#columns_xyzv = [c for c in df_train_with_predict.columns if "Vis" in c] + [c for c in df_train_with_predict.columns if c[0] in "XYZ"]
|
| 146 |
#col2.dataframe(df_train_with_predict[columns_xyzv], height=650)
|
| 147 |
# расчет пакетов
|
| 148 |
xyz = ["X","Y","Z"]
|