phm-algo-ias 1.1.1__cp311-cp311-musllinux_1_2_x86_64.whl → 1.1.2__cp311-cp311-musllinux_1_2_x86_64.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.

Potentially problematic release.


This version of phm-algo-ias might be problematic. Click here for more details.

Binary file
algo/_version.py CHANGED
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '1.1.1'
32
- __version_tuple__ = version_tuple = (1, 1, 1)
31
+ __version__ = version = '1.1.2'
32
+ __version_tuple__ = version_tuple = (1, 1, 2)
33
33
 
34
- __commit_id__ = commit_id = 'gbe7236c04'
34
+ __commit_id__ = commit_id = 'g08ec7a54e'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: phm-algo-ias
3
- Version: 1.1.1
3
+ Version: 1.1.2
4
4
  Summary: Example algo package with Cython-compiled submodules
5
5
  Author: Your Name
6
6
  Classifier: Programming Language :: Python :: 3
@@ -0,0 +1,12 @@
1
+ algo/__init__.py,sha256=39U0vAwYJyChXgyxKTVca-mYS5g6wp0axllwilFCx9g,228
2
+ algo/_version.py,sha256=Kplv5wDTH9_6-1KFxBgLkXhEPIY17W2QkkYlNUHfKiI,712
3
+ algo/HI/HI.cpython-311-x86_64-linux-musl.so,sha256=MW5gwSbkp4herSjG7XfIPbv8YSgRdU4s7br9XWVH2M4,683064
4
+ algo/HI/__init__.py,sha256=qHY2ACOtfIznQYvMFLJBpoB0xjUdd0rY2FUVunk2kEk,127
5
+ algo/RUL/RUL.cpython-311-x86_64-linux-musl.so,sha256=sQY9s9dUXbJ4NL-fZLy91WUbQV2RFoVcNq-YmaKxr-Y,183752
6
+ algo/RUL/__init__.py,sha256=VoJ0tZAIEh6TI8pJSo6hBAjEUYb2n2KiQ9dpXnrGF5g,131
7
+ test_code/HI_Verify.py,sha256=fzFSmI7gMUJKbxiOWxbGPhEmfGQIraIDmltZ8gRoz9Q,8683
8
+ test_code/health_index_robot.py,sha256=qOQwfu8HOpfjEg7u804HZJq2D4PbzpsEVgT6PRtJ5-c,4424
9
+ phm_algo_ias-1.1.2.dist-info/METADATA,sha256=BLRrM2Z3_vAZzOgGsP8Sl9C92f1M39J9tg-Z3N4NmRA,610
10
+ phm_algo_ias-1.1.2.dist-info/WHEEL,sha256=kA_iIvT-cxTFNl4I8QDfFHN1DAyqZDYakVXCaObxeLo,112
11
+ phm_algo_ias-1.1.2.dist-info/top_level.txt,sha256=G1rxqg36Dwkx3w8o50708_IOrZelxPOJVB_KPOLlJM0,26
12
+ phm_algo_ias-1.1.2.dist-info/RECORD,,
test_code/HI_Verify.py CHANGED
@@ -164,15 +164,15 @@ def rename_columns(df: pd.DataFrame) -> pd.DataFrame:
164
164
 
165
165
  if __name__ == "__main__":
166
166
  #------------------------------- << Training Model >> ---------------------------------------------------------
167
- #time_scale = "h" # 輸入時間維度 : "每小時"("h"), "每分鐘"("min")
168
- file_path = os.path.join(os.getcwd(), "data", "410_good_1_all_feature.csv")
167
+ time_scale = "h" # 輸入時間維度 : "每小時"("h"), "每分鐘"("min")
168
+ file_path = os.path.join(os.getcwd(), "data", "410_good_1.csv")
169
169
  df = pd.read_csv(file_path)
170
170
 
171
171
  #df = df[["Time"] + df.select_dtypes(include="number").columns.tolist()]
172
172
  df = rename_columns(df) # 更改欄位名稱 (.CSV檔欄位名稱->系統欄位名稱)
173
173
 
174
- algo_config = "1, 0, 1, 1, 2, 1, 1" # [時長維度, testing資料離處理, 低解析度特徵刪除, 特徵選擇, 資料正規化, 模型, rul_deadline]
175
-
174
+ algo_config = "1, 0, 1, 1, 2, 1, 1, 1" # [時長維度, testing資料離處理, 低解析度特徵刪除, 特徵選擇, 資料正規化, 模型, rul_deadline, feature_extraction]
175
+ df = df.loc[:18000] ############################
176
176
  result = HI.training_model(df, algo_config) # Training Model : "training_model_robust_index"(訓練模型指標分數), "training_model_robust_status"(verify:綠燈,warning:紅燈)
177
177
  print(result)
178
178
 
@@ -198,7 +198,7 @@ if __name__ == "__main__":
198
198
  # good_bad_result = HI.training_model_GB_compare(df_1, df_2, time_scale)
199
199
 
200
200
  #------------------------------- << Inference_HI & 嫌疑度變量 >> ---------------------------------------------------------
201
- file_path_test = os.path.join(os.getcwd(), "data", "410_good_1_all_feature.csv")
201
+ file_path_test = os.path.join(os.getcwd(), "data", "410_good_1.csv")
202
202
  test_df = pd.read_csv(file_path_test)
203
203
  test_df = rename_columns(test_df) # 更改欄位名稱 (.CSV檔欄位名稱->系統欄位名稱)
204
204
  test_result = HI.testing_model(test_df,result) # Inference : 輸出 "HI_Score"(HI分數), "suspicious_variable"(變量嫌疑度)
@@ -208,7 +208,7 @@ if __name__ == "__main__":
208
208
  #Health_test = plot(test_result['HI_Score'], target="test")
209
209
 
210
210
  #------------------------------------- << RUL >> ------------------------------------------------------------------------
211
- RUL_result = RUL.rul_calculation_h(test_result["HI_Score"], result) # Inference : 輸出 RUL
211
+ RUL_result = RUL.rul_calculation(test_result["T2"], result, 0.9) # Inference : 輸出 RUL
212
212
  print(RUL_result)
213
213
 
214
214
  #------------------------------- << HI_Score 異常時間區段 >> --------------------------------------------------------------
@@ -1,12 +0,0 @@
1
- algo/__init__.py,sha256=39U0vAwYJyChXgyxKTVca-mYS5g6wp0axllwilFCx9g,228
2
- algo/_version.py,sha256=fXellVhWRA4cMOkEBuKmFjLLro0rVyAOEKs6CbgrYtc,712
3
- algo/HI/HI.cpython-311-x86_64-linux-musl.so,sha256=rDfpUAi-Q5gAqbePkxnbm-dnwNsTXQZPTKOlNe2V6t4,652864
4
- algo/HI/__init__.py,sha256=qHY2ACOtfIznQYvMFLJBpoB0xjUdd0rY2FUVunk2kEk,127
5
- algo/RUL/RUL.cpython-311-x86_64-linux-musl.so,sha256=bcsthKRYAuhFyCHHTWpy7AfjYSA1eyqHP0IzNarCa6E,152384
6
- algo/RUL/__init__.py,sha256=VoJ0tZAIEh6TI8pJSo6hBAjEUYb2n2KiQ9dpXnrGF5g,131
7
- test_code/HI_Verify.py,sha256=WgYlEpbqdUpe5XNjSE__D_1hqCWWlykkeNfX9u2pWrw,8636
8
- test_code/health_index_robot.py,sha256=qOQwfu8HOpfjEg7u804HZJq2D4PbzpsEVgT6PRtJ5-c,4424
9
- phm_algo_ias-1.1.1.dist-info/METADATA,sha256=NjtQDqSdRhodwFbtndtmzcNmvtmeU9ZgB0f8uOgJDSI,610
10
- phm_algo_ias-1.1.1.dist-info/WHEEL,sha256=kA_iIvT-cxTFNl4I8QDfFHN1DAyqZDYakVXCaObxeLo,112
11
- phm_algo_ias-1.1.1.dist-info/top_level.txt,sha256=G1rxqg36Dwkx3w8o50708_IOrZelxPOJVB_KPOLlJM0,26
12
- phm_algo_ias-1.1.1.dist-info/RECORD,,