xlin 0.1.31__tar.gz → 0.1.33__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: xlin
3
- Version: 0.1.31
3
+ Version: 0.1.33
4
4
  Summary: toolbox for LinXueyuan
5
5
  License: MIT
6
6
  Author: LinXueyuanStdio
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "xlin"
3
- version = "0.1.31"
3
+ version = "0.1.33"
4
4
  description = "toolbox for LinXueyuan"
5
5
  authors = ["LinXueyuanStdio <23211526+LinXueyuanStdio@users.noreply.github.com>"]
6
6
  license = "MIT"
@@ -239,10 +239,8 @@ def generate_classification_report(predictions: List[str], labels: List[str]) ->
239
239
  # 添加汇总统计
240
240
  class_df = pd.DataFrame(class_stats)
241
241
  report["class_report"] = class_df
242
- print(class_df)
243
- print(confusion_matrix)
244
242
  confusion_matrix["recall"] = class_df["recall"].values.tolist()
245
- p = class_df["precision"].values.tolist() + ["", ""] # [out_of_class, recall]
243
+ p = class_df["precision"].values.tolist() + [-1, -1] # [out_of_class, recall]
246
244
  tail = pd.DataFrame([p], index=["precision"], columns=confusion_matrix.columns)
247
245
  confusion_matrix = pd.concat([confusion_matrix, tail], axis=0)
248
246
  confusion_matrix.index.name = "True \\ Pred"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes