In unsupervised learning, the primary task is:
a) Predicting an output value based on input data
b) Discovering patterns or structures in data
c) Maximizing cumulative rewards through interactions with the environment
d) Learning from expert demonstrations