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 / 93 materials

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

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

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

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

Entry Points in pyproject.toml

Learn to declare entry points in pyproject.toml using the three supported tables. Avoid nested subtables and duplicate definitions to prevent installation errors.

Python / Packaging / pyproject.toml / Entry Points / CLI / Scripts

Interpreting Data in HANA SQL Analyzer: Identifying Bottlenecks and Parallelism in Query Execution

The HANA SQL Analyzer provides a visual and detailed view of query execution plans, allowing developers to pinpoint performance bottlenecks, assess resource utilization, and evaluate the effectiveness of parallel processing. This guide details the steps to generate and interpret these execution files.

SAP HANA / SQL Analyzer / Performance Tuning / Execution Plan / SQL Optimization / Bottleneck Detection