MushroomRL / mushroom-rl

Python library for Reinforcement Learning.
MIT License
803 stars 145 forks source link

Update linear.py #146

Open Katze2664 opened 3 months ago

Katze2664 commented 3 months ago

Simpler prediction using np.matmul (Apologies if this code doesn't work in a way that I've overlooked.)

boris-il-forte commented 1 week ago

I need to check this in detail. This was done a long ago and I don't remember if there was a reason behind this choice. The solution proposed (matrix multiplication) seems to be the most straightforward one, but I guess it can have issues with higher dimensions. It may still work but I need to be sure before merging.