Python and Hidden Markov Model

Discussion in 'Python' started by subhabangalore@gmail.com, Mar 7, 2013.

  1. Guest

    Dear Group,

    I was trying to learn Hidden Markov Model. In Python there are various packages, but I was willing to do some basic calculation starting from the scratch so that I can learn the model very aptly. Do you know of any thing such?

    Thanking you in Advance,
    Regards,
    Subhabrata.
     
    , Mar 7, 2013
    #1
    1. Advertising

  2. Dave Angel Guest

    On 03/07/2013 03:48 PM, wrote:
    > Dear Group,
    >
    > I was trying to learn Hidden Markov Model. In Python there are various packages, but I was willing to do some basic calculation starting from the scratch so that I can learn the model very aptly. Do you know of any thing such?
    >


    I'm sorry, but I'm having trouble figuring out what you're asking for.
    You said there are packages that could help, but that you want to learn
    more by doing it from scratch. So what then are you asking for, if not
    packages, sample code or something that's not "from scratch" ?


    --
    DaveA
     
    Dave Angel, Mar 8, 2013
    #2
    1. Advertising

  3. On 7 March 2013 20:48, <> wrote:
    > Dear Group,
    >
    > I was trying to learn Hidden Markov Model. In Python there are various packages, but I was willing to do some basic calculation starting from the scratch so that I can learn the model very aptly. Do you know of any thing such?


    This question is not really appropriate on this list. Since this isn't
    the first time you've asked relatively specialist questions here, I'll
    suggest that you consider asking somewhere else in future. I would
    start by looking at lists that are dedicated to scientific
    programming.

    Whether you ask here or somewhere else you'll need to be clearer about
    what you actually want to do and why you are asking the list. Are you
    looking to run stochastic simulations? Or is your problem to do with
    model validation or inference of hidden state using data? Or something
    else? Are you thinking of discrete or continuous time Markov systems?
    Why are you currently unable to do whatever it is that you wanted to
    do?


    Oscar
     
    Oscar Benjamin, Mar 8, 2013
    #3
  4. Guest

    On Friday, March 8, 2013 2:18:06 AM UTC+5:30, wrote:
    > Dear Group,
    >
    >
    >
    > I was trying to learn Hidden Markov Model. In Python there are various packages, but I was willing to do some basic calculation starting from the scratch so that I can learn the model very aptly. Do you know of any thing such?
    >
    >
    >
    > Thanking you in Advance,
    >
    > Regards,
    >
    > Subhabrata.


    Dear Sir,

    Thank you for your kind reply. I agree with most of your points but I differ slightly

    also.

    My problem is over model validation on continuous time Markov system.
    Generally, I understand the theory and can run the kits like HMM.py or Scikit-learn.
    The problem is if I can not fit the data in run time I would be at the mercy of the kit.
    So I wanted to know the coding of the computation.

    I am specifically looking at the small python example of Forward, Backward and Viterbi

    calculation.
    I tried to surf the web but did not help much. I do not know much of Scientific forum.

    I thought as HMM.py, NLTK, Scikit-learn are Python implementations so there would be lot

    of people in the room who would know it.

    And I got people like you, so I can not say I am wrong!

    Regards,
    Subhabrata.
     
    , Mar 8, 2013
    #4
  5. On 8 March 2013 05:26, <> wrote:
    > On Friday, March 8, 2013 2:18:06 AM UTC+5:30, wrote:
    >>
    >> I was trying to learn Hidden Markov Model. In Python there are various packages, but I was willing to do some basic calculation starting from the scratch so that I can learn the model very aptly. Do you know of any thing such?

    >
    > My problem is over model validation on continuous time Markov system.
    > Generally, I understand the theory and can run the kits like HMM.py or Scikit-learn.
    > The problem is if I can not fit the data in run time I would be at the mercy of the kit.
    > So I wanted to know the coding of the computation.


    If those projects can do what you want then why not just look at their code?

    > I am specifically looking at the small python example of Forward, Backward and Viterbi
    > calculation. I tried to surf the web but did not help much.


    How about these two (both in Python):
    http://en.wikipedia.org/wiki/Viterbi_algorithm#Example
    http://en.wikipedia.org/wiki/Forward–backward_algorithm#Python_example

    > I do not know much of Scientific forum.

    Try scipy-user as a start (someone there may know of a better mailing list):
    http://mail.scipy.org/mailman/listinfo/scipy-user

    > I thought as HMM.py, NLTK, Scikit-learn are Python implementations so there would be lot
    > of people in the room who would know it.
    > And I got people like you, so I can not say I am wrong!


    Python as a programming language is used for many different things. I
    doubt that many people on this list will know what a Hidden Markov
    Model is. While I do know what they are, I have never done anything
    with them in Python or otherwise. However, if you ask in the right
    place, I'm sure that you will find people who have done similar things
    in Python.


    Oscar
     
    Oscar Benjamin, Mar 8, 2013
    #5
  6. Subhabrata Guest

    On Mar 8, 7:29 pm, Oscar Benjamin <> wrote:
    > On 8 March 2013 05:26,  <> wrote:
    >
    > > On Friday, March 8, 2013 2:18:06 AM UTC+5:30, wrote:

    >
    > >> I was trying to learn Hidden Markov Model. In Python there are variouspackages, but I was willing to do some basic calculation starting from thescratch so that I can learn the model very aptly. Do you know of any thingsuch?

    >
    > > My problem is over model validation on continuous time Markov system.
    > > Generally, I understand the theory and can run the kits like HMM.py or Scikit-learn.
    > > The problem is if I can not fit the data in run time I would be at the mercy of the kit.
    > > So I wanted to know the coding of the computation.

    >
    > If those projects can do what you want then why not just look at their code?
    >
    > > I am specifically looking at the small python example of Forward, Backward and Viterbi
    > > calculation. I tried to surf the web but did not help much.

    >
    > How about these two (both in Python):http://en.wikipedia.org/wiki/Viterb...dia.org/wiki/Forward–backward_algorithm#Pytho...
    >
    > > I do not know much of Scientific forum.

    >
    > Try scipy-user as a start (someone there may know of a better mailing list):http://mail.scipy.org/mailman/listinfo/scipy-user
    >
    > > I thought as HMM.py, NLTK, Scikit-learn are Python implementations so there would be lot
    > > of people in the room who would know it.
    > > And I got people like you, so I can not say I am wrong!

    >
    > Python as a programming language is used for many different things. I
    > doubt that many people on this list will know what a Hidden Markov
    > Model is. While I do know what they are, I have never done anything
    > with them in Python or otherwise. However, if you ask in the right
    > place, I'm sure that you will find people who have done similar things
    > in Python.
    >
    > Oscar


    Thank you Sir for your kind time. I would surely check them. Regards,
    Subhabrata.
     
    Subhabrata, Mar 8, 2013
    #6
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    7
    Views:
    569
  2. kpp9c

    markov query

    kpp9c, Mar 14, 2006, in forum: Python
    Replies:
    5
    Views:
    505
    Robert Kern
    Mar 15, 2006
  3. kpp9c
    Replies:
    8
    Views:
    316
    Max M
    Mar 16, 2006
  4. Replies:
    2
    Views:
    323
  5. Replies:
    0
    Views:
    118
Loading...

Share This Page