Course 3 Week 1 Exercise 6 First value

mu = params_dict[?][feature_name][‘mu’]
The first value I don’t know where I get it, there are 4 iterations in the for and three keys in train_params, I know they repeat four times one by feature name, but I don’t get it.

Each item in params_dict has three keys:

  • The breed. That is passed to the prob_of_X_given_C() function. Use it as-is.
  • The feature name. That comes from the “match” statement.
  • The statistical parameter. That varies depending on the feature name. Choices include “mu”, “sigma”, “n”, “p”, “a”, and “b”.
1 Like