First of all I would advise you not to get too panicky. This kind of anomaly is seen in many persons on some exercise programs. Any weight loss programme requires lots of patience and consistent efforts.
You should first determine if what you're gaining is actually fat or muscle. Muscle has more density than fat. So, even if you gain muscle mass, you might observe an increase in weight. Also the rate at which you are gaining muscle mass might be greater than the rate of loss in body fat. Hence, you should not entirely depend on a weighing scale to assess your progress.
You should get your body fat regularly tested along with taking measurements of your chest, waist, hips, arms and thighs. If you are losing inches, it is definitely a good indication.
Even if you realize that you are gaining fat, there are certain options you can explore. You should closely monitor your calories intake. There should be balanced intake. Both too much and too little calorie intake can be counterproductive. Perhaps you should be maintaining a food chart for yourself.
You should consult your doctor for a complete medical examination to rule out any other medical conditions and get your thyroid status checked. You should also consult a dietician for a proper diet chart.
The one thing I notic about your diet is walnuts and raisons as those are both high calorie in comparison to the amount of food it is.