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

25-48 / 93 materials

Using DummyRegressor as a Baseline to Interpret Regression Metrics

A regression metric like MAE=5 is meaningless without knowing what a constant predictor achieves on the same data. DummyRegressor provides that reference point, letting you judge whether your model captures real signal or merely reproduces central tendency.

DummyRegressor / baseline / MAE / regression metrics / scikit-learn / cross-validation / constant predictor / model evaluation

Python json.dump Is Not a Framed Protocol: Why Repeated Calls Produce Invalid JSON and How to Serialize Multiple LLM Responses Safely

Python's json module explicitly warns that JSON lacks framing, so calling dump() twice on the same file object writes two adjacent documents that json.load() cannot parse. The fix is to collect objects into a list and dump once, or use newline-delimited JSON with raw_decode for streaming scenarios.

python / json / serialization / llm / json-lines / framing / json-schema / streaming

Managing Parallelism and Partitioning in SAP HANA Cloud with SQL Analyzer

Use SQL Analyzer to measure real parallelism and per-step record counts before partitioning, detect data skew on partition keys, and complement static partitioning with Plan Variants for parameterized workloads.

SAP HANA Cloud / SQL Analyzer / table partitioning / parallelism / data skew / Plan Variants / performance tuning / SAP Business Application Studio

Choosing a regression metric for non-negative data in scikit-learn

Choose a regression metric for non-negative data by first deciding the prediction goal, then picking a consistent loss such as MAE, RMSE, or pinball loss, and finally comparing against a constant baseline with a D2-style score.

scikit-learn / regression metrics / MAE / RMSE / pinball loss / quantile regression / D2 score / non-negative targets

Using the Universal Journal in SAP S/4HANA for Segment Reporting

The Universal Journal brings FI and CO actual data into ACDOCA and can support segment reporting when the required configuration and accounting rules are in place. It reduces traditional reconciliation work but does not by itself establish compliance or prove that disclosures are complete.

SAP S/4HANA / Universal Journal / Segment Reporting / Financial Reporting / Real-Time Analysis / Compliance / FI/CO Integration / Document Splitting

Robust CSV Parsing in Python: Handling BOM, Dialects, and Newlines

A guide to using the Python csv module to automatically detect delimiters, handle Unicode Byte Order Marks (BOM) with utf-8-sig, and manage platform-specific newline issues using the Sniffer class and correct file opening parameters.

python / csv / data-processing / encoding / utf-8-sig / automation

Serializing Complex Python Objects to JSON with Custom Encoders

Use default or a JSONEncoder subclass to convert unsupported Python values into an explicit JSON representation. An unhandled TypeError stops the whole dump. Add object_hook only when you need to reconstruct custom types from marker objects.

json / serialization / JSONEncoder / default / object_hook / python-standard-library / datetime / complex

Filtered Vector Search Strategy: Applying Filters to Vector Queries in Azure AI Search

Filtered vector search in Azure AI Search combines vector similarity with metadata filtering. Pre-filtering reduces the candidate set before scoring, potentially lowering latency but risking recall loss. Post-filtering preserves recall but may return fewer results. Testing both modes is essential to find the right trade-off for your data.

Azure AI Search / vector search / filtered vector search / hybrid search / pre-filter / post-filter / semantic ranker / metadata filtering