xlin 0.1.36__tar.gz → 0.1.37__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.36
3
+ Version: 0.1.37
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.36"
3
+ version = "0.1.37"
4
4
  description = "toolbox for LinXueyuan"
5
5
  authors = ["LinXueyuanStdio <23211526+LinXueyuanStdio@users.noreply.github.com>"]
6
6
  license = "MIT"
@@ -355,6 +355,7 @@ def generate_classification_report(predictions: List[str], labels: List[str]) ->
355
355
  tail = pd.DataFrame([p], index=["precision"], columns=confusion_matrix.columns)
356
356
  confusion_matrix = pd.concat([confusion_matrix, tail], axis=0)
357
357
  confusion_matrix.index.name = "True \\ Pred"
358
+ confusion_matrix["sum"] = class_df["support"].values.tolist() + [class_df["support"].sum()]
358
359
  report["confusion_matrix"] = confusion_matrix
359
360
 
360
361
  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