Skip to content

Error : Failed to produce classification/label metrics #337

@chudasama-bijal

Description

@chudasama-bijal

In EIS Wizard's Evaluation section, Statistics calculations gives the following error:

Failed to produce classification/label metrics

Complete log as below:

2025-07-02T10:09:05     INFO    [OPENING EIS TOOLKIT]
             
2025-07-02T10:09:07     INFO    2025-07-02 10:09:07.445355: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2025-07-02T10:09:10     INFO    WARNING:tensorflow:From E:\SGA2025_course\EIS_releases\venv\eis_toolkit\lib\site-packages\keras\src\losses.py:2976: The name tf.losses.sparse_softmax_cross_entropy is deprecated. Please use tf.compat.v1.losses.sparse_softmax_cross_entropy instead.
2025-07-02T10:09:10     INFO    
2025-07-02T10:09:11     INFO    Opening input files....
2025-07-02T10:09:11     INFO    [OK] Input files read
2025-07-02T10:09:11     INFO    
2025-07-02T10:09:11     INFO    Running algorithm...
2025-07-02T10:09:11     INFO    [OK] Algorithm run succesfully
2025-07-02T10:09:11     INFO    
2025-07-02T10:09:11     INFO    +--------------------- Traceback (most recent call last) ---------------------+
2025-07-02T10:09:11     INFO    | E:\SGA2025_course\EIS_releases\venv\eis_toolkit\lib\site-packages\e |
2025-07-02T10:09:11     INFO    | is_toolkit\cli.py:3762 in summarize_label_metrics_binary_cli |
2025-07-02T10:09:11     INFO    | |
2025-07-02T10:09:11     INFO    | 3759 with ProgressLog.running_algorithm(): |
2025-07-02T10:09:11     INFO    | 3760 results_dict = summarize_label_metrics_binary(y_true=y_true, |
2025-07-02T10:09:11     INFO    | 3761 |
2025-07-02T10:09:11     INFO    | > 3762 ResultSender.send_dict_as_json(results_dict) |
2025-07-02T10:09:11     INFO    | 3763 ProgressLog.finish() |
2025-07-02T10:09:12     INFO    | 3764 |
2025-07-02T10:09:12     INFO    | 3765 |
2025-07-02T10:09:12     INFO    | |
2025-07-02T10:09:12     INFO    | +-------------------------------- locals ---------------------------------+ |
2025-07-02T10:09:12     INFO    | | _ = array([ True, True, True, ..., True, True, True]) | |
2025-07-02T10:09:12     INFO    | | predictions = WindowsPath('C:/Users/AppData/Local/Temp/proce� | |
2025-07-02T10:09:12     INFO    | | results_dict = { | |
2025-07-02T10:09:12     INFO    | | 'Accuracy': 0.342, | |
2025-07-02T10:09:12     INFO    | | 'Precision': 0.25, | |
2025-07-02T10:09:12     INFO    | | 'Recall': 0.235, | |
2025-07-02T10:09:12     INFO    | | 'F1_score': 0.242, | |
2025-07-02T10:09:12     INFO    | | 'True_negatives': 9, | |
2025-07-02T10:09:12     INFO    | | 'False_positives': 12, | |
2025-07-02T10:09:12     INFO    | | 'False_negatives': 13, | |
2025-07-02T10:09:12     INFO    | | 'True_positives': 4 | |
2025-07-02T10:09:12     INFO    | | } | |
2025-07-02T10:09:12     INFO    | | true_labels = WindowsPath('E:/SGA2025_course/Results/Proxies/� | |
2025-07-02T10:09:12     INFO    | | y_pred = array([0., 0., 1., 0., 0., 0., 1., 0., 0., 1., 1., 1., | |
2025-07-02T10:09:12     INFO    | | 0., 1., 0., 1., 1., | |
2025-07-02T10:09:12     INFO    | | 0., 1., 0., 0., 0., 1., 1., 0., 0., 0., 0., 1., | |
2025-07-02T10:09:12     INFO    | | 0., 0., 1., 1., 0., | |
2025-07-02T10:09:12     INFO    | | 0., 0., 1., 1.], dtype=float32) | |
2025-07-02T10:09:12     INFO    | | y_true = array([0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., | |
2025-07-02T10:09:12     INFO    | | 0., 0., 0., 1., 0., | |
2025-07-02T10:09:12     INFO    | | 1., 0., 1., 1., 1., 0., 0., 1., 1., 1., 1., 0., | |
2025-07-02T10:09:12     INFO    | | 1., 1., 1., 1., 1., | |
2025-07-02T10:09:12     INFO    | | 1., 1., 0., 1.], dtype=float32) | |
2025-07-02T10:09:12     INFO    | +-------------------------------------------------------------------------+ |
2025-07-02T10:09:12     INFO    | |
2025-07-02T10:09:12     INFO    | E:\SGA2025_course\EIS_releases\venv\eis_toolkit\lib\site-packages\e |
2025-07-02T10:09:12     INFO    | is_toolkit\cli.py:470 in send_dict_as_json |
2025-07-02T10:09:12     INFO    | |
2025-07-02T10:09:12     INFO    | 467 class ResultSender: # noqa: D101 |
2025-07-02T10:09:12     INFO    | 468 @staticmethod |
2025-07-02T10:09:12     INFO    | 469 def send_dict_as_json(dictionary: dict): # noqa: D102 |
2025-07-02T10:09:12     CRITICAL    Run failed. Error: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
2025-07-02T10:09:12     INFO    [CLOSING EIS TOOLKIT]
             
2025-07-02T10:09:12     INFO    Results: {}
2025-07-02T10:09:12     INFO    [OPENING EIS TOOLKIT]
             
2025-07-02T10:09:14     INFO    2025-07-02 10:09:14.824099: I tensorflow/core/util/port.cc:113] oneDNN custom operations are on. You may see slightly different numerical results due to floating-point round-off errors from different computation orders. To turn them off, set the environment variable `TF_ENABLE_ONEDNN_OPTS=0`.
2025-07-02T10:09:18     INFO    WARNING:tensorflow:From E:\SGA2025_course\EIS_releases\venv\eis_toolkit\lib\site-packages\keras\src\losses.py:2976: The name tf.losses.sparse_softmax_cross_entropy is deprecated. Please use tf.compat.v1.losses.sparse_softmax_cross_entropy instead.
2025-07-02T10:09:18     INFO    
2025-07-02T10:09:18     INFO    Opening input files....
2025-07-02T10:09:18     INFO    [OK] Input files read
2025-07-02T10:09:18     INFO    
2025-07-02T10:09:18     INFO    Running algorithm...
2025-07-02T10:09:18     INFO    [OK] Algorithm run succesfully
2025-07-02T10:09:18     INFO    
2025-07-02T10:09:18     INFO    RESULTS
2025-07-02T10:09:18     INFO    * roc_auc: 0.347
2025-07-02T10:09:18     INFO    * log_loss: 0.752
2025-07-02T10:09:18     INFO    * average_precision: 0.36
2025-07-02T10:09:18     INFO    * brier_score_loss: 0.278
2025-07-02T10:09:18     INFO     
2025-07-02T10:09:18     INFO    [OK] Algorithm execution finished succesfully
2025-07-02T10:09:18     INFO    
2025-07-02T10:09:19     INFO    [CLOSING EIS TOOLKIT]
             
2025-07-02T10:09:19     INFO    Results: {'average_precision': 0.36, 'brier_score_loss': 0.278, 'log_loss': 0.752, 'roc_auc': 0.347}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions