MCPcopy Create free account
hub / github.com/InternScience/SciReason / eb_ex

Function eb_ex

opencompass/datasets/musr/tree.py:566–628  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

564 print(rep)
565
566 def eb_ex():
567 root_structure = [
568 LogicNode('',
569 operator=LogicNodeOperatorType.CHOOSE,
570 prunable=False,
571 can_be_leaf=False)
572 ]
573
574 n = LogicNode('Eruptions block sunlight.',
575 operator=LogicNodeOperatorType.CHOOSE,
576 prunable=False,
577 can_be_leaf=False,
578 frozen=True)
579 n.children = [
580 LogicNode('Eruptions produce ash clouds.',
581 operator=LogicNodeOperatorType.CHOOSE,
582 prunable=False,
583 can_be_leaf=True,
584 frozen=True),
585 LogicNode('Ash blocks sunlight.',
586 operator=LogicNodeOperatorType.CHOOSE,
587 prunable=False,
588 can_be_leaf=True,
589 frozen=True),
590 ]
591
592 g = LogicNode('Eruptions can cause plants to die.',
593 operator=LogicNodeOperatorType.CHOOSE,
594 prunable=True,
595 can_be_leaf=False,
596 frozen=True)
597
598 g.children = [
599 n,
600 LogicNode('Producers will die without sunlight.',
601 operator=LogicNodeOperatorType.CHOOSE,
602 prunable=False,
603 can_be_leaf=True,
604 frozen=True)
605 ]
606
607 l = LogicNode('',
608 operator=LogicNodeOperatorType.AND,
609 prunable=False,
610 can_be_leaf=False)
611 l.children = [g]
612
613 root_structure[0].children = [l]
614
615 tree = LogicTree(depth=5,
616 root_structure=root_structure,
617 bf_factor={
618 1: 0.3,
619 2: 0.7
620 },
621 chance_of_or=0.0,
622 chance_of_cs_fact=0.0,
623 chance_to_prune_all=0.0,

Callers 1

tree.pyFile · 0.85

Calls 3

print_for_gptMethod · 0.95
LogicNodeClass · 0.85
LogicTreeClass · 0.85

Tested by

no test coverage detected