TATECHATLAS
◎ English
TECHNOLOGY / KNOWLEDGE / PRACTICE

AI, programming, SQL, SAP and mathematics: guides and tips

Materials on AI, Python, Git, SQL, SAP/ERP, statistics and time series: explanations, examples, practical tips, sources and applicability limits.

Latest guides

1-24 / 140 materials

PurePath versus Path: when path math is not filesystem truth

Use PurePath-family classes for portable, I/O-free path manipulation and Path/PosixPath/WindowsPath for filesystem-backed work. Do not treat lexical normalization as proof that a target exists, resolves through symlinks, or is contained.

pathlib / PurePath / Path / symlinks / resolve / filesystem checks

How sort_keys in json.dumps Gives Deterministic Key Order for Comparing Model JSON Responses

sort_keys=True makes json.dumps emit dictionary keys in sorted order, so two JSON responses with the same data but different key order serialize to identical strings. Sorting happens on the original Python keys before they are converted to JSON strings, so numeric keys sort by value.

python / json / json.dumps / sort_keys / testing / deterministic-serialization / regression-tests

Choosing Between validation_curve and learning_curve for Model Diagnosis

validation_curve shows how one hyperparameter affects training and validation scores, while learning_curve shows how scores change with training set size. Use the first to tune the model and the second to decide whether collecting more data will help.

scikit-learn / validation_curve / learning_curve / model-diagnosis / overfitting / underfitting / cross-validation / data-leakage

Interpreting Azure AI Search Hybrid Scores: RRF, Small Values and Cross-Query Limits

Azure AI Search hybrid queries combine full-text and vector search using Reciprocal Rank Fusion (RRF). The @search.score field reflects this fusion, often appearing small due to RRF’s reciprocal rank weighting. This score cannot be directly compared across queries because it depends on the relative ranking within each query’s result set. Practical guidance includes using ranking order instead of absolute scores and understanding when semantic ranking alters the relevance signal.

Azure AI Search / Hybrid Search / Reciprocal Rank Fusion / RRF / Vector Search / Full-Text Search / Semantic Ranking / Relevance Scoring

Aligning Loss and Evaluation Metrics in Time Series

Using the same strictly consistent scoring function for both training and evaluation in time series forecasting ensures models are optimized for and accurately assessed against the desired outcome.

time series / forecasting / loss function / evaluation metric / quantile regression / pinball loss / consistency / model training

Handling Control Characters in Model JSON Output

This article explains how to address control characters emitted by language models in JSON output, detailing the default strict mode in Python's json.loads and strategies for graceful degradation when encountering these characters.

JSON / Python / JSONDecodeError / Control Characters / Strict Mode

How to use learning curves to decide if a model scales with data and whether to remove regularisation

A learning curve shows whether more data helps. A rising validation score with a narrowing gap means the model scales, so regularisation may be reduced. A flat validation score means the model is capacity-limited, so regularisation should stay or increase.

learning curve / bias-variance / scalability / regularisation / scikit-learn / data leakage / cross-validation / model monitoring

Eliminating SQL UNKNOWN Across WHERE, IF, and WHILE with Sentinel Coalescing

Three-valued logic produces UNKNOWN when a nullable operand enters a comparison, and that single value diverges in effect across filtering, conditional, and loop constructs. Wrapping the operand with COALESCE and a domain-safe sentinel collapses the logic to two values, making every context behave identically.

three-valued-logic / NULL-handling / COALESCE / sentinel-pattern / T-SQL / Oracle / control-flow / outer-joins

CHECK constraints in PostgreSQL: why they cannot reference other rows and how to avoid dump/restore errors

CHECK constraints in PostgreSQL only validate the new or updated row itself; they cannot inspect other rows. This causes dump restores to fail if rows are loaded in an order that temporarily violates cross-row logic. Use UNIQUE, EXCLUDE, or FOREIGN KEY constraints for cross-row integrity, test dumps, use deferred constraints, and verify data after restore.

postgresql / check-constraint / pg_dump / pg_restore / unique-constraint / exclude-constraint / foreign-key / data-integrity

How json.loads and json.load handle bytes and bytearray in Python: encoding auto-detection and the strict parameter

The json.loads and json.load functions in Python accept bytes and bytearray inputs since version 3.6, automatically detecting UTF-8, UTF-16, or UTF-32 encoding. If the encoding is incorrect, UnicodeDecodeError is raised. The strict parameter controls handling of control characters in JSON strings. Practical scenarios and limitations are discussed.

Python 3.6+ / JSON / bytes and bytearray / UTF-8/UTF-16/UTF-32 / UnicodeDecodeError / strict parameter / pathlib / binary files

Combining Static and Dynamic Metadata in pyproject.toml

In pyproject.toml, static metadata keys are declared directly in the file, while dynamic keys are listed in the project.dynamic array so a build backend can supply their values at build time. A backend must honour statically specified keys that are not listed in dynamic, and it must raise an error if name appears in dynamic. When a key is specified both statically and in dynamic (PEP 808), the backend may only append entries and must not modify or remove existing ones.

pyproject.toml / PEP 621 / PEP 808 / build backend / dynamic metadata / versioning / setuptools_scm / reproducible builds

Real-Time Margin Analysis with SAP S/4HANA Universal Journal

The Universal Journal (ACDOCA) merges financial and controlling data to enable real-time margin analysis without period-end settlement, automatically deriving market segments during cost postings.

SAP S/4HANA / Universal Journal / ACDOCA / Margin Analysis / Segment Reporting / Real-Time Analytics

Mastering JSON Output Formatting in Python

Learn how to control JSON serialization using separators, indentation, key sorting, and ASCII encoding to optimize for machine or human readability.

python / json / serialization / formatting / api / debugging / encoding / data-interchange