MyCaffe
1.12.2.41
Deep learning software for Windows C# programmers.
|
The BeamSearch uses the softmax output from the network and continually runs the net on each output (using the output as input) until the end of token is reached. The beam-search tree is returned. More...
Public Member Functions | |
BeamSearch (Net< T > net) | |
The constructor. More... | |
List< Tuple< double, bool, List< Tuple< string, int, double > > > > | Search (PropertySet input, int nK, double dfThreshold=0.01, int nMax=80) |
Perform the beam-search. More... | |
The BeamSearch uses the softmax output from the network and continually runs the net on each output (using the output as input) until the end of token is reached. The beam-search tree is returned.
T |
Definition at line 18 of file BeamSearch.cs.
MyCaffe.common.BeamSearch< T >.BeamSearch | ( | Net< T > | net | ) |
The constructor.
net | Specifies the net used for the forward passes. |
Definition at line 27 of file BeamSearch.cs.
List< Tuple< double, bool, List< Tuple< string, int, double > > > > MyCaffe.common.BeamSearch< T >.Search | ( | PropertySet | input, |
int | nK, | ||
double | dfThreshold = 0.01 , |
||
int | nMax = 80 |
||
) |
Perform the beam-search.
input | Specifies the input data (e.g. the encoder input) |
nK | Specifies the beam width for the search. |
dfThreshold | Specifies the threshold where detected items with probabilities less than the threshold are ignored (default = 0.01). |
nMax | Specifies the maximum length to process (default = 80) |
The beam-search algorithm is inspired by the article
Definition at line 56 of file BeamSearch.cs.