SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2211.05244 · 2022

Deep Learning for Time Series Anomaly Detection: A Survey

arXiv · PDF · Open in the Atlas

Code that ran

15 of 15 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; 0 honoured the contract we drafted, 0 violated it and 14 have no contract verdict; 1 failure of our instrument; 0 no recorded run), measured 2026-11-23; 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/2211.05244.json · badge: /api/ran/2211.05244.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
zamanzadeh/CARLA community (classifier label)
classifier basis not recorded on the link
15 ran · 0 no recorded run
FunctionStatusWhere it lives
Cardinality_factor Ran
ran on a synthesized input
zamanzadeh/CARLA/metrics/customizable_f1_score.py
code served (permissive licence) · get_code("204eecd5442fec4b")
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 float, 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
import numpy as np

torch.manual_seed(0)

# Analyzing the function:
# - Anomolyrange: expects a sequence with 2 elements (indices [0] and [1])
# - Prange: expects an iterable of sequences, each with at least 2 elements (indices [0] and [1])
# The function checks interval overlaps between Anomolyrange and elements in Prange

# Construct valid arguments
Anomolyrange = [10, 20]  # Start and end of anomaly range

# Prange: list of ranges to check against Anomolyrange
# Each element should have at least [start, end] indices
Prange = [
    [5, 15],      # Overlaps with anomaly range
    [12, 18],     # Overlaps with anomaly range
    [25, 30],     # No overlap
    [8, 12],      # Overlaps with anomaly range
]

ARGS = {
    "Anomolyrange": Anomolyrange,
    "Prange": Prange,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float, 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
MCC Ran
ran on a synthesized input
zamanzadeh/CARLA/metrics/Matthews_correlation_coefficient.py
code served (permissive licence) · get_code("c7844877b6080f89")
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 float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 numpy as np
from sklearn.metrics import confusion_matrix

# Create simple binary classification ground truth and predictions
y_test = np.array([0, 1, 1, 0, 1, 0, 1, 1])
pred_labels = np.array([0, 1, 0, 0, 1, 1, 1, 1])

ARGS = {
    "y_test": y_test,
    "pred_labels": pred_labels,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
TPR_FPR_RangeAUC Ran
ran on a synthesized input
zamanzadeh/CARLA/metrics/AUC.py
code served (permissive licence) · get_code("72227c9ceee20b79")
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, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 numpy as np

# Construct valid arguments for TPR_FPR_RangeAUC

# labels: binary array indicating positive samples
labels = np.array([1, 0, 1, 0, 1, 1, 0, 0])

# pred: predicted scores/binary predictions
pred = np.array([1, 0, 1, 1, 1, 0, 0, 0])

# P: prior count of positive samples
P = 3

# L: list of segments (ranges) defined as [start_idx, end_idx] pairs
L = [
    [0, 2],
    [3, 5],
    [6, 7]
]

ARGS = {
    "labels": labels,
    "pred": pred,
    "P": P,
    "L": L
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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
b Ran
ran on a synthesized input
zamanzadeh/CARLA/metrics/customizable_f1_score.py
code served (permissive licence) · get_code("4f4f0c874a98488b")
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 int, ndim 0, dtype family int, 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)

# Analyze the function b:
# - bias: string parameter that can be 'flat', 'front-end bias', 'back-end bias', or other
# - i: numeric parameter (used in comparisons and arithmetic)
# - length: numeric parameter (used in comparisons and arithmetic)
# The function returns a numeric value based on the bias type and comparison logic

ARGS = {
    'bias': 'flat',
    'i': 3,
    'length': 10
}
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 int, ndim 0, dtype family int, 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
conv1d_same_padding Ran
ran on a synthesized input
zamanzadeh/CARLA/models/resent_time.py
code served (permissive licence) · get_code("e1a3c4d15be8ec0d")
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 3, dtype family float, shape (2, 5, 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.functional as F

torch.manual_seed(0)

# Construct small tensors for conv1d_same_padding
# input: (batch=2, channels=3, length=4)
input = torch.randn(2, 3, 4)

# weight: (out_channels=5, in_channels//groups=3, kernel_size=3)
weight = torch.randn(5, 3, 3)

# bias: (out_channels=5,)
bias = torch.randn(5)

# stride: tuple with one element
stride = (1,)

# dilation: tuple with one element
dilation = (1,)

# groups: number of groups for grouped convolution
groups = 1

ARGS = {
    "input": input,
    "weight": weight,
    "bias": bias,
    "stride": stride,
    "dilation": dilation,
    "groups": groups,
}
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 3, dtype family float, shape (2, 5, 4) — shape (2, 5, 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
entropy Ran
ran on a synthesized input
zamanzadeh/CARLA/losses/losses.py
code served (permissive licence) · get_code("60021cab8043955f")
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
import torch.nn.functional as F

torch.manual_seed(0)

# Test case 1: input as probabilities (normalized)
x_probs = torch.tensor([
    [0.7, 0.2, 0.05, 0.05],
    [0.25, 0.25, 0.25, 0.25]
], dtype=torch.float32)

# Test case 2: input as logits (unnormalized)
x_logits = torch.tensor([
    [2.0, 1.0, 0.5, 0.1],
    [1.0, 1.0, 1.0, 1.0]
], dtype=torch.float32)

ARGS = {
    "x": x_probs,
    "input_as_probabilities": True
}
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
find_length Ran
ran on a synthesized input
zamanzadeh/CARLA/metrics/evaluate_utils.py
code served (permissive licence) · get_code("4b4809c6444af89d")
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 int64, ndim 0, dtype family int, 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 numpy as np

# The function find_length expects a 1D numpy array as input
# It checks if data has more than 1 dimension, uses len(data.shape)
# and accesses data with slicing [:min(20000, len(data))]

# Create a 1D numpy array with enough data points for the acf function
data = np.random.randn(500)

ARGS = {
    "data": data
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy, statsmodels — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int64, ndim 0, dtype family int, 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
get_adjust_F1PA Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
zamanzadeh/CARLA/metrics/f1_score_f1_pa.py
code served (permissive licence) · get_code("439b04bd3a701798")
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, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 numpy as np
from sklearn.metrics import precision_recall_fscore_support, accuracy_score

torch.manual_seed(0)

# The function expects:
# pred: a list or array of binary predictions (0 or 1)
# gt: a list or array of binary ground truth labels (0 or 1)

# Create small sample data
pred = [0, 1, 0, 1, 1, 0, 1, 0]
gt = [0, 1, 0, 1, 0, 0, 1, 0]

ARGS = {
    "pred": pred,
    "gt": gt
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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
get_composite_fscore_from_scores Ran
ran on a synthesized input
zamanzadeh/CARLA/metrics/evaluate_utils.py
code served (permissive licence) · get_code("2f49d54436bba905")
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 float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 numpy as np

# Create score_t_test: a 1D array of scores between 0 and 1
score_t_test = np.array([0.1, 0.3, 0.5, 0.7, 0.9, 0.2, 0.8, 0.4])

# Create thres: a scalar threshold value
thres = 0.5

# Create true_events: a dict mapping event names to (start, end) index tuples
true_events = {
    'event_1': (0, 2),
    'event_2': (4, 6),
    'event_3': (1, 3)
}

# Create prec_t: precision value between 0 and 1
prec_t = 0.75

# Create return_prec_rec flag
return_prec_rec = False

ARGS = {
    'score_t_test': score_t_test,
    'thres': thres,
    'true_events': true_events,
    'prec_t': prec_t,
    'return_prec_rec': return_prec_rec
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
get_composite_fscore_raw Ran
ran on a synthesized input
zamanzadeh/CARLA/metrics/fc_score.py
code served (permissive licence) · get_code("e502994132826dab")
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 float64, ndim 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 numpy as np

# Analyze the function:
# - y_test: needs to be array-like, used in precision_score(y_test, pred_labels)
# - pred_labels: needs to support indexing with [start:end+1] and .any() method
# - true_events: dict with values that are tuples (start, end) for indexing
# - return_prec_rec: boolean flag

# y_test and pred_labels should be binary labels (0/1) for precision_score
# true_events maps event names to (start, end) index ranges

# Create sample data
y_test = np.array([0, 1, 1, 0, 1, 1, 0, 0])
pred_labels = np.array([0, 1, 1, 0, 1, 0, 0, 1])

# true_events: dict mapping event identifiers to (start_idx, end_idx) tuples
# The function checks if any prediction in each event range is True
true_events = {
    'event_1': (0, 2),   # indices 0, 1, 2
    'event_2': (4, 6),   # indices 4, 5, 6
    'event_3': (6, 7),   # indices 6, 7
}

ARGS = {
    'y_test': y_test,
    'pred_labels': pred_labels,
    'true_events': true_events,
    'return_prec_rec': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, sklearn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type float64, ndim 0, dtype family float — no output shape is stated: observe_signature.py recorded float ndim 0, which disagrees with the fixture run
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
get_events Ran
ran on a synthesized input
zamanzadeh/CARLA/metrics/fc_score.py
code served (permissive licence) · get_code("610db93185f89e22")
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 dict. 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 numpy as np

torch.manual_seed(0)

# Analyze the function: it takes y_test (iterable of labels), outlier (int), normal (int)
# It iterates through y_test checking for transitions between normal and outlier labels
# Returns a dict mapping event numbers to (start, end) tuples

# Create a simple y_test array with some normal and outlier labels
y_test = np.array([0, 0, 1, 1, 1, 0, 0, 1, 0])

ARGS = {
    "y_test": y_test,
    "outlier": 1,
    "normal": 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 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
get_point_adjust_scores Ran
ran on a synthesized input
zamanzadeh/CARLA/metrics/f1_score_f1_pa.py
code served (permissive licence) · get_code("a3fe85840442944f")
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, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 numpy as np

# Analyze the function to understand what's needed:
# - y_test: numpy array that supports indexing and operations like sum() and multiplication
# - pred_labels: numpy array that supports indexing, sum(), and multiplication with y_test
# - true_events: dict mapping event names to (start, end) tuples
# - thereshold_k: int, default 0
# - whether_top_k: bool, default False

# Create small numpy arrays
# y_test should be binary labels (ground truth)
y_test = np.array([0, 1, 1, 0, 1, 1, 0, 0], dtype=int)

# pred_labels should be binary predictions
pred_labels = np.array([0, 1, 0, 0, 1, 1, 1, 0], dtype=int)

# true_events: dict with event names mapping to (start_idx, end_idx) tuples
# Let's create events that span different ranges in our arrays
true_events = {
    'event_1': (1, 3),   # indices 1 to 3 (exclusive end, so positions 1, 2)
    'event_2': (4, 6),   # indices 4 to 6 (exclusive end, so positions 4, 5)
}

# Other parameters
thereshold_k = 0
whether_top_k = False

ARGS = {
    'y_test': y_test,
    'pred_labels': pred_labels,
    'true_events': true_events,
    'thereshold_k': thereshold_k,
    'whether_top_k': whether_top_k,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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
get_prec_rec_fscore Ran
ran on a synthesized input
zamanzadeh/CARLA/metrics/f1_score_f1_pa.py
code served (permissive licence) · get_code("f680da2eda2de769")
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, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 numpy as np

torch.manual_seed(0)

# The function get_prec_rec_fscore takes three parameters: tp, fp, fn
# These are used in arithmetic operations, so they should be numeric values
# (int or float). Let's use a mix of values to test different code paths.

# Test case 1: tp > 0 (normal case)
tp = 10
fp = 3
fn = 2

ARGS = {
    "tp": tp,
    "fp": fp,
    "fn": fn
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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
range_convers_new Ran
ran on a synthesized input
zamanzadeh/CARLA/metrics/evaluate_utils.py
code served (permissive licence) · get_code("74e8e2a67dc9e50e")
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 list, ndim 2, dtype family int; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 numpy as np

torch.manual_seed(0)

# Analyze the function:
# - Takes 'label' parameter
# - Uses len(label) to get length
# - Uses label[i] and label[j] to index into it
# - Compares values with 0 (== 0 and != 0)
# - Returns list of tuples representing ranges of non-zero values

# Create a simple binary array with some non-zero values
label = np.array([0, 0, 1, 1, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0])

ARGS = {
    "label": label
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, dtype family int — a list output has no array shape of its own; none is stated
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
w Ran
ran on a synthesized input
zamanzadeh/CARLA/metrics/customizable_f1_score.py
code served (permissive licence) · get_code("8819fedccafcbc6c")
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 float, 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)

# AnomalyRange should be a tuple/list with two elements: [start, end]
# p should be a collection (list, set, etc.) of indices to check membership
AnomalyRange = [5, 10]
p = [6, 7, 9]

ARGS = {
    'AnomalyRange': AnomalyRange,
    'p': p
}
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 float, 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

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 2 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 2 later) and 13 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
conv1d_same_padding 1 other paper
1 later
2303.04743 (2023-03)
Vector Quantized Time Series Generation with a Bidirectional Prior Model
get_adjust_F1PA 1 other paper
1 later
2406.19770 (2024-06)
Self-Supervised Spatial-Temporal Normality Learning for Time Series Anomaly Detection

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-23.

Repositories linked to this paper

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

Abstract

Time series anomaly detection has applications in a wide range of research fields and applications, including manufacturing and healthcare. The presence of anomalies can indicate novel or unexpected events, such as production faults, system defects, or heart fluttering, and is therefore of particular interest. The large size and complex patterns of time series have led researchers to develop specialised deep learning models for detecting anomalous patterns. This survey focuses on providing structured and comprehensive state-of-the-art time series anomaly detection models through the use of deep learning. It providing a taxonomy based on the factors that divide anomaly detection models into different categories. Aside from describing the basic anomaly detection technique for each category, the advantages and limitations are also discussed. Furthermore, this study includes examples of deep anomaly detection in time series across various application domains in recent years. It finally summarises open issues in research and challenges faced while adopting deep anomaly detection models.

For agents

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

get_harvested_code_for_paper("2211.05244")
get_code_for_paper("2211.05244")
have("2211.05244")

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

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

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

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

Connect an agent — have() is free.