I am trying to implement a restricted boltzmann machine in C++. I am using this Python code as a guide: https://github.com/echen/restricted-boltzmann-machines/blob/master/rbm.py
This is Line 37:
pos_hidden_states = pos_hidden_probs > np.random.rand(num_examples, self.num_hidden + 1)
pos_hidden_states and pos_hidden_probs are both 2D matrices, of type vector<vector<double>>
in C++, and num_examples and num_hidden are both integers.
Could anyone explain what the greater-than symbol means here?