How to calculate ctc probability for given input and expected output

0 votes
I'm doing my first tensorflow project.

I need to get ctc probability (not ctc loss) for given input and my expected sequences.

Is there any api or ways to do it in python or c++?

I prefer python side, but c++ side is also okay.
Mar 15 in Machine Learning by Nandini
• 5,480 points
201 views

1 answer to this question.

0 votes
The loss for a batch is defined as sum (log (p (z| x)) over all samples (x, z) in this batch, according to Graves work (1. With a batch size of 1, you will admit log (p (z| x), which is the log- probability of seeing the labelling z given the inputx.| With a batch size of 1, you will admit log (p (z| x), which is the log- probability of seeing the labelling z given the inputx. TensorFlow's ctc loss function can be used to negotiate this.
 You can alternately use the Forward-Backward Algorithm described in Section4.1 of the paper (1) to apply the essential bits yourself. It's possible to employ a introductory perpetration for bitsy input sequences by generating the paths indicated in Figure 3 and also casting over all of those paths in the RNN affair. I fulfilled this for a 16- character sequence and a 100- character sequence. The naive fashion was sufficient for the first, but the handed dynamic programming approach was needed for the alternate.
 (1) Connectionist Temporal Bracket Using Intermittent Neural Networks to Marker Unsegmented Sequence Data
answered Mar 17 by Dev
• 6,000 points

Related Questions In Machine Learning

0 votes
1 answer
0 votes
1 answer

How to compare expected and predicted values?

The predict() function returns a plain numpy ...READ MORE

answered Jul 14, 2019 in Machine Learning by Tina
8,908 views
0 votes
1 answer
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 3,138 views
0 votes
1 answer
0 votes
1 answer

How to simulate first passage time probability in python for a random walk?

To begin with, you're now computing fp ...READ MORE

answered Apr 5 in Machine Learning by Dev
• 6,000 points
440 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP