Skip to content
tezvyn:

All bites

The whole library, newest first. Filter by what you are here for, or pick a topic if you already know.

8668 bites

Page 50

Data Science & Analytics2 min read

Programmatically detect and redact PII in text

Regex for structured PII plus NER for names and places, redact or tokenize, then validate recall.

Data Science & Analytics2 min read

Minimizing model prediction latency end to end

Shrink the model via quantization, pruning, distillation, compilation; cut infra latency via caching, edge, faster runtimes.

Data Science & Analytics2 min read

Zero-downtime model updates with blue-green or canary

Blue-green swaps full traffic after validation, canary ramps a small slice; both need health, latency, and quality monitoring plus instant rollback.

Data Science & Analytics1 min read

Why version data and model artifacts, not just code

Code alone cannot reproduce a model; data and artifact versioning enable rollback, debugging, audit.

Data Science & Analytics1 min read

CPU versus GPU serving: cost, latency, throughput

GPUs win on throughput for batched parallel work but cost more; CPUs suit low-volume or small models.

Data Science & Analytics1 min read

ML CI/CD versus traditional software CI/CD

Validates code plus data plus the model, auto-trains and evaluates, adds continuous training and monitoring.

Data Science & Analytics1 min read

What a feature store solves: skew and consistency

Central repository of computed features, one definition serving training and inference, reuse across models.

Data Science & Analytics1 min read

Detecting and responding to model and concept drift

Define drift, pick a metric like PSI or falling AUC against labels, then investigate, retrain, validate.

Data Science & Analytics1 min read

Batch prediction versus online real-time prediction

Batch is scheduled bulk scoring, online is low-latency per-request scoring; contrast latency, freshness, cost; give a use case each.

Data Science & Analytics1 min read

Deploy a saved model as a REST prediction service

Load the artifact, wrap it in a predict API, containerize, host with autoscaling, add monitoring.

Data Science & Analytics1 min read

Explain k-means user segments to a marketing team

Name each segment, profile its defining traits, show size and value, recommend an action.

Data Science & Analytics1 min read

Two ways accurate data can still mislead in a chart

Name distortions like truncated axes or cherry-picked ranges, give the fix for each, explain why each misleads.

Data Science & Analytics1 min read

Reconcile rising sign-ups with falling revenue per user

Reconcile the metrics via total revenue and segment mix, frame the tradeoff, recommend an action.

Data Science & Analytics1 min read

Visualizing long-term trend versus seasonality

A line chart over the full three years, often with a moving average, shows the long-term trend; a seasonal plot overlaying each year by month, or a month-of-year box plot, reveals…

Data Science & Analytics2 min read

Diagnosing Spark executor OutOfMemoryError

Check the Spark UI for skew and spills, inspect executor memory and partition count, find culprits like wide collect, huge shuffles, or skewed keys, and fix via more partitions, memory tuning, or…

Data Science & Analytics1 min read

Spark RDDs, DataFrames, and Datasets

RDDs are low-level typed object collections with no built-in optimization; DataFrames are named columns optimized by Catalyst and Tungsten; Datasets add compile-time type safety in…

Data Science & Analytics2 min read

Data skew in Spark and salting

Data skew is uneven key distribution sending most rows to one partition and straggler task; salting appends a random suffix to hot keys to spread them across partitions, joining in two…

Data Science & Analytics2 min read

Spark broadcast join versus shuffle join

A broadcast join sends the small table to every executor so the large table joins locally with no shuffle of its rows; the default sort-merge join shuffles both tables across the network, which is costly.

Data Science & Analytics1 min read

The MapReduce paradigm explained

Map applies a function to each input record emitting key-value pairs in parallel; a shuffle groups values by key; reduce aggregates each key's values into a result.

Data Science & Analytics1 min read

HDFS purpose and fault tolerance

HDFS stores huge files across many commodity machines as large blocks, replicating each block across nodes for fault tolerance; unlike NTFS or ext4 it is distributed, write-once, and optimized for…