-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathanalysis.py
38 lines (29 loc) · 1.32 KB
/
analysis.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# analysis.py
# -----------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley.edu.
#
# Attribution Information: The Pacman AI projects were developed at UC Berkeley.
# The core projects and autograders were primarily created by John DeNero
# ([email protected]) and Dan Klein ([email protected]).
# Student side autograding was added by Brad Miller, Nick Hay, and
# Pieter Abbeel ([email protected]).
######################
# ANALYSIS QUESTIONS #
######################
# For the Bayes' Nets, query variables, and evidence given in the
# website, return the set of variables that can be ignored when
# performing inference.
# Do not include evidence variables.
def question5a():
ignoredVariables = ['W', 'G']
# Example solution : ignoredVariables = ['E', 'G'] (order does not matter so ['G','E'] is also the same)
return ignoredVariables
def question5b():
ignoredVariables = ['H','I','A']
return ignoredVariables
def question5c():
ignoredVariables = ['X6','X5','X4','X3','X2','X1','Y4','Y3','Y2','Y1','Y7','Y6','Y5','Y8','Y12','Y13','Y14']
return ignoredVariables