The idea is that you learn a model by calculating the derivative of free energy with respect to your model parameters.
I was talking about learning the model structure also.
The idea is to 'carve' out the structure of your model using free energy minimization.