We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, in the code you provide for Thompson sampling I don't understand the following:
def get_satisfaction_from_true_distribution(self): s = np.random.normal(self.mu, self.sigma) self.n += 1 self.sum_satisfaction += s return s
In the first line we're just returning a value sampled from the true distribution of Restaurant satisfaction, but then why do you write:
Restaurant
self.n += 1 self.sum_satisfaction += s
n is not defined in the class variables, raising an error.. and the same holds for sum_satisfaction..
n
sum_satisfaction
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello, in the code you provide for Thompson sampling I don't understand the following:
In the first line we're just returning a value sampled from the true distribution of
Restaurant
satisfaction, but then why do you write:n
is not defined in the class variables, raising an error.. and the same holds forsum_satisfaction
..The text was updated successfully, but these errors were encountered: