Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Task 4: maximum utility given a piece of evidence The formula is E (046) = max E (ale). Calculate the expected utility for each possible
Task 4: maximum utility given a piece of evidence The formula is E (046) = max\" E (ale). Calculate the expected utility for each possible action and choose the maximum. You are supposed to complete the function getMaxEUFull in the valueOfInfo.py le. There are ve input parameters for the function getMaxEUFull. (a) evidence A string indicating the evidence 6 you collected. It can be input as None. If e _j is input as None, use the prior to calculate E (a). (b) prior A dictionary representing the probability distribution before any new evidence is collected. The keys of dictionary are the possible states 5 and the values of the dictionary are the corresponding probability p(s). (c) likelihoodTable A nested dictionary representing the likelihood for each evidence P(e|s). The dictionary is in the format of {e : {.5 : {P(e|s)}}. (d) rewardTable A dictionary representing the reward from taking action a in state .9. It is represented as {s : {a : R(a,s)}}. (e) actionSpace A list of all possible actions The return value of the function getMaxEUFull is a scalar representing the maximum expected utility after receiving 63-. E(a|ej). You should use the getEU function. The getMaxEUFull function will be transformed in the main function to only take parameters \"test\" and \"evidence\
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started