Package: timesift 0.3.1

Gilles Colling

timesift: Learn Predictive Representations of Time-Varying Data

Fits and compares representations of time-varying data against a prediction target. Given a table of targets and a table of time-stamped series belonging to them, it builds each candidate representation, from the record unreduced through a calendar grain such as a week or a month to a lookback anchored on each target, fits the requested learners on each, scores every candidate on one set of held-out folds, and stacks the out-of-fold predictions into an ensemble. Calendar-aware binning keeps a bin a real week or month rather than a fixed block of hours. Learners, response heads and metrics are registered rather than hard-coded, so adding one is a registration and not a fork of the fitting code. The penalised baseline is an elastic net fitted by cyclic coordinate descent along a warm-started path, following Friedman, Hastie and Tibshirani (2010) <doi:10.18637/jss.v033.i01>. The shipped default is presence-absence with a joint multi-label head scored by the true skill statistic of Allouche, Tsoar and Kadmon (2006) <doi:10.1111/j.1365-2664.2006.01214.x>, the setting used for species distribution modelling from microclimate loggers.

Authors:Gilles Colling [aut, cre, cph]

timesift_0.3.1.tar.gz
timesift_0.3.1.zip(r-4.7-x86_64)timesift_0.3.1.zip(r-4.7-arm64)timesift_0.3.1.zip(r-4.6-x86_64)timesift_0.3.1.zip(r-4.6-arm64)
timesift_0.3.1.tar.gz(r-4.7-arm64)timesift_0.3.1.tar.gz(r-4.7-x86_64)timesift_0.3.1.tar.gz(r-4.6-arm64)timesift_0.3.1.tar.gz(r-4.6-x86_64)
timesift_0.3.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
timesift/json (API)

# Install 'timesift' in R:
install.packages('timesift', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/gcol33/timesift/issues

Pkgdown/docs site:https://gillescolling.com

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

3.00 score 70 exports 8 dependencies

Last updated from:0918701a1f. Checks:10 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK237
linux-devel-x86_64OK276
source / vignettesOK254
linux-release-arm64OK262
linux-release-x86_64OK287
windows-devel-arm64OK399
windows-devel-x86_64OK290
windows-release-arm64OK405
windows-release-x86_64OK309
wasm-releaseOK142

Exports:all_ofany_ofas_siftaverage_precisionbind_channelsbuild_representationcalendar_channelscnncontainscoveragecvdecision_thresholddigest_arrayelasticnetends_withensembleensemble_combineensemble_fitensemble_weightseverythingfeature_matrixfit_learnerfold_mapforestgraingrain_contrastsgrain_laddergrain_matrixgrainsgrouped_cvimplied_skillkappa_scorelearnerlearnerslookbacklookback_matrixlookbacksmatchesmetricsmlpmodel_agreementmultigrainnativeocclusionpaired_contrastpositive_weightsread_cellsread_foldsread_responseregister_learnerregister_metricregister_responserescnnresponsesroc_aucscorable_cellsscore_predictionsselect_grainsimulate_recordsstarts_withstepwisetimesifttimesift_settrain_controltsstss_inflationwherewrite_cellswrite_foldswrite_response

Dependencies:clicpp11gluelifecyclerlangtidyselectvctrswithr

Choosing how a record is read
Two tables | One call | Representations | What a learner may be handed | The split, and the cells a score is defined on | Learners, and how they are trained | The combination | Reading a level honestly | The arrays on their own | An extreme day is not an extreme reading | One grain at a time | What was read

Last update: 2026-10-02
Started: 2026-10-02

Reproducing the Schrankogel grid
What the reproduction needs | The contract | The split and the cells | The seven grains | The two readings of a grain | The channels the encoders are given | The arms | The grid | The procedure the demonstration reports | The environment a fitted encoder carries | The grain contrast | Running it | What the reproduction is checked against

Last update: 2026-10-02
Started: 2026-10-02

Readme and manuals

Help Manual

Help pageTopics
Read and write the artifacts that cross the language boundaryartifacts read_cells read_folds read_response write_cells write_folds write_response
Average precisionaverage_precision
Put channels side by sidebind_channels
Build one representation for a set of targetsbuild_representation
Where in the year, or the day, each bin sitscalendar_channels
Combine learners, or representations, into a setc.timesift_learner c.timesift_models c.timesift_representation c.timesift_sift combine
Which units reach which binscoverage
How the folds are drawncv grouped_cv
The cross-language digest of a representationdigest_array
Penalised regression on the flattened representationelasticnet
How the candidates are combinedensemble
Combine one prediction per member into one predictionensemble_combine
Fit the combiner on the out-of-fold predictionsensemble_fit
The weights the combiner fittedensemble_weights
Bring an already-reduced feature table into a ladderfeature_matrix
Fit one learner at one grainfit_learner predict.timesift_fit
Assign units to cross-validation foldsfold_map
Random forest on the flattened representationforest
Compare every grain against a learner's best onegrain_contrasts
Fit at every grain and see where skill saturatesgrain_ladder summary.timesift_ladder
Reduce sensor series to a temporal graingrain_matrix
Several representations to run the same learners acrossas_sift grains lookbacks
What population skill a reported level is consistent withimplied_skill
Cohen's kappa, and where two models disagreedecision_threshold kappa_score model_agreement
Define a learnerlearner
Reduce sensor series to a lookback anchored on each targetlookback_matrix
How a series becomes an array a learner readsgrain lookback multigrain native
What part of the record a fitted model readsocclusion occlusion.default occlusion.timesift occlusion.timesift_ladder
Compare two arms cell by cellpaired_contrast
Draw a runplot.timesift
Draw a ladderplot.timesift_ladder
Draw how stable the choice of grain wasplot.timesift_selection
Case weights that balance a rare responsepositive_weights
Predict from a fitted timesiftpredict.timesift
Register a learnerlearners register_learner
Register a metricmetrics register_metric
Register a response headregister_response responses
The area under the ROC curveroc_auc
Which cells a score is defined onscorable_cells
Score held-out predictions on the cells the mask allowsscore_predictions
Choose the grain inside the training data, and score the whole procedureselect_grain summary.timesift_selection
Simulate sensor records whose response acts at a known temporal grainsimulate_records
Forward selection by AIC on the flattened representationstepwise
Fit and compare representations of time-varying datatimesift
What a run foundprint.timesift print.timesift_summary summary.timesift timesift_report
Several built representations of the same targetstimesift_set
Sequence encoders with a joint multi-label headcnn mlp rescnn torch_learners
Training settings every neural learner readstrain_control
The true skill statistictss
How much a self-selected threshold inflates the reported leveltss_inflation