Learning for infinitely divisible GARCH models in option pricing