SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2009.11407 · 2020

Steering a Historical Disease Forecasting Model Under a Pandemic: Case of Flu and COVID-19

arXiv · PDF · Open in the Atlas

Code that ran

7 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 1 violated it and 5 have no contract verdict; 0 failures of our instrument; 3 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2009.11407.json · badge: /api/ran/2009.11407.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
AdityaLab/CALI-Net community (classifier label)
classifier basis not recorded on the link
7 ran · 3 no recorded run
FunctionStatusWhere it lives
buildNetwork Ran
ran on a synthesized input
AdityaLab/CALI-Net/EpiDeepCN.py
code served (permissive licence) · get_code("67f737dc953822fc")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Sequential. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Define arguments for buildNetwork function
ARGS = {
    'layers': [10, 20, 15, 5],
    'activation': 'relu',
    'dropout': 0.2
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
buildNetwork Ran
ran on a synthesized input
AdityaLab/CALI-Net/utils.py
code served (permissive licence) · get_code("b4e1a24b161cf691")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Sequential. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'layers': [4, 8, 16, 2],
    'activation': 'relu',
    'dropout': 0.5,
    'batchnorm': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
is_number Ran
ran, violated the contract we drafted
AdityaLab/CALI-Net/clustering_datasets.py
pointer only (licence: MIT); the stored copy get_code serves, from RikVN/AMR, is pointer only (licence: NONE) · get_code("e18607dae38b30e2")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from RikVN/AMR, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

mse_loss Ran
ran on a synthesized input
AdityaLab/CALI-Net/EpiDeepCN.py
code served (permissive licence) · get_code("a9112f31ad8528f2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create small tensors for inp and target
# Both should have the same shape for MSE loss computation
inp = torch.randn(2, 4)  # batch size 2, dimension 4
target = torch.randn(2, 4)  # same shape as inp

ARGS = {
    "inp": inp,
    "target": target,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
target_distribution Ran
ran, honoured the contract we drafted
AdityaLab/CALI-Net/EpiDeepCN.py
code served (permissive licence) · get_code("c8b8a6955c6ca85d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# The function takes a tensor q and performs operations:
# - q ** 2: element-wise squaring
# - q.sum(0): sum along dimension 0
# - weight.t(): transpose
# - weight.sum(1): sum along dimension 1
# The parameter q should be a 2D tensor (samples x clusters)

q = torch.rand(2, 4)  # batch_size=2, num_clusters=4

ARGS = {
    "q": q
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
train Ran
ran on a synthesized input
AdityaLab/CALI-Net/model_scripts/exog_model_utils.py
code served (permissive licence) · get_code("f3e8884f0025f1da")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import numpy as np

torch.manual_seed(0)

# Define a minimal model class that satisfies the function's requirements
class MinimalModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.num_epochs = 2
        self.learning_rate = 0.001
        self.laplacian_hyperparameter = 0.1
        self.region_equity_hyperparameter = 0.05
        self.l2_reg_hyperparameter = 0.0001
        
        # Internal model with parameters for optimizer
        self.model = nn.Sequential(
            nn.Linear(7, 16),
            nn.ReLU(),
            nn.Linear(16, 1)
        )
        
        # Embedding reconstruction model
        self.embedding_model = nn.Sequential(
            nn.Linear(7, 16),
            nn.ReLU(),
            nn.Linear(16, 3)
        )
    
    def predict(self, batchXReal, batchXCat):
        # batchXReal: (batch_size, 4)
        # batchXCat: (batch_size, 3)
        # Concatenate inputs
        combined = torch.cat([batchXReal, batchXCat], dim=1)  # (batch_size, 7)
        
        # wILI predictions
        wILI_preds = self.model(combined)  # (batch_size, 1)
        
        # wILI embedding (some intermediate representation)
        wILI_embedding = self.model[0](combined)  # (batch_size, 16)
        
        # Region encoding reconstructed (reconstruct batchXCat)
        region_encoding_reconstructed = self.embedding_model(combined)  # (batch_size, 3)
        
        # Region embedding
        region_embedding = self.embedding_model[0](combined)  # (batch_size, 16)
        
        return wILI_preds, wILI_embedding, region_encoding_reconstructed, region_embedding

# Create model
model = MinimalModel()
device = 'cpu'

# Create data loader: list of (batchXReal, batchXCat, batchY) tuples
# batchXReal: (batch_size, 4)
# batchXCat: (batch_size, 3)
# batchY: (batch_size, 1)
batch_size = 2
data_loader_train = [
    (
        torch.randn(batch_size, 4),
        torch.randn(batch_size, 3),
        torch.randn(batch_size, 1)
    ),
    (
        torch.randn(batch_size, 4),
        torch.randn(batch_size, 3),
        torch.randn(batch_size, 1)
    )
]

ARGS = {
    'data_loader_train': data_loader_train,
    'model': model,
    'device': device
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
train_local Ran
ran on a synthesized input
AdityaLab/CALI-Net/model_scripts/exog_model_utils.py
code served (permissive licence) · get_code("65c58ca4a5002d9b")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import numpy as np

torch.manual_seed(0)

# Define a minimal model that satisfies the function's usage
class MockModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.num_epochs = 2
        self.learning_rate = 0.001
        self.laplacian_hyperparameter = 0.5
        self.l2_reg_hyperparameter = 0.0001
        # Inner model with parameters for optimizer
        self.model = nn.Linear(4, 1)
    
    def predict(self, batchXReal, batchXCat):
        # batchXReal: real features
        # batchXCat: categorical features (embedding input)
        batch_size = batchXReal.shape[0]
        
        # wILI predictions
        wILI_preds = self.model(batchXReal)
        
        # wILI embedding (some representation)
        wILI_embedding = torch.randn(batch_size, 3)
        
        # region encoding reconstructed (reconstructs batchXCat)
        region_encoding_reconstructed = torch.randn_like(batchXCat)
        
        # region embedding
        region_embedding = torch.randn(batch_size, 2)
        
        return wILI_preds, wILI_embedding, region_encoding_reconstructed, region_embedding

# Create tiny data loader with batches
# Each batch: (batchXReal, batchXCat, batchY)
batch_size = 2
num_real_features = 4
num_cat_features = 5

batchXReal_1 = torch.randn(batch_size, num_real_features)
batchXCat_1 = torch.randn(batch_size, num_cat_features)
batchY_1 = torch.randn(batch_size, 1)

batchXReal_2 = torch.randn(batch_size, num_real_features)
batchXCat_2 = torch.randn(batch_size, num_cat_features)
batchY_2 = torch.randn(batch_size, 1)

data_loader_train = [
    (batchXReal_1, batchXCat_1, batchY_1),
    (batchXReal_2, batchXCat_2, batchY_2),
]

model = MockModel()
device = 'cpu'

ARGS = {
    'data_loader_train': data_loader_train,
    'model': model,
    'device': device,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
load_RNNdata Not yet run
unverified (harvested, no recorded run)
AdityaLab/CALI-Net/clustering_datasets.py
code served (permissive licence) · get_code("cd84211273a2782e")
How it ran

no invocation recorded.

load_mydata Not yet run
unverified (harvested, no recorded run)
AdityaLab/CALI-Net/clustering_datasets.py
code served (permissive licence) · get_code("2fd82bc35bf963e0")
How it ran

no invocation recorded.

train_with_laplacian_reg Not yet run
unverified (harvested, no recorded run)
AdityaLab/CALI-Net/model_scripts/exog_model_utils.py
code served (permissive licence) · get_code("6e575444aeb84a83")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 2 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
is_number 13 other papers
3 dated earlier, 9 later, 1 undated
1202.3665 (2012-02)
emcee: The MCMC Hammer
1705.09980 (2017-05)
Neural Semantic Parsing by Character-based Translation: Experiments with Abstract Meaning Representations
2003.05855 (2020-03)
End-to-End Learning Local Multi-view Descriptors for 3D Point Clouds
and 10 more not named here
target_distribution 8 other papers
2 dated earlier, 6 later
1906.06532 (2019-06)
Attributed Graph Clustering: A Deep Attentional Embedding Approach
2002.01633 (2020-02)
Structural Deep Clustering Network
2211.12875 (2022-11)
A Survey of Deep Graph Clustering: Taxonomy, Challenge, Application, and Open Resource
and 5 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Forecasting influenza in a timely manner aids health organizations and policymakers in adequate preparation and decision making. However, effective influenza forecasting still remains a challenge despite increasing research interest. It is even more challenging amidst the COVID pandemic, when the influenza-like illness (ILI) counts are affected by various factors such as symptomatic similarities with COVID-19 and shift in healthcare seeking patterns of the general population. Under the current pandemic, historical influenza models carry valuable expertise about the disease dynamics but face difficulties adapting. Therefore, we propose CALI-Net, a neural transfer learning architecture which allows us to 'steer' a historical disease forecasting model to new scenarios where flu and COVID co-exist. Our framework enables this adaptation by automatically learning when it should emphasize learning from COVID-related signals and when it should learn from the historical model. Thus, we exploit representations learned from historical ILI data as well as the limited COVID-related signals. Our experiments demonstrate that our approach is successful in adapting a historical forecasting model to the current pandemic. In addition, we show that success in our primary goal, adaptation, does not sacrifice overall performance as compared with state-of-the-art influenza forecasting approaches.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2009.11407")
get_code_for_paper("2009.11407")
have("2009.11407")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2009.11407.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2009.11407.svg)](https://syntology.ai/paper/2009.11407)

Connect an agent — have() is free.