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.
- {xlin-0.1.36 → xlin-0.1.37}/PKG-INFO +1 -1
- {xlin-0.1.36 → xlin-0.1.37}/pyproject.toml +1 -1
- {xlin-0.1.36 → xlin-0.1.37}/xlin/statistic.py +1 -0
- {xlin-0.1.36 → xlin-0.1.37}/LICENSE +0 -0
- {xlin-0.1.36 → xlin-0.1.37}/README.md +0 -0
- {xlin-0.1.36 → xlin-0.1.37}/xlin/__init__.py +0 -0
- {xlin-0.1.36 → xlin-0.1.37}/xlin/ischinese.py +0 -0
- {xlin-0.1.36 → xlin-0.1.37}/xlin/jsonl.py +0 -0
- {xlin-0.1.36 → xlin-0.1.37}/xlin/metric.py +0 -0
- {xlin-0.1.36 → xlin-0.1.37}/xlin/multiprocess_mapping.py +0 -0
- {xlin-0.1.36 → xlin-0.1.37}/xlin/read_as_dataframe.py +0 -0
- {xlin-0.1.36 → xlin-0.1.37}/xlin/timing.py +0 -0
- {xlin-0.1.36 → xlin-0.1.37}/xlin/util.py +0 -0
- {xlin-0.1.36 → xlin-0.1.37}/xlin/xls2xlsx.py +0 -0
- {xlin-0.1.36 → xlin-0.1.37}/xlin/yaml.py +0 -0
@@ -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
|
File without changes
|