class_docstr: Test behaviour of classification_report
docstr: Classification Report on a node with no parents should reflect that predictions are on modal state
docstr_tok: ["Classification","Report","on","a","node","with","no","parents","should","reflect","that","predictions","are","on","modal","state"]
code: def test_report_on_node_with_no_parents_based_on_modal_state(
      self, bn, train_data_discrete
  ):
      """Classification Report on a node with no parents should reflect that predictions are on modal state"""
  
      report = classification_report(bn, train_data_discrete, "d")
  
      assert (
          report["d_False"]["recall"] == 1
      )  # always predicts most likely class
      assert report["d_True"]["recall"] == 0
  
imports: import math
  import random
  import numpy
  import pandas
  from causalnex.evaluation import classification_report, roc_auc
  from causalnex.network import BayesianNetwork
  from causalnex.structure.notears import from_pandas
  from causalnex.structure.structuremodel import StructureModel
label_desc: Use image node_id 3 for calling the TestClassificationReport obj's underlying member method code with example usage: obj.test_report_on_node_with_no_parents_based_on_modal_state(bn, train_data_discrete) without return types