Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/b/i/biopython-1.63/Tests/test_HMMCasino.py   biopython(Download)
# -- Standard Training with known states
print("Training with the Standard Trainer...")
known_training_seq = Trainer.TrainingSequence(rolls, states)
 
trainer = Trainer.KnownStateTrainer(standard_mm)
# -- Baum-Welch training without known state sequences
print("Training with Baum-Welch...")
training_seq = Trainer.TrainingSequence(rolls, Seq("", DiceTypeAlphabet()))
 
trainer = Trainer.BaumWelchTrainer(baum_welch_mm)

src/b/i/biopython-HEAD/Tests/test_HMMCasino.py   biopython(Download)
# -- Standard Training with known states
print("Training with the Standard Trainer...")
known_training_seq = Trainer.TrainingSequence(rolls, states)
 
trainer = Trainer.KnownStateTrainer(standard_mm)
# -- Baum-Welch training without known state sequences
print("Training with Baum-Welch...")
training_seq = Trainer.TrainingSequence(rolls, Seq("", DiceTypeAlphabet()))
 
trainer = Trainer.BaumWelchTrainer(baum_welch_mm)

src/b/i/biopython-1.63/Tests/test_HMMGeneral.py   biopython(Download)
        emission_seq = Seq("ABB", LetterAlphabet())
        state_seq = Seq("", NumberAlphabet())
        training_seq = Trainer.TrainingSequence(emission_seq, state_seq)
 
        # finally set up the DP

src/b/i/biopython-HEAD/Tests/test_HMMGeneral.py   biopython(Download)
        emission_seq = Seq("ABB", LetterAlphabet())
        state_seq = Seq("", NumberAlphabet())
        training_seq = Trainer.TrainingSequence(emission_seq, state_seq)
 
        # finally set up the DP