93671933a1cb70b162add89159317ecb437126d6,src/BayesianModel/BayesianModel.py,BayesianModel,_no_missing_states,#BayesianModel#,270
Before Change
_all_states.add(state["name"])
missing_states = _all_states - set(states)
if missing_states:
raise Exceptions.MissingStatesError(missing_states)
else:
return True
def _no_extra_states(self, node, states):
"Returns True if the argument states contains only the states
present in Node.
After Change
>>> bayesian_model._no_missing_states("difficulty", ("hard", "easy"))
True
if sorted(self.node[node]["_states"]) == sorted(states):
return True
else:
raise Exceptions.MissingStatesError(set(self.node[node]["_states"]) - set(states))

In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: pgmpy/pgmpy
Commit Name: 93671933a1cb70b162add89159317ecb437126d6
Time: 2014-01-01
Author: ankurankan@gmail.com
File Name: src/BayesianModel/BayesianModel.py
Class Name: BayesianModel
Method Name: _no_missing_states
Project Name: scikit-optimize/scikit-optimize
Commit Name: dbc0f24b39c2e2725682485a68586b3f0fa6bafc
Time: 2017-07-02
Author: iaroslav.email@gmail.com
File Name: skopt/searchcv.py
Class Name: BayesSearchCV
Method Name: fit
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 3397e6bfd55584c62d64911ecdaf588ca3469b79
Time: 2020-04-01
Author: 31518063+kurtisvg@users.noreply.github.com
File Name: noxfile-template.py
Class Name:
Method Name: