Fix theta parameter availability
When using the HomotopyMixin, a call to self.parameters() would fail in pre(), because the parameter __theta was only initialized in the optimize() call.
When using the HomotopyMixin, a call to self.parameters() would fail in pre(), because the parameter __theta was only initialized in the optimize() call.