xlin 0.1.32__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.32
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.32"
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"
@@ -240,7 +240,7 @@ def generate_classification_report(predictions: List[str], labels: List[str]) ->
240
240
  class_df = pd.DataFrame(class_stats)
241
241
  report["class_report"] = class_df
242
242
  confusion_matrix["recall"] = class_df["recall"].values.tolist()
243
- p = class_df["precision"].values.tolist() + ["", ""] # [out_of_class, recall]
243
+ p = class_df["precision"].values.tolist() + [-1, -1] # [out_of_class, recall]
244
244
  tail = pd.DataFrame([p], index=["precision"], columns=confusion_matrix.columns)
245
245
  confusion_matrix = pd.concat([confusion_matrix, tail], axis=0)
246
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