Logic change: whenever there is a change in algorithm through setter, it is checked right after the setter so we don't need to do it in fit which is the original reason for the checkAlgorithm() to be there.
Add optional argument for algorithm in Python code. We can now change the algorithm like in the following example:
Make the global variables explicit by using this-> pointer function.
I have fixed the following:
Logic change: whenever there is a change in
algorithm
throughsetter
, it is checked right after thesetter
so we don't need to do it infit
which is the original reason for thecheckAlgorithm()
to be there.Add optional argument for
algorithm
in Python code. We can now change the algorithm like in the following example:Make the global variables explicit by using
this->
pointer function.