|
Methods defined here:
- __delitem__(self, i)
- Remove the descriptor number i ( x.__delitem__(i) <==> del x[i] ).
- __getitem__(self, i)
- Return the string of descriptor number i, empty string if
it does not exist (x.__getitem__(i) <==> x[i]).
- __init__(self, **kw)
- Keyword argument:
fic -- Build from filename fic;
fprop -- Build from Lproportion file of name fprop;
str -- Build from string str;
alpha -- alph (with keyword str), uses alphabet alpha.
- __iter__(self)
- Iterator on descriptors. Use: for element in l.
- __len__(self)
- Return the number of descriptors.
- __setitem__(self, i, st)
- Add a descriptor to a specific number, or a descriptor pattern
to a specific tuple.
- __str__(self)
- (x.__str__()<==> str(x))
- fenetre(self, D, t, p)
- On data D, return the list of best predictions on a sliding
window of size t with slidings steps of size p.
- is_empty(self)
- ls_evalue(self, D, **kw)
- Return the dictionnary {tuple of descriptors
numbers:prediction of this (pattern of) descriptor on D}.
Keyword arguments:
deb -- first position of the computed segment of the data (default:0);
fin -- last position of the computed segment of the date
(default: the last one).
- ls_num(self)
- Return the list of descriptors numbers.
- met_au_net(self)
- Remove identical patterns and repetitions in patterns.
- prediction(self, D, **kw)
- Return the prediction of the best descriptor on data D,
Keyword arguments:
deb -- first position of the computed segment of the data (default:0);
fin -- last position of the computed segment of the date
(default: the last one).
- read_Lprop(self, lp)
- Build from Lproportion lp. Compute automatically
log-probabilites, or -10000 if log not possible.
- read_nf(self, nf, ns='')
- Build from filename nf and alphabet ns="".
- read_prop(self, p)
- Build from Proportion p. Compute automatically
log-probabilites, or -10000 if log not possible.
- read_str(self, nf, ns='')
- Build from string nf and alphabet ns="".
|