xlin 0.1.22__tar.gz → 0.1.23__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.22
3
+ Version: 0.1.23
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.22"
3
+ version = "0.1.23"
4
4
  description = "toolbox for LinXueyuan"
5
5
  authors = ["LinXueyuanStdio <23211526+LinXueyuanStdio@users.noreply.github.com>"]
6
6
  license = "MIT"
@@ -199,7 +199,7 @@ def generate_classification_report(predictions: List[str], labels: List[str]) ->
199
199
  p = class_df["precision"].values.tolist() + [None]
200
200
  tail = pd.DataFrame([p], index=["precision"], columns=confusion_matrix.columns)
201
201
  confusion_matrix = pd.concat([confusion_matrix, tail], axis=0)
202
- confusion_matrix.index.name = "True \\ Label"
202
+ confusion_matrix.index.name = "True \\ Pred"
203
203
  report["confusion_matrix"] = confusion_matrix
204
204
 
205
205
  micro_precision = micro_tp / (micro_tp + micro_fp) if (micro_tp + micro_fp) > 0 else 0
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