diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml index 3fb334c..97f28ff 100644 --- a/.github/workflows/static-analysis.yml +++ b/.github/workflows/static-analysis.yml @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index c8582af..fdb7375 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -1,6 +1,6 @@ diff --git a/README.md b/README.md index dc94313..c320c96 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# SensorTSLM Core Framework +# TimeCap Core Framework Dataset-agnostic captioning pipeline for sensor time-series data. diff --git a/aggregators.py b/aggregators.py index a6d7d91..a61082c 100644 --- a/aggregators.py +++ b/aggregators.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/annotator.py b/annotator.py index 7a94ae9..9358936 100644 --- a/annotator.py +++ b/annotator.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/captionizer.py b/captionizer.py index 963dc29..8dcb3af 100644 --- a/captionizer.py +++ b/captionizer.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/curriculum_learning.py b/curriculum_learning.py index e225c8e..5f68971 100644 --- a/curriculum_learning.py +++ b/curriculum_learning.py @@ -1,10 +1,10 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # -"""Multi-stage curriculum learning trainer for SensorTSLM. +"""Multi-stage curriculum learning trainer for TimeCap. Supports both OpenTSLMSP and OpenTSLMFlamingo model types with automatic checkpoint management, knowledge transfer between stages, and LoRA @@ -655,7 +655,7 @@ def run_curriculum( def main(): - parser = argparse.ArgumentParser(description="SensorTSLM Curriculum Learning") + parser = argparse.ArgumentParser(description="TimeCap Curriculum Learning") parser.add_argument( "--model", required=True, diff --git a/detectors/__init__.py b/detectors/__init__.py index 7fbb98b..9c70c89 100644 --- a/detectors/__init__.py +++ b/detectors/__init__.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/detectors/spike.py b/detectors/spike.py index cb1bba2..27aa50f 100644 --- a/detectors/spike.py +++ b/detectors/spike.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/detectors/trend.py b/detectors/trend.py index 7d10f31..96fba49 100644 --- a/detectors/trend.py +++ b/detectors/trend.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/evaluation/README.md b/evaluation/README.md index c5613aa..22f32a0 100644 --- a/evaluation/README.md +++ b/evaluation/README.md @@ -15,7 +15,7 @@ MHC-benchmark repo at `~/MHC-benchmark`. | Weekly HF dataset (stride=7) | `$SCRATCH/mhc-benchmark-weekly_hf_stride7/` | [1] | | Captioned arrow shards | `$SCRATCH/exports/lean_full_stride7/shard_{0..3}/recordings_*.arrow` | [2] | | Labels lookup parquet | `$SCRATCH/weekly_labels_lookup_ours_stride7.parquet` | [3] | -| OpenAI API key | `~/SensorTSLM/.env` (`OPENAI_API_KEY=...`) | manual | +| OpenAI API key | `~/TimeCap/.env` (`OPENAI_API_KEY=...`) | manual | Upstream MHC-benchmark deps (one-time DVC pulls inside `~/MHC-benchmark`, using its conda env): @@ -48,7 +48,7 @@ srun --mem=32G -c 4 -t 02:30:00 -p normal bash -c ' Four parallel sbatch jobs, ~30 min total. ```bash -cd ~/SensorTSLM +cd ~/TimeCap export MHC_WEEKLY_DATASET_DIR=$SCRATCH/mhc-benchmark-weekly_hf_stride7 export TOTAL_ROWS=156428 ./scripts/export_captions_sharded.sh weekly 4 $SCRATCH/exports/lean_full_stride7 @@ -98,7 +98,7 @@ srun --mem=16G -c 2 -t 00:15:00 -p normal bash -c ' export MHC_EXPORT_DIR=$SCRATCH/exports/lean_full_stride7 && \ export MHC_LABELS_PATH=$SCRATCH/weekly_labels_lookup_ours_stride7.parquet && \ export MAX_SAMPLES=5 && \ - cd ~/SensorTSLM && \ + cd ~/TimeCap && \ python evaluation/run_eval.py --task biological_sex --model gpt-4o ' ``` diff --git a/evaluation/__init__.py b/evaluation/__init__.py index 4d6db2e..7e5057b 100644 --- a/evaluation/__init__.py +++ b/evaluation/__init__.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/evaluation/evaluator.py b/evaluation/evaluator.py index b7191bd..fe06cc8 100644 --- a/evaluation/evaluator.py +++ b/evaluation/evaluator.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/evaluation/io/__init__.py b/evaluation/io/__init__.py index 4d6db2e..7e5057b 100644 --- a/evaluation/io/__init__.py +++ b/evaluation/io/__init__.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/evaluation/io/writer.py b/evaluation/io/writer.py index e13b886..439822a 100644 --- a/evaluation/io/writer.py +++ b/evaluation/io/writer.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/evaluation/metrics/__init__.py b/evaluation/metrics/__init__.py index 4d6db2e..7e5057b 100644 --- a/evaluation/metrics/__init__.py +++ b/evaluation/metrics/__init__.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/evaluation/metrics/classification.py b/evaluation/metrics/classification.py index d322cec..8090c84 100644 --- a/evaluation/metrics/classification.py +++ b/evaluation/metrics/classification.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/evaluation/run_eval.py b/evaluation/run_eval.py index db24c83..c1bdbec 100644 --- a/evaluation/run_eval.py +++ b/evaluation/run_eval.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/evaluation/tasks/__init__.py b/evaluation/tasks/__init__.py index 4d6db2e..7e5057b 100644 --- a/evaluation/tasks/__init__.py +++ b/evaluation/tasks/__init__.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/evaluation/tasks/base.py b/evaluation/tasks/base.py index 0bbdcfb..3ec507b 100644 --- a/evaluation/tasks/base.py +++ b/evaluation/tasks/base.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/evaluation/tasks/metabolic.py b/evaluation/tasks/metabolic.py index 87cbb16..e9aa129 100644 --- a/evaluation/tasks/metabolic.py +++ b/evaluation/tasks/metabolic.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/explorer.py b/explorer.py index bcae549..6126ea4 100644 --- a/explorer.py +++ b/explorer.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/exporters/lean.py b/exporters/lean.py index 6abcab2..c808b4d 100644 --- a/exporters/lean.py +++ b/exporters/lean.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/extractors/__init__.py b/extractors/__init__.py index 47727c2..d461659 100644 --- a/extractors/__init__.py +++ b/extractors/__init__.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/extractors/cross_channel.py b/extractors/cross_channel.py index df08f21..bbf2443 100644 --- a/extractors/cross_channel.py +++ b/extractors/cross_channel.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/extractors/generative.py b/extractors/generative.py index a57980d..067f100 100644 --- a/extractors/generative.py +++ b/extractors/generative.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/extractors/semantic.py b/extractors/semantic.py index f6c00cf..1d00430 100644 --- a/extractors/semantic.py +++ b/extractors/semantic.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/extractors/statistical.py b/extractors/statistical.py index 4fb6b17..3831752 100644 --- a/extractors/statistical.py +++ b/extractors/statistical.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/extractors/structural.py b/extractors/structural.py index 25f41c0..fe6f452 100644 --- a/extractors/structural.py +++ b/extractors/structural.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/mhc/__init__.py b/mhc/__init__.py index ffb184d..41e1c6c 100644 --- a/mhc/__init__.py +++ b/mhc/__init__.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/mhc/constants.py b/mhc/constants.py index a23d01a..578ddd2 100644 --- a/mhc/constants.py +++ b/mhc/constants.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/mhc/cross_channel.py b/mhc/cross_channel.py index 0159397..a358c37 100644 --- a/mhc/cross_channel.py +++ b/mhc/cross_channel.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/mhc/dataset.py b/mhc/dataset.py index 8f7ba83..583d253 100644 --- a/mhc/dataset.py +++ b/mhc/dataset.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/mhc/transformer.py b/mhc/transformer.py index c876153..f1adb39 100644 --- a/mhc/transformer.py +++ b/mhc/transformer.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/mhc_weekly/__init__.py b/mhc_weekly/__init__.py index a1c49dd..bb7f692 100644 --- a/mhc_weekly/__init__.py +++ b/mhc_weekly/__init__.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/mhc_weekly/constants.py b/mhc_weekly/constants.py index 145cf0c..c8a527e 100644 --- a/mhc_weekly/constants.py +++ b/mhc_weekly/constants.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/mhc_weekly/dataset.py b/mhc_weekly/dataset.py index a880ca4..9ab329b 100644 --- a/mhc_weekly/dataset.py +++ b/mhc_weekly/dataset.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/mhc_weekly/transformer.py b/mhc_weekly/transformer.py index 31ae999..17bed8a 100644 --- a/mhc_weekly/transformer.py +++ b/mhc_weekly/transformer.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/models/__init__.py b/models/__init__.py index ebfa73a..024d9d3 100644 --- a/models/__init__.py +++ b/models/__init__.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/models/base.py b/models/base.py index 5346d64..91f7ffd 100644 --- a/models/base.py +++ b/models/base.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/models/client.py b/models/client.py index b750a15..329f6e3 100644 --- a/models/client.py +++ b/models/client.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/models/local.py b/models/local.py index 36a5707..1f1fe3f 100644 --- a/models/local.py +++ b/models/local.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/models/opentslm_native.py b/models/opentslm_native.py index 722378d..d2f77d5 100644 --- a/models/opentslm_native.py +++ b/models/opentslm_native.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/reviewer.py b/reviewer.py index c0f2503..0801783 100644 --- a/reviewer.py +++ b/reviewer.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/scripts/export_captions.py b/scripts/export_captions.py index 0ea5a9a..291b5ae 100644 --- a/scripts/export_captions.py +++ b/scripts/export_captions.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/scripts/export_captions_sharded.sh b/scripts/export_captions_sharded.sh index 6286f4d..39fb518 100755 --- a/scripts/export_captions_sharded.sh +++ b/scripts/export_captions_sharded.sh @@ -1,7 +1,7 @@ #!/bin/bash # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # @@ -18,7 +18,7 @@ # OUT_DIR default $SCRATCH/exports/lean_full (weekly) or lean_daily (daily) # # Optional env overrides: -# REPO_DIR default $HOME/SensorTSLM +# REPO_DIR default $HOME/TimeCap # VENV_DIR default $SCRATCH/sensor-venv (used via sherlock_setup.sh) # TOTAL_ROWS auto-detected for daily; defaults to 615490 for weekly # SPLIT_FILE path to MHC-benchmark sharable_users_seed42_2026.json; when @@ -28,7 +28,7 @@ set -euo pipefail VARIANT="${1:-weekly}" NUM_SHARDS="${2:-4}" -REPO_DIR="${REPO_DIR:-$HOME/SensorTSLM}" +REPO_DIR="${REPO_DIR:-$HOME/TimeCap}" if [ "$VARIANT" = "daily" ]; then DATA_DIR="${MHC_DATASET_DIR:-}" diff --git a/scripts/metabolic_finetune.py b/scripts/metabolic_finetune.py index 9fef9d4..4a9cc3f 100644 --- a/scripts/metabolic_finetune.py +++ b/scripts/metabolic_finetune.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/scripts/sherlock_setup.sh b/scripts/sherlock_setup.sh index f4d45eb..332b421 100755 --- a/scripts/sherlock_setup.sh +++ b/scripts/sherlock_setup.sh @@ -1,7 +1,7 @@ #!/bin/bash # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/synthesizers/__init__.py b/synthesizers/__init__.py index 52ce8b3..ab3daa3 100644 --- a/synthesizers/__init__.py +++ b/synthesizers/__init__.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/synthesizers/_base.py b/synthesizers/_base.py index bfab02d..74c207a 100644 --- a/synthesizers/_base.py +++ b/synthesizers/_base.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/synthesizers/_helper.py b/synthesizers/_helper.py index cec64ce..1fd6374 100644 --- a/synthesizers/_helper.py +++ b/synthesizers/_helper.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/synthesizers/_workout.py b/synthesizers/_workout.py index e09a85b..cb009b6 100644 --- a/synthesizers/_workout.py +++ b/synthesizers/_workout.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/synthesizers/cardio.py b/synthesizers/cardio.py index 022ff93..254490c 100644 --- a/synthesizers/cardio.py +++ b/synthesizers/cardio.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/synthesizers/locomotion.py b/synthesizers/locomotion.py index 1a7e1b6..01719f0 100644 --- a/synthesizers/locomotion.py +++ b/synthesizers/locomotion.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/synthesizers/mind_body.py b/synthesizers/mind_body.py index 14dcd0f..0f6707a 100644 --- a/synthesizers/mind_body.py +++ b/synthesizers/mind_body.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/synthesizers/other_activity.py b/synthesizers/other_activity.py index 9599722..7a686a4 100644 --- a/synthesizers/other_activity.py +++ b/synthesizers/other_activity.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/synthesizers/sleep.py b/synthesizers/sleep.py index cc622c3..941ebea 100644 --- a/synthesizers/sleep.py +++ b/synthesizers/sleep.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/synthesizers/stationary_activity.py b/synthesizers/stationary_activity.py index 9665b66..cfc3f48 100644 --- a/synthesizers/stationary_activity.py +++ b/synthesizers/stationary_activity.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/time_series_datasets/__init__.py b/time_series_datasets/__init__.py index 4d6db2e..7e5057b 100644 --- a/time_series_datasets/__init__.py +++ b/time_series_datasets/__init__.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/time_series_datasets/joint_qa_dataset.py b/time_series_datasets/joint_qa_dataset.py index 377b01c..72d1d21 100644 --- a/time_series_datasets/joint_qa_dataset.py +++ b/time_series_datasets/joint_qa_dataset.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/time_series_datasets/mhc_base_qa_dataset.py b/time_series_datasets/mhc_base_qa_dataset.py index af426c8..5798e5a 100644 --- a/time_series_datasets/mhc_base_qa_dataset.py +++ b/time_series_datasets/mhc_base_qa_dataset.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/time_series_datasets/mhc_caption_qa_dataset.py b/time_series_datasets/mhc_caption_qa_dataset.py index 168823d..1ac065d 100644 --- a/time_series_datasets/mhc_caption_qa_dataset.py +++ b/time_series_datasets/mhc_caption_qa_dataset.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/time_series_datasets/mhc_label_lookup.py b/time_series_datasets/mhc_label_lookup.py index 252225a..5ea0b54 100644 --- a/time_series_datasets/mhc_label_lookup.py +++ b/time_series_datasets/mhc_label_lookup.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # @@ -193,7 +193,7 @@ def build_metabolic_post_prompt(label: str) -> str: class LabelLookup: - """Join MHC-benchmark labels to SensorTSLM samples. + """Join MHC-benchmark labels to TimeCap samples. The parquet may contain ``week_start`` (weekly) or ``date`` (daily) as the timestamp column, or neither for user-level label files (one row per user). diff --git a/time_series_datasets/mhc_metabolic_qa_dataset.py b/time_series_datasets/mhc_metabolic_qa_dataset.py index 67e87ec..0dd229b 100644 --- a/time_series_datasets/mhc_metabolic_qa_dataset.py +++ b/time_series_datasets/mhc_metabolic_qa_dataset.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/time_series_datasets/mhc_multi_label_qa_dataset.py b/time_series_datasets/mhc_multi_label_qa_dataset.py index 82fe813..7eb10b2 100644 --- a/time_series_datasets/mhc_multi_label_qa_dataset.py +++ b/time_series_datasets/mhc_multi_label_qa_dataset.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/timef/__init__.py b/timef/__init__.py index 380af34..6a7d043 100644 --- a/timef/__init__.py +++ b/timef/__init__.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/timef/schema.py b/timef/schema.py index 4d26d3f..75bc99a 100644 --- a/timef/schema.py +++ b/timef/schema.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/transformer.py b/transformer.py index 0577fa3..5a5913b 100644 --- a/transformer.py +++ b/transformer.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/util.py b/util.py index 89956eb..cb60f62 100644 --- a/util.py +++ b/util.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT # diff --git a/visualizer.py b/visualizer.py index 4f8f040..2c39a71 100644 --- a/visualizer.py +++ b/visualizer.py @@ -1,6 +1,6 @@ # # SPDX-FileCopyrightText: 2026 Stanford University, ETH Zurich, and the project authors (see CONTRIBUTORS.md) -# SPDX-FileCopyrightText: 2026 This source file is part of the SensorTSLM open-source project. +# SPDX-FileCopyrightText: 2026 This source file is part of the TimeCap open-source project. # # SPDX-License-Identifier: MIT #