BlinkTuneResult#
- class pypillometry.signal.BlinkTuneResult(params, tuned, start, loss, loss_start, test_loss, test_loss_start, success, bounds, history, n_blinks=0, n_refine=0, n_test=0, n_searches=1, units='samples')[source]#
Bases:
objectResult of tuning the parameters of the interpolation of blinks.
- Attributes:
- paramsdict
the parameters to use: the tuned ones (tuned) if they are better than the starting ones on the blinks that were not used for tuning (or if there are none), otherwise the starting ones (start)
- tuneddict
the tuned parameters
- startdict or None
the parameters the search started with
- loss, loss_startfloat
the error (mean error per blink, see
transplant_error_mahot()) with the tuned and the starting parameters, on the blinks that were used for tuning (for the search and for the refinement)- test_loss, test_loss_startfloat
the same on the blinks that were not used for tuning (NaN without)
- successbool
whether the tuned parameters are used (see params)
- boundsdict
the search range (lower, upper) of each value
- historydict
all evaluated parameters: one array per value (
"smooth_winsize","rate_onset","rate_offset","margin_before","margin_after","blinkwindow"), their"loss"and the"stage"(1: search on a set of train, 2: choice and refinement; the losses are on different blinks) and the"search"(index of the set of train; -1 in stage 2)- n_blinks, n_refine, n_testint
number of transplanted blinks used for the searches (all sets), for the refinement (in addition) and for testing
- n_searchesint
number of searches (sets of train)
- unitsstr
units of the parameters, the bounds and the history:
"samples", or"ms"(as the arguments ofblinks_interpolate())
Details