SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1903.12394 · 2019

Informed Machine Learning -- A Taxonomy and Survey of Integrating Knowledge into Learning Systems

arXiv · PDF · Open in the Atlas

Code that ran

8 of 11 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 8 have no contract verdict; 0 failures of our instrument; 3 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/1903.12394.json · badge: /api/ran/1903.12394.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
tvhahn/weibull-knowledge-informed-ml community (classifier label)
classifier basis not recorded on the link
8 ran · 3 no recorded run
FunctionStatusWhere it lives
build_spectrogram_df_ims Ran
ran on a synthesized input
tvhahn/weibull-knowledge-informed-ml/src/features/build_features.py
code served (permissive licence) · get_code("510c132285cc7bb1")
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 numpy as np
import pandas as pd
from pathlib import Path
import tempfile
import os

# Create a temporary directory to use as the folder parameter
temp_dir = Path(tempfile.mkdtemp())

# Create sample CSV files with the expected column names
col_names = ['b1_ch1', 'b1_ch2', 'b2_ch3', 'b2_ch4', 'b3_ch5', 'b3_ch6', 'b4_ch7', 'b4_ch8']

# Create sample data files for different timestamps
date_list = ['2003.10.22.12.06.24', '2003.10.22.12.07.24', '2003.10.22.12.08.24']

for date_str in date_list:
    # Create sample signal data with 8 channels
    data = np.random.randn(1024, 8)
    df_temp = pd.DataFrame(data, columns=col_names)
    
    # Save to CSV file in the temp directory
    file_path = temp_dir / date_str
    df_temp.to_csv(file_path, sep='\t', index=False, header=False)

# Define arguments for build_spectrogram_df_ims
ARGS = {
    'folder': temp_dir,
    'date_list': date_list,
    'channel_name': 'b3_ch5',
    'start_time': '2003.10.22.12.06.24',
    'col_day_increment': False,
    'col_names': col_names
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, scipy — 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
calc_r2_avg Ran
ran on a synthesized input
tvhahn/weibull-knowledge-informed-ml/src/visualization/visualize_results.py
code served (permissive licence) · get_code("46dcea06a3b387b6")
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 numpy as np
from sklearn.metrics import r2_score

# Create small test data for the function
np.random.seed(0)

# y_hats: predictions, should be array-like that can be indexed and reshaped
y_hats = np.array([1.2, 2.3, 3.1, 4.5, 5.2, 6.1, 7.3, 8.0, 9.1, 10.2])

# y_val: ground truth values, should be array-like that can be indexed
y_val = np.array([1.0, 2.5, 3.0, 4.3, 5.0, 6.2, 7.1, 8.2, 9.0, 10.1])

# index_sorted: indices to sort/order the arrays, should be array-like
index_sorted = np.array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])

# window_size: integer for convolution window
window_size = 3

ARGS = {
    "y_hats": y_hats,
    "y_val": y_val,
    "index_sorted": index_sorted,
    "window_size": window_size,
}
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 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
create_eta Ran
ran on a synthesized input
tvhahn/weibull-knowledge-informed-ml/src/models/train_models.py
code served (permissive licence) · get_code("73d4839437cd99b8")
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

# Set random seed for reproducibility
np.random.seed(0)

# Create a small t_array with distinct shape (5,) containing positive values
# (since we're raising to power beta, we need valid numeric operations)
t_array = np.array([1.0, 2.0, 3.0, 4.0, 5.0])

# beta parameter - a positive float value for the power operation
beta = 2.0

# r parameter - a positive numeric value for division (default is 2)
r = 2

# Construct the ARGS dictionary with all parameters
ARGS = {
    "t_array": t_array,
    "beta": beta,
    "r": r,
}
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
create_fft Ran
ran on a synthesized input
tvhahn/weibull-knowledge-informed-ml/src/features/build_features.py
code served (permissive licence) · get_code("e7a93ed9e4b92d31")
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 numpy as np
import pandas as pd

# Create a small pandas DataFrame with a signal column
np.random.seed(0)
n_samples = 256
signal_data = np.sin(2 * np.pi * 10 * np.arange(n_samples) / 20480.0) + 0.1 * np.random.randn(n_samples)

df = pd.DataFrame({
    'b2_ch3': signal_data,
    'other_col': np.random.randn(n_samples)
})

ARGS = {
    'df': df,
    'y_name': 'b2_ch3',
    'sample_freq': 20480.0,
    'window': 'hamming',
    'beta': 8.0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, pandas, scipy — 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
read_csv Ran
ran on a synthesized input
tvhahn/weibull-knowledge-informed-ml/src/models/summarize_model_results.py
code served (permissive licence) · get_code("5807c79e40dc9bcb")
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 DataFrame. 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 pandas as pd
import tempfile
import os

# Create a temporary CSV file for testing
temp_dir = tempfile.mkdtemp()
temp_csv_path = os.path.join(temp_dir, "test_data.csv")

# Write a simple CSV file
df_temp = pd.DataFrame({
    'col1': [1, 2, 3],
    'col2': ['a', 'b', 'c'],
    'col3': [1.1, 2.2, 3.3]
})
df_temp.to_csv(temp_csv_path, index=False)

ARGS = {
    'filename': temp_csv_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
pandas — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type DataFrame — a DataFrame output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a DataFrame output the recorded ndim 2 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
test Ran
ran on a synthesized input
tvhahn/weibull-knowledge-informed-ml/src/models/utils.py
code served (permissive licence) · get_code("135db9ea11d9ad79")
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 (6, 1) 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
import numpy as np

torch.manual_seed(0)

# Define a simple neural network that takes input and produces output
class SimpleNet(nn.Module):
    def __init__(self, input_dim=4, output_dim=3):
        super().__init__()
        self.linear = nn.Linear(input_dim, output_dim)
    
    def forward(self, x):
        return self.linear(x)

# Create the network
net = SimpleNet(input_dim=4, output_dim=3)
net.eval()

# Create test data: 2 samples, 4 features each
x_test = torch.randn(2, 4)

# Set device to CPU
device = torch.device('cpu')

# Define ARGS dictionary with all parameters
ARGS = {
    'net': net,
    'x_test': x_test,
    'device': device,
    'batch_size': 100
}
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 Tensor, ndim 2, dtype family float, shape (6, 1) — shape (6, 1) 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
weibull_cdf Ran
ran on a synthesized input
tvhahn/weibull-knowledge-informed-ml/src/visualization/visualize_data.py
code served (permissive licence) · get_code("edf9349d5469bf38")
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 ndarray, ndim 1, dtype family float, shape (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 numpy as np

ARGS = {
    't': np.array([0.5, 1.5, 2.0, 3.5]),
    'eta': 2.0,
    'beta': 1.5
}
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 ndarray, ndim 1, dtype family float, shape (4,) — shape (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
weibull_pdf Ran
ran on a synthesized input
tvhahn/weibull-knowledge-informed-ml/src/visualization/visualize_data.py
code served (permissive licence) · get_code("6c963a4634206c16")
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 ndarray, ndim 1, dtype family float, shape (3,) 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

# weibull_pdf takes three parameters: t, eta, and beta
# All are numeric values used in mathematical operations
# t: the time/value at which to evaluate the PDF
# eta: scale parameter
# beta: shape parameter

ARGS = {
    "t": np.array([0.5, 1.5, 2.5]),
    "eta": 2.0,
    "beta": 1.5
}
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 ndarray, ndim 1, dtype family float, shape (3,) — shape (3,) 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
build_spectrogram_df_femto Not yet run
unverified (harvested, no recorded run)
tvhahn/weibull-knowledge-informed-ml/src/features/build_features.py
code served (permissive licence) · get_code("a5fa0ae3c8690a88")
How it ran

no invocation recorded.

calc_r2_avg Not yet run
unverified (harvested, no recorded run)
tvhahn/weibull-knowledge-informed-ml/src/models/utils.py
code served (permissive licence) · get_code("7eb5ad434e87072f")
How it ran

no invocation recorded.

main Not yet run
unverified (harvested, no recorded run)
tvhahn/weibull-knowledge-informed-ml/src/models/summarize_model_results.py
code served (permissive licence) · get_code("dae397e2987ec77f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 10 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.

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

Despite its great success, machine learning can have its limits when dealing with insufficient training data. A potential solution is the additional integration of prior knowledge into the training process which leads to the notion of informed machine learning. In this paper, we present a structured overview of various approaches in this field. We provide a definition and propose a concept for informed machine learning which illustrates its building blocks and distinguishes it from conventional machine learning. We introduce a taxonomy that serves as a classification framework for informed machine learning approaches. It considers the source of knowledge, its representation, and its integration into the machine learning pipeline. Based on this taxonomy, we survey related research and describe how different knowledge representations such as algebraic equations, logic rules, or simulation results can be used in learning systems. This evaluation of numerous papers on the basis of our taxonomy uncovers key methods in the field of informed machine learning.

For agents

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

get_harvested_code_for_paper("1903.12394")
get_code_for_paper("1903.12394")
have("1903.12394")

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

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

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

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

Connect an agent — have() is free.