[Biojava-dev] Proposal to change DP interface
David Huen
smh1008 at cus.cam.ac.uk
Mon Dec 8 06:14:11 EST 2003
On Monday 08 Dec 2003 9:27 am, mark schreiber wrote:
> Hi -
>
> Would it be possible to overload the method and keep the old one as well?
> You could throw a bioexception if the old method is used for a single
> head model if you wish.
>
OK, I'll do it that way. It's quite easily accomodated.
There is an equivalent issue in AbstractTrainer:-
singleSequenceIteration(ModelTrainer trainer, SymbolList symList)
to:-
singleSequenceIteration(ModelTrainer trainer, SymbolList [] symList)
If I modified AbstractTrainer to be able to cope with either single or
twohead models then modified the classes that derive from it in BJ to the
new API, would I need to keep the old method in here too? i.e. has anyone
written their own AbstractTrainer-derived classes? (In one sense the name
of this method is no longer appropriate. Would something like
SingleCaseIteration be better but that may also break things).
I'm doing this to try to get in a single/twohead Viterbi trainer.
Regards,
david huen
More information about the biojava-dev
mailing list