Alle afleveringen
60 afleveringen, van nieuw naar oud
-
MLA 030 AI and Programming Jobs: What Happened and How to Position
26 februari 2026 · 36 min
The aggregate job market held, the entry-level door narrowed, and software postings sit a quarter below pre-pandemic. Why cheap implementation made specification, verification and domain scarce, how ML roles split five ways, and how to position. Lees meer
Links
Try a walking desk - stay healthy & sharp while you learn & code
More OCDevel shows - this one has siblings, each on its own subject and produced the same way
What coding agents did to programming and machine learning jobs by late 2026: the labor data, the mechanism behind it, how the ML career splintered into five roles, and a concrete positioning plan. Companion to the vibe coding trio (Vibe Coding in 2026, Inside a Coding Agent, Agentic Software Engineering) and the agents pair (AI Agents in 2026, OpenClaw and the Personal Agent).
Displacement vs task change
Two different claims hide inside "AI is taking programming jobs": displacement (the role disappears, nobody is rehired) and task change (the role stays, the work shifts). They appear in different data. Displacement shows in unemployment and layoff reports; task change shows in what postings ask for and how teams are shaped. The aggregate evidence is mostly task change with one real pocket of displacement at the entry level, which sets up offensive advice for most listeners and defensive advice for new entrants.
The evidence
Aggregate. The BLS Employment Situation has unemployment at 4.1% with payrolls beating forecasts, far from the 10-20% Dario Amodei floated in the Axios "white-collar bloodbath" interview. Both he and Sam Altman have since softened the timeline; Altman said he was "delighted to be wrong" (Fortune, Time). The Yale Budget Lab tracker finds no discernible disruption. Goldman Sachs Research estimates a net drag of about 16,000 jobs a month across 800+ occupations, with a long-run baseline of 6-7% of workers displaced.
Entry level. Stanford's Canaries in the Coal Mine (August 2026 paper, dashboard) puts 22-25 year olds in AI-exposed occup…
-
MLA 029 OpenClaw and Personal Agents
22 februari 2026 · 37 min
OpenClaw as the worked example of the always-on personal agent: gateway, markdown memory, heartbeats, skills, coding agents from your phone, hosted vs local models, and the 2026 security record (exposed instances, two critical CVEs, ClawHavoc) with the posture that makes it survivable. Lees meer
Links
Try a walking desk - stay healthy & sharp while you learn & code
More OCDevel shows - this one has siblings, each on its own subject and produced the same way
Second and last episode of the agents pair. AI Agents in 2026 covered the theory: loops, tools, memory, protocols, SDKs, evaluation. This one takes a single category, the always-on personal agent, and its most-cloned instance, OpenClaw, all the way down to the security posture required before it touches your inbox.
What a personal agent is
A personal agent is the agent loop with three additions: it runs continuously on a machine you control and can wake itself; its interface is messaging (WhatsApp, Telegram, Signal, iMessage, Slack) rather than a chat tab; and it holds your files, shell, browser, calendar and, if you allow it, email. Messaging removes the gap between having a thought and delegating it, and a chat thread is a natural home for asynchronous work that reports back later. The access that makes it useful is also the entire security problem.
OpenClaw today
OpenClaw is an MIT-licensed, self-hosted TypeScript agent created by Peter Steinberger in late 2025. It was released as Warelay, passed through claw-themed names, hit an Anthropic trademark complaint, and settled on OpenClaw at the end of January 2026 per Wikipedia; the org remains openclaw/openclaw. Steinberger joined OpenAI in February 2026 and stewardship moved to the OpenClaw Foundation, a US 501(c)(3) chaired by Dave Morin with a small full-time staff and donors including OpenAI, GitHub, Nvidia and Microsoft; the repo's README says OpenAI is a donor, not an owner, and there is no paid tier or hosted service. The project ships near-weekly CalVer re…
-
MLA 028 AI Agents: Loops, Tools, Memory, Protocols, and Evaluation
22 februari 2026 · 34 min
What an AI agent actually is, why coding agents got good first, how memory really works, what MCP and A2A standardize, which SDKs are alive, how to evaluate on trajectories, and where the products stand after browser agents contracted. Lees meer
Links
Try a walking desk - stay healthy & sharp while you learn & code
More OCDevel shows - this one has siblings, each on its own subject and produced the same way
First of two episodes on AI agents. This one is the architecture: the loop, tools and verifiable feedback, memory, the protocols (MCP, A2A, computer use), the SDK landscape, evaluation and observability, the product map, and when multiple agents help. The next episode, OpenClaw and the Personal Agent, applies it to one always-on assistant with security as the centerpiece. Coding-agent products and mechanics live in the vibe coding sequence starting at MLA 22.
Agent vs workflow vs chat: the loop
A chat model returns a message; a workflow is your code calling a model at fixed steps; an agent is a model that owns the control flow, choosing its next action from what it observes. That puts systems on a spectrum (chat, chat plus tools, workflows, agents) rather than in a binary, the framing Anthropic's Building Effective Agents uses. The loop itself is ReAct (Yao et al.): thought, action, observation, repeat, with the reasoning trace letting the model track and update a plan. What changed by 2026 is not the loop but the infrastructure around it, and every part of that infrastructure is an attack on per-step error compounding.
Tools, function calling, and verifiable feedback
Function calling: you describe tools as schemas, the model emits a structured call, your code executes it and returns the observation. The model never runs anything itself, which is the security model. Writing effective tools for agents gives the practical rules: few high-impact tools, clear namespaces, meaningful identifiers, token-efficient responses, descriptions treated as prompt engineering. Eff…
-
MLA 027 The AI Media Pipeline: Voice, Music, ComfyUI, APIs, and Finishing
14 juli 2025 · 35 min
How to automate AI media end to end: clone your own voice on open TTS, pick music that's actually licensed, run ComfyUI graphs headless, design around fal, Replicate and provider queues, finish with ffmpeg, and stay inside licensing at every layer. Lees meer
Links
More OCDevel shows - this one has siblings, each on its own subject and produced the same way
Companion show. This episode is the overview of the media pipeline. For weekly, hands-on coverage of the video half, from a first usable clip to scenes that cut together, listen to AI Video Generation on Gnothi.
Try a walking desk - stay healthy & sharp while you learn & code
Pipeline, not prompt
Once you need thirty clips with the same character, a narrator who sounds identical every episode, a matched music bed, word-accurate captions and a platform-safe export, the prompt is one node in a graph and the graph is the product. The engineering lives in the edges: how one model's output becomes the next model's input, how failures retry, what each job cost, and whether the run is reproducible next week. Model choice at the nodes is covered in the two sibling episodes; this one covers everything else: voice with ElevenLabs and Qwen3-TTS, licensed music, ComfyUI on your own card, the fal and Replicate APIs, ffmpeg assembly, and licensing.
Voice: cloning, open TTS, and consent
ElevenLabs remains the reference point (current flagship Eleven v3, character-based pricing). Professional voice cloning is locked to the requester's own voice behind a live voice check, and the terms require consent attestation for any uploaded voice. On the open side, Breeze TTS 2 topped the open-weights column of the Artificial Analysis speech arena in August 2026, ahead of Fish Audio's S2 Pro; the code is Apache 2.0 but the weights are research/non-commercial, so it is not a commercial self-hosting option. The working set for programmers: Qwen3-TTS (Apache 2.0, 0.6B/1.7B, cloning from seconds of reference audio; the preset-speaker variant does…
-
MLA 026 AI Video Generation 2026: Veo, Gemini, Kling, Runway, MiniMax, Sora
12 juli 2025 · 32 min
Sora is shut down, Google runs two video models, Kling 3 does lip-synced dialogue, and open-weight MiniMax H3 is what you can actually fine-tune. What a usable clip costs, which models do native audio, how reference consistency works, and why the unit of work is the shot. Lees meer
Links
Notes and resources at ocdevel.com/mlg/mla-26
More OCDevel shows - this one has siblings, each on its own subject and produced the same way.
Companion show: for weekly, hands-on coverage of the AI video pipeline, from a first usable clip to scenes that cut together, listen to AI Video Generation.
Try a walking desk - stay healthy & sharp while you learn & code
Second of three episodes on AI media generation, covering Veo, Kling, Runway and MiniMax H3. Four questions: what a usable clip costs, which models generate sound and dialogue natively, how character and shot consistency work now, and where open-weight video fits for a programmer. Ends with the shot-to-scene mental model.
What changed since 2025
Native audio is now the baseline at the frontier: Veo 3.1, Kling 3.0, MiniMax H3 and LTX-2.5 sample audio and frames from one model, so lip movement and sound effects land on the right frame. Clips grew from four or five seconds to eight to fifteen, with a few models advertising thirty. Every serious product ships a reference-conditioning feature (Google "ingredients", Kling "elements", Runway references) that holds a character or object across clips. Image-to-video, not text-to-video, is the professional path: lock the first frame with an image model (see AI Image Generation and Editing), then ask the video model to move it. The old "storyteller vs animator" split resolved in favor of the animators.
Google: Veo 3.1 and Gemini Omni
Google now runs two video models in two places. Veo 3.1 is the developer baseline on the Gemini API and Vertex, in Quality, Fast and Lite tiers, all with native audio; clips are 4, 6 or 8 seconds, and 1080p/4K are upscales of the 8-second clip. It accepts u…
-
MLA 025 AI Image Generation 2026: GPT Image, Nano Banana, Midjourney, Flux
9 juli 2025 · 31 min
Editing replaced generation as the core task. How GPT Image 2.5, Google's Nano Banana line, Midjourney V8.2 and Flux 2 differ, what open weights and LoRAs buy you, ControlNet vs instruction editing, and how licensing and C2PA provenance work now. Lees meer
Links
More OCDevel shows - this one has siblings, each on its own subject and produced the same way
Companion show. This episode is the overview. For weekly, hands-on coverage of the full image and video pipeline, from a first usable clip to scenes that cut together, listen to AI Video Generation.
Try a walking desk - stay healthy & sharp while you learn & code
First of three episodes on AI media generation (this one is images and editing; then video, then the pipeline). A decision guide rather than a leaderboard: where GPT Image, Nano Banana, Midjourney and Flux each fit in late 2026, why instruction-driven editing replaced generation as the core task, what open weights buy you, and how licensing and provenance work.
What changed: editing, instruction-following, references, text
The 2025 "artist vs collaborator" split is over and the collaborators won. Every frontier image model now sits behind a language model that reads the prompt with world knowledge and accepts images as input, so the unit of work became "here is an image, change this one thing and keep everything else." Text rendering, precise instruction following and identity-preserving reference images all landed at once for one reason: the image model became, or was paired with, a multimodal language model. Generation from scratch is now the special case where the input image is empty.
OpenAI: GPT Image 2.5
The lineage runs gpt-image-1 (2025), gpt-image-2, then ChatGPT Images 2.5 in September 2026, with a precision variant (Sunburst) and a fast default (Flare); the same models power ChatGPT and the Images API. As of this recording it holds the top slots on both the LMArena text-to-image and image-edit boards and on Artificial Analysis. For editing it doe…
-
MLG 036 Autoencoders
30 mei 2025 · 1 uur 6 min
Auto encoders are neural networks that compress data into a smaller "code," enabling dimensionality reduction, data cleaning, and lossy compression by reconstructing original inputs from this code. Advanced auto encoder types, such as denoising, sparse, and variational auto encoders, extend these concepts for applications in generative modeling, interpretability, and synthetic data generation. Lees meer
Links
Notes and resources at ocdevel.com/mlg/36
Try a walking desk - stay healthy & sharp while you learn & code
Build the future of multi-agent software with AGNTCY.
Thanks to T.J. Wilder from intrep.io for recording this episode!
Fundamentals of Autoencoders
Autoencoders are neural networks designed to reconstruct their input data by passing data through a compressed intermediate representation called a "code."
The architecture typically follows an hourglass shape: a wide input and output separated by a narrower bottleneck layer that enforces information compression.
The encoder compresses input data into the code, while the decoder reconstructs the original input from this code.
Comparison with Supervised Learning
Unlike traditional supervised learning, where the output differs from the input (e.g., image classification), autoencoders use the same vector for both input and output.
Use Cases: Dimensionality Reduction and Representation
Autoencoders perform dimensionality reduction by learning compressed forms of high-dimensional data, making it easier to visualize and process data with many features.
The compressed code can be used for clustering, visualization in 2D or 3D graphs, and input into subsequent machine learning models, saving computational resources and improving scalability.
Feature Learning and Embeddings
Autoencoders enable feature learning by extracting abstract representations from the input data, similar in concept to learned embeddings in large language models (LLMs).
While effective for many data types, autoencoder-based encodings are le…
-
MLG 035 Large Language Models 2
8 mei 2025 · 45 min
At inference, large language models use in-context learning with zero-, one-, or few-shot examples to perform new tasks without weight updates, and can be grounded with Retrieval Augmented Generation (RAG) by embedding documents into vector databases for real-time factual lookup using cosine similarity. LLM agents autonomously plan, act, and use external tools via orchestrated loops with persistent memory, while recent benchmarks like GPQA (STEM reasoning), SWE Bench (agentic coding), and MMMU (multimodal college-level tasks) test performance alongside prompt engineering techniques such as chain-of-thought reasoning, structured few-shot prompts, positive instruction framing, and iterative self-correction. Lees meer
Links
Notes and resources at ocdevel.com/mlg/mlg35
Build the future of multi-agent software with AGNTCY
Try a walking desk stay healthy & sharp while you learn & code
In-Context Learning (ICL)
Definition: LLMs can perform tasks by learning from examples provided directly in the prompt without updating their parameters.
Types:
Zero-shot: Direct query, no examples provided.
One-shot: Single example provided.
Few-shot: Multiple examples, balancing quantity with context window limitations.
Mechanism: ICL works through analogy and Bayesian inference, using examples as semantic priors to activate relevant internal representations.
Emergent Properties: ICL is an "inference-time training" approach, leveraging the model's pre-trained knowledge without gradient updates; its effectiveness can be enhanced with diverse, non-redundant examples.
Retrieval Augmented Generation (RAG) and Grounding
Grounding: Connecting LLMs with external knowledge bases to supplement or update static training data.
Motivation: LLMs' training data becomes outdated or lacks proprietary/specialized knowledge.
Benefit: Reduces hallucinations and improves factual accuracy by incorporating current or domain-specific information.
RAG Workflow:
Embedding: Documents are converted into vec…
-
MLG 034 Large Language Models 1
7 mei 2025 · 51 min
Explains language models (LLMs) advancements. Scaling laws - the relationships among model size, data size, and compute - and how emergent abilities such as in-context learning, multi-step reasoning, and instruction following arise once certain scaling thresholds are crossed. The evolution of the transformer architecture with Mixture of Experts (MoE), describes the three-phase training process culminating in Reinforcement Learning from Human Feedback (RLHF) for model alignment, and explores advanced reasoning techniques such as chain-of-thought prompting which significantly improve complex task performance. Lees meer
Links
Notes and resources at ocdevel.com/mlg/mlg34
Build the future of multi-agent software with AGNTCY
Try a walking desk stay healthy & sharp while you learn & code
Transformer Foundations and Scaling Laws
Transformers: Introduced by the 2017 "Attention is All You Need" paper, transformers allow for parallel training and inference of sequences using self-attention, in contrast to the sequential nature of RNNs.
Scaling Laws:
Empirical research revealed that LLM performance improves predictably as model size (parameters), data size (training tokens), and compute are increased together, with diminishing returns if only one variable is scaled disproportionately.
The "Chinchilla scaling law" (DeepMind, 2022) established the optimal model/data/compute ratio for efficient model performance: earlier large models like GPT-3 were undertrained relative to their size, whereas right-sized models with more training data (e.g., Chinchilla, LLaMA series) proved more compute and inference efficient.
Emergent Abilities in LLMs
Emergence: When trained beyond a certain scale, LLMs display abilities not present in smaller models, including:
In-Context Learning (ICL): Performing new tasks based solely on prompt examples at inference time.
Instruction Following: Executing natural language tasks not seen during training.
Multi-Step Reasoning & Chain of Thought (CoT): So…
-
MLA 024 Agentic Software Engineering: Specs, Verification, and the Review Loop
13 april 2025 · 33 min
How working engineers ship with coding agents: issues an agent can verify, plan mode before code, a verification loop with a browser in it, agent review of agent code, worktrees and CI, cost discipline, and where agents still fail. Lees meer
Links
Try a walking desk - stay healthy & sharp while you learn & code
More OCDevel shows - this one has siblings, each on its own subject and produced the same way
Third and last episode of the vibe-coding sequence. Vibe Coding in 2026 picked an agent; Inside a Coding Agent explained the mechanics. This one is the practice: how working engineers ship real software with Claude Code, Codex, and Antigravity without shipping garbage. Specs, verification loops, agent review, parallel worktrees, headless CI, cost discipline, and the failure modes.
From vibe coding to agentic engineering
Andrej Karpathy coined vibe coding in early 2025 and, a year later, proposed "agentic engineering" for professional work. His older idea of jagged intelligence (models clear hard problems and trip on trivial ones, unpredictably) is why the job is judgment rather than button-pressing. The frame for the episode: when implementation is cheap, the value moves to the two ends of the pipeline, specification (saying exactly what should be true) and verification (proving it). Vibe coding stays fine for throwaways; the rest applies to codebases with users.
Specs: issues as prompts, plan mode in Claude Code, Codex, and Antigravity
The prompt is a spec whether you meant it or not. The unit of work is a tracker issue with four parts: what's wrong, where to look, acceptance criteria a machine or a five-second human check can verify, and an explicit out-of-scope fence. Every serious agent has a read-only planning phase: Claude Code's plan mode (Shift+Tab or /plan), Codex's plan mode on the same keystroke with its own plan-mode reasoning effort, and Antigravity's implementation plan artifact. Judge a plan on three things: the files it names, the verification step it …
-
MLA 023 Inside a Coding Agent: Context, Instructions, Hooks, Skills, MCP
13 april 2025 · 34 min
A coding agent is a loop appending to a context window, and the window is what runs out. Instruction files, permissions, hooks, skills, MCP, subagents and memory explained as one mechanism, mapped across Claude Code, Codex and OpenCode. Lees meer
Links
Try a walking desk - stay healthy & sharp while you learn & code
More OCDevel shows - this one has siblings, each on its own subject and produced the same way
Second of three episodes on coding agents: how Claude Code, Codex, OpenCode and pi handle context, instruction files, permissions, hooks, skills, MCP, subagents and memory. Claude Code is the running example; each section maps the same concept to the other three.
The loop and why context is the scarce resource
A coding agent is a short program: send the conversation to the model, run whatever tool it asks for, append the result, repeat until the model answers with text alone. Every appended file and test log stays in the window for the life of the session, so the context window, not the model, is what runs out. Every mechanism below is a way of deciding what enters the window and when. Compaction summarizes the history when the window fills; Claude Code's auto-compact window and /compact are configurable, and /compact is itself an expensive request while /clear is free. Thinking is dialed by effort level in Claude Code and by model_reasoning_effort in the Codex configuration reference.
Instruction files: CLAUDE.md and AGENTS.md
AGENTS.md has become the cross-vendor instruction file, stewarded by the Agentic AI Foundation under the Linux Foundation and read by Codex, OpenCode, Cursor, Gemini CLI, GitHub Copilot, Jules, Aider, Zed and more. Claude Code reads only CLAUDE.md, bridged with an @AGENTS.md import; the Claude Code memory docs describe the managed, user, project and local layers, lazy subdirectory loading, @ imports up to four hops, path-scoped .claude/rules/, and re-injection after compaction. Codex's AGENTS.md guide walks from the git root down with a 32…
-
MLA 022 Vibe Coding: Codex vs Claude Code vs Antigravity vs Grok
9 februari 2025 · 28 min
What a coding agent actually is, and how Claude Code, OpenAI Codex, Google Antigravity and xAI's Grok Build differ in philosophy rather than features. Plus open harnesses pi and OpenCode, the open-weight coders, and a decision rule by constraint. Lees meer
Links
Try a walking desk - stay healthy & sharp while you learn & code
More OCDevel shows - this one has siblings, each on its own subject and produced the same way
First of three episodes on vibe coding: the field of coding agents (Claude Code, OpenAI Codex, Google Antigravity, Grok Build, pi, OpenCode) as of late 2026 and how to choose one. The next two cover the mechanics (Inside a Coding Agent) and the engineering practice (Agentic Software Engineering).
Vibe coding then and now
Andrej Karpathy's February 2025 post named "vibe coding": accept all, don't read the diffs, paste errors back in, and, the caveat everyone dropped, "not too bad for throwaway weekend projects." Collins made it Word of the Year 2025. The arc since is autocomplete, then chat, then agents that read, edit, run and iterate; the engineers who stayed with it moved from vibing to agentic engineering, which is the through line for the sequence.
Anatomy of a coding agent
The model and the harness are separate things, and most tool arguments are about one without noticing which. The harness is the loop around the model, and there are five parts worth naming: the model, the tools (read, write, shell, search, browser), the permission model and sandbox, the context strategy (what to keep, summarize, offload to files, or hand to a fresh subagent), and the surface (terminal, IDE, desktop, web, chat). Ask those five questions of any product; they matter more than the feature grid. The mechanics get their own episode.
Claude Code: terminal-first and composable
Anthropic's stated design is Unix-style composability: pipe logs into it, run it in CI, chain it with other tools. The terminal is the primary surface; the IDE extension, desktop app, web and mob…
-
MLG 033 Transformers
9 februari 2025 · 43 min
Links: Lees meer
Notes and resources at ocdevel.com/mlg/33
3Blue1Brown videos: https://3blue1brown.com/
Try a walking desk stay healthy & sharp while you learn & code
Try Descript audio/video editing with AI power-tools
Background & Motivation
RNN Limitations: Sequential processing prevents full parallelization—even with attention tweaks—making them inefficient on modern hardware.
Breakthrough: "Attention Is All You Need" replaced recurrence with self-attention, unlocking massive parallelism and scalability.
Core Architecture
Layer Stack: Consists of alternating self-attention and feed-forward (MLP) layers, each wrapped in residual connections and layer normalization.
Positional Encodings: Since self-attention is permutation invariant, add sinusoidal or learned positional embeddings to inject sequence order.
Self-Attention Mechanism
Q, K, V Explained:
Query (Q): The representation of the token seeking contextual info.
Key (K): The representation of tokens being compared against.
Value (V): The information to be aggregated based on the attention scores.
Multi-Head Attention: Splits Q, K, V into multiple "heads" to capture diverse relationships and nuances across different subspaces.
Dot-Product & Scaling: Computes similarity between Q and K (scaled to avoid large gradients), then applies softmax to weigh V accordingly.
Masking
Causal Masking: In autoregressive models, prevents a token from "seeing" future tokens, ensuring proper generation.
Padding Masks: Ignore padded (non-informative) parts of sequences to maintain meaningful attention distributions.
Feed-Forward Networks (MLPs)
Transformation & Storage: Post-attention MLPs apply non-linear transformations; many argue they're where the "facts" or learned knowledge really get stored.
Depth & Expressivity: Their layered nature deepens the model's capacity to represent complex patterns.
Residual Connections & Normalization
Residual Links: Crucial for gradient flow in deep architectures, preventing vani…
-
MLA 021 Databricks: Cloud Analytics and MLOps
22 juni 2022 · 26 min
Databricks is a cloud-based platform for data analytics and machine learning operations, integrating features such as a hosted Spark cluster, Python notebook execution, Delta Lake for data management, and seamless IDE connectivity. Raybeam utilizes Databricks and other ML Ops tools according to client infrastructure, scaling needs, and project goals, favoring Databricks for its balanced feature set, ease of use, and support for both startups and enterprises. Lees meer
Links
Notes and resources at ocdevel.com/mlg/mla-21
Try a walking desk stay healthy & sharp while you learn & code
Raybeam and Databricks
Raybeam is a data science and analytics company, recently acquired by Dept Agency.
While Raybeam focuses on data analytics, its acquisition has expanded its expertise into ML Ops and AI.
The company recommends tools based on client requirements, frequently utilizing Databricks for its comprehensive nature.
Understanding Databricks
Databricks is not merely an analytics platform; it is a competitor in the ML Ops space alongside tools like SageMaker and Kubeflow.
It provides interactive notebooks, Python code execution, and runs on a hosted Apache Spark cluster.
Databricks includes Delta Lake, which acts as a storage and data management layer.
Choosing the Right MLOps Tool
Raybeam evaluates each client's needs, existing expertise, and infrastructure before recommending a platform.
Databricks, SageMaker, Kubeflow, and Snowflake are common alternatives, with the final selection dependent on current pipelines and operational challenges.
Maintaining existing workflows is prioritized unless scalability or feature limitations necessitate migration.
Databricks Features
Databricks is accessible via a web interface similar to Jupyter Hub and can be integrated with local IDEs (e.g., VS Code, PyCharm) using Databricks Connect.
Notebooks on Databricks can be version-controlled with Git repositories, enhancing collaboration and preventing data loss.
The platform supports c…
-
MLA 020 Kubeflow and ML Pipeline Orchestration on Kubernetes
29 januari 2022 · 1 uur 9 min
Machine learning pipeline orchestration tools, such as SageMaker and Kubeflow, streamline the end-to-end process of data ingestion, model training, deployment, and monitoring, with Kubeflow providing an open-source, cross-cloud platform built atop Kubernetes. Organizations typically choose between cloud-native managed services and open-source solutions based on required flexibility, scalability, integration with existing cloud environments, and vendor lock-in considerations. Lees meer
Links
Notes and resources at ocdevel.com/mlg/mla-20
Try a walking desk stay healthy & sharp while you learn & code
Dirk-Jan Verdoorn - Data Scientist at Dept Agency
Managed vs. Open-Source ML Pipeline Orchestration
Cloud providers such as AWS, Google Cloud, and Azure offer managed machine learning orchestration solutions, including SageMaker (AWS) and Vertex AI (GCP).
Managed services provide integrated environments that are easier to set up and operate but often result in vendor lock-in, limiting portability across cloud platforms.
Open-source tools like Kubeflow extend Kubernetes to support end-to-end machine learning pipelines, enabling portability across AWS, GCP, Azure, or on-premises environments.
Introduction to Kubeflow
Kubeflow is an open-source project aimed at making machine learning workflow deployment on Kubernetes simple, portable, and scalable.
Kubeflow enables data scientists and ML engineers to build, orchestrate, and monitor pipelines using popular frameworks such as TensorFlow, scikit-learn, and PyTorch.
Kubeflow can integrate with TensorFlow Extended (TFX) for complete end-to-end ML pipelines, covering data ingestion, preprocessing, model training, evaluation, and deployment.
Machine Learning Pipelines: Concepts and Motivation
Production machine learning systems involve not just model training but also complex pipelines for data ingestion, feature engineering, validation, retraining, and monitoring.
Pipelines automate retraining based on model performance drif…
-
MLA 019 Cloud, DevOps & Architecture
13 januari 2022 · 1 uur 15 min
The deployment of machine learning models for real-world use involves a sequence of cloud services and architectural choices, where machine learning expertise must be complemented by DevOps and architecture skills, often requiring collaboration with professionals. Key concepts discussed include infrastructure as code, cloud container orchestration, and the distinction between DevOps and architecture, as well as practical advice for machine learning engineers wanting to deploy products securely and efficiently. Lees meer
Links
Notes and resources at ocdevel.com/mlg/mla-19
Try a walking desk stay healthy & sharp while you learn & code
;## Translating Machine Learning Models to Production
After developing and training a machine learning model locally or using cloud tools like AWS SageMaker, it must be deployed to reach end users.
A typical deployment stack involves the trained model exposed via a SageMaker endpoint, a backend server (e.g., Python FastAPI on AWS ECS with Fargate), a managed database (such as AWS RDS Postgres), an application load balancer (ALB), and a public-facing frontend (e.g., React app hosted on S3 with CloudFront and Route 53).
Infrastructure as Code and Automation Tools
Infrastructure as code (IaC) manages deployment and maintenance of cloud resources using tools like Terraform, allowing environments to be version-controlled and reproducible.
Terraform is favored for its structured approach and cross-cloud compatibility, while other tools like Cloud Formation (AWS-specific) and Pulumi offer alternative paradigms.
Configuration management tools such as Ansible, Chef, and Puppet automate setup and software installation on compute instances but are increasingly replaced by containerization and Dockerfiles.
Continuous Integration and Continuous Deployment (CI/CD) pipelines (with tools like AWS CodePipeline or CircleCI) automate builds, testing, and code deployment to infrastructure.
Containers, Orchestration, and Cloud Choices
Containers, enabled…
-
MLA 017 AWS Local Development Environment
6 november 2021 · 1 uur 5 min
AWS development environments for local and cloud deployment can differ significantly, leading to extra complexity and setup during cloud migration. By developing directly within AWS environments, using tools such as Lambda, Cloud9, SageMaker Studio, client VPN connections, or LocalStack, developers can streamline transitions to production and leverage AWS-managed services from the start. This episode outlines three primary strategies for treating AWS as your development environment, details the benefits and tradeoffs of each, and explains the role of infrastructure-as-code tools such as Terraform and CDK in maintaining replicable, trackable cloud infrastructure. Lees meer
Links
Notes and resources at ocdevel.com/mlg/mla-17
Try a walking desk stay healthy & sharp while you learn & code
Docker Fundamentals for Development
Docker containers encapsulate operating systems, packages, and code, which simplifies dependency management and deployment.
Files are added to containers using either the COPY command for one-time inclusion during a build or the volume directive for live synchronization during development.
Docker Compose orchestrates multiple containers on a local environment, while Kubernetes is used at larger scale for container orchestration in the cloud.
Docker and AWS Integration
Docker is frequently used in AWS, including for packaging and deploying Lambda functions, SageMaker jobs, and ECS/Fargate containers.
Deploying complex applications like web servers and databases on AWS involves using services such as ECR for image storage, ECS/Fargate for container management, RDS for databases, and requires configuration of networking components such as VPCs, subnets, and security groups.
Challenges in Migrating from Localhost to AWS
Local Docker Compose setups differ considerably from AWS managed services architecture.
Migrating to AWS involves extra steps such as pushing images to ECR, establishing networking with VPCs, configuring load balancers or API Gateway,…
-
MLA 016 AWS SageMaker MLOps 2
5 november 2021 · 1 uur
SageMaker streamlines machine learning workflows by enabling integrated model training, tuning, deployment, monitoring, and pipeline automation within the AWS ecosystem, offering scalable compute options and flexible development environments. Cloud-native AWS machine learning services such as Comprehend and Poly provide off-the-shelf solutions for NLP, time series, recommendations, and more, reducing the need for custom model implementation and deployment. Lees meer
Links
Notes and resources at ocdevel.com/mlg/mla-16
Try a walking desk stay healthy & sharp while you learn & code
Model Training and Tuning with SageMaker
SageMaker enables model training within integrated data and ML pipelines, drawing from components such as Data Wrangler and Feature Store for a seamless workflow.
Using SageMaker for training eliminates the need for manual transitions from local environments to the cloud, as models remain deployable within the AWS stack.
SageMaker Studio offers a browser-based IDE environment with iPython notebook support, providing collaborative editing, sharing, and development without the need for complex local setup.
Distributed, parallel training is supported with scalable EC2 instances, including AWS-proprietary chips for optimized model training and inference.
SageMaker's Model Debugger and monitoring tools aid in tracking performance metrics, model drift, and bias, offering alerts via CloudWatch and accessible graphical interfaces.
Flexible Development and Training Environments
SageMaker supports various model creation approaches, including default AWS environments with pre-installed data science libraries, bring-your-own Docker containers, and hybrid customizations via requirements files.
SageMaker JumpStart provides quick-start options for common ML tasks, such as computer vision or NLP, with curated pre-trained models and environment setups optimized for SageMaker hardware and operations.
Users can leverage Autopilot for end-to-end model training and de…
-
MLA 015 AWS SageMaker MLOps 1
4 november 2021 · 48 min
SageMaker is an end-to-end machine learning platform on AWS that covers every stage of the ML lifecycle, including data ingestion, preparation, training, deployment, monitoring, and bias detection. The platform offers integrated tools such as Data Wrangler, Feature Store, Ground Truth, Clarify, Autopilot, and distributed training to enable scalable, automated, and accessible machine learning operations for both tabular and large data sets. Lees meer
Links
Notes and resources at ocdevel.com/mlg/mla-15
Try a walking desk stay healthy & sharp while you learn & code
Amazon SageMaker: The Machine Learning Operations Platform
MLOps is deploying your ML models to the cloud. See MadeWithML for an overview of tooling (also generally a great ML educational run-down.)
Introduction to SageMaker and MLOps
SageMaker is a comprehensive platform offered by AWS for machine learning operations (MLOps), allowing full lifecycle management of machine learning models.
Its popularity provides access to extensive resources, educational materials, community support, and job market presence, amplifying adoption and feature availability.
SageMaker can replace traditional local development environments, such as setups using Docker, by moving data processing and model training to the cloud.
Data Preparation in SageMaker
SageMaker manages diverse data ingestion sources such as CSV, TSV, Parquet files, databases like RDS, and large-scale streaming data via AWS Kinesis Firehose.
The platform introduces the concept of data lakes, which aggregate multiple related data sources for big data workloads.
Data Wrangler is the entry point for data preparation, enabling ingestion, feature engineering, imputation of missing values, categorical encoding, and principal component analysis, all within an interactive graphical user interface.
Data wrangler leverages distributed computing frameworks like Apache Spark to process large volumes of data efficiently.
Visualization tools are integrated for explora…
-
MLA 014 Hosting and Deploying ML: Managed APIs, Serverless GPUs, Self-Hosting
18 januari 2021 · 36 min
Where the model behind your product should run in 2026: managed APIs vs open weights, AWS native vs Modal, RunPod and Cloud Run GPU, vLLM and SGLang, quantized CPU inference on Spot, batch pricing, prod evals, and infra as code. Lees meer
Links
Try a walking desk - stay healthy & sharp while you learn & code
More OCDevel shows - this one has siblings, each on its own subject and produced the same way
The infrastructure episode, standalone: where the model behind your product runs in 2026, and what each choice costs. Managed APIs versus self-hosted open weights, AWS native (Bedrock, SageMaker) versus serverless GPU platforms (Modal, RunPod, Cloud Run GPU) versus bare GPUs, the inference servers (vLLM, SGLang, llama.cpp), quantized CPU inference on Spot, queues and batch pricing, observability and evals, and a minute on infrastructure as code. The coding-agent workflow is covered in Vibe Coding in 2026 through Agentic Software Engineering; agent architecture in AI Agents in 2026.
Calling a model vs running one
The default for a product builder is a managed API: cost is linear in usage with no floor, while a self-hosted GPU costs the same idle as busy.
Four things flip the default: sustained volume, privacy or data residency, a strict latency shape, or a model only available as open weights. Move one workload when a flip applies, not the whole stack.
The cloud-hosted middle path: Amazon Bedrock's model catalog now spans Anthropic, OpenAI (including the open-weight gpt-oss models), Meta Llama, Mistral, DeepSeek, Qwen and more, and Custom Model Import serves your own safetensors weights on demand with no instance to manage.
The framing on rent vs own is still a16z's "Navigating the High Cost of AI Compute": renting wins for almost everyone; owning pays only at large steady spend.
AWS native
Lambda and Fargate still have no GPUs; the Lambda quotas page has no accelerator dimension and the Fargate FAQ sends GPU work to EC2. Lambda offers 10 GB memory, 15-minute timeouts,…
-
MLA 013 Tech Stack for Customer-Facing Machine Learning Products
3 januari 2021 · 48 min
Primary technology recommendations for building a customer-facing machine learning product include React and React Native for the front end, serverless platforms like AWS Amplify or GCP Firebase for authentication and basic server/database needs, and Postgres as the relational database of choice. Serverless approaches are encouraged for scalability and security, with traditional server frameworks and containerization recommended only for advanced custom backend requirements. When serverless options are inadequate, use Node.js with Express or FastAPI in Docker containers, and consider adding Redis for in-memory sessions and RabbitMQ or SQS for job queues, though many of these functions can be handled by Postgres. The machine learning server itself, including deployment strategies, will be discussed separately. Lees meer
Links
Notes and resources at ocdevel.com/mlg/mla-13
Try a walking desk stay healthy & sharp while you learn & code
Client Applications
React is recommended as the primary web front-end framework due to its compositional structure, best practice enforcement, and strong community support.
React Native is used for mobile applications, enabling code reuse and a unified JavaScript codebase for web, iOS, and Android clients.
Using React and React Native simplifies development by allowing most UI logic to be written in a single language.
Server (Backend) Options
The episode encourages starting with serverless frameworks, such as AWS Amplify or GCP Firebase, for rapid scaling, built-in authentication, and security.
Amplify allows seamless integration with React and handles authentication, user management, and database access directly from the client.
When direct client-to-database access is insufficient, custom business logic can be implemented using AWS Lambda or Google Cloud Functions without managing entire servers.
Only when serverless frameworks are insufficient should developers consider managing their own server code.
Recommended traditional backen…
-
MLA 012 Docker for Machine Learning Workflows
9 november 2020 · 32 min
Docker enables efficient, consistent machine learning environment setup across local development and cloud deployment, avoiding many pitfalls of virtual machines and manual dependency management. It streamlines system reproduction, resource allocation, and GPU access, supporting portability and simplified collaboration for ML projects. Machine learning engineers benefit from using pre-built Docker images tailored for ML, allowing seamless project switching, host OS flexibility, and straightforward deployment to cloud platforms like AWS ECS and Batch, resulting in reproducible and maintainable workflows. Lees meer
Links
Notes and resources at ocdevel.com/mlg/mla-12
Try a walking desk stay healthy & sharp while you learn & code
Traditional Environment Setup Challenges
Traditional machine learning development often requires configuring operating systems, GPU drivers (CUDA, cuDNN), and specific package versions directly on the host machine.
Manual setup can lead to version conflicts, resource allocation issues, and difficulty reproducing environments across different systems or between local and cloud deployments.
Tools like Anaconda and "pipenv" help manage Python and package versions, but they often fall short in managing system-level dependencies such as CUDA and cuDNN.
Virtual Machines vs Containers
Virtual machines (VMs) like VirtualBox or VMware allow multiple operating systems to run on a host, but they pre-allocate resources (RAM, CPU) up front and have limited access to host GPUs, restricting usability for machine learning tasks.
Docker uses containerization to package applications and dependencies, allowing containers to share host resources dynamically and to access the GPU directly, which is essential for ML workloads.
Benefits of Docker for Machine Learning
Dockerfiles describe the entire guest operating system and software environment in code, enabling complete automation and repeatability of environment setup.
Containers created from Dockerfiles use o…
-
MLG 032 Cartesian Similarity Metrics
8 november 2020 · 42 min
Try a walking desk to stay healthy while you study or work! Lees meer
Show notes at ocdevel.com/mlg/32.
L1/L2 norm, Manhattan, Euclidean, cosine distances, dot product
Normed distances link
A norm is a function that assigns a strictly positive length to each vector in a vector space. link
Minkowski is generalized. p_root(sum(xi-yi)^p). "p" = ? (1, 2, ..) for below.
L1: Manhattan/city-block/taxicab. abs(x2-x1)+abs(y2-y1). Grid-like distance (triangle legs). Preferred for high-dim space.
L2: Euclidean. sqrt((x2-x1)^2+(y2-y1)^2. sqrt(dot-product). Straight-line distance; min distance (Pythagorean triangle edge)
Others: Mahalanobis, Chebyshev (p=inf), etc
Dot product
A type of inner product.
Outer-product: lies outside the involved planes. Inner-product: dot product lies inside the planes/axes involved link. Dot product: inner product on a finite dimensional Euclidean space linkCosine (normalized dot)
-
MLA 011 Practical Clustering Tools
8 november 2020 · 35 min
Primary clustering tools for practical applications include K-means using scikit-learn or Faiss, agglomerative clustering leveraging cosine similarity with scikit-learn, and density-based methods like DBSCAN or HDBSCAN. For determining the optimal number of clusters, silhouette score is generally preferred over inertia-based visual heuristics, and it natively supports pre-computed distance matrices. Lees meer
Links
Notes and resources at ocdevel.com/mlg/mla-11
Try a walking desk stay healthy & sharp while you learn & code
K-means Clustering
K-means is the most widely used clustering algorithm and is typically the first method to try for general clustering tasks.
The scikit-learn KMeans implementation is suitable for small to medium-sized datasets, while Faiss's kmeans is more efficient and accurate for very large datasets.
K-means requires the number of clusters to be specified in advance and relies on the Euclidean distance metric, which performs poorly in high-dimensional spaces.
When document embeddings have high dimensionality (e.g., 768 dimensions from sentence transformers), K-means becomes less effective due to the limitations of Euclidean distance in such spaces.
Alternatives to K-means for High Dimensions
For text embeddings with high dimensionality, agglomerative (hierarchical) clustering methods are preferable, particularly because they allow the use of different similarity metrics.
Agglomerative clustering in scikit-learn accepts a pre-computed cosine similarity matrix, which is more appropriate for natural language processing.
Constructing the pre-computed distance (or similarity) matrix involves normalizing vectors and computing dot products, which can be efficiently achieved with linear algebra libraries like PyTorch.
Hierarchical algorithms do not use inertia in the same way as K-means and instead rely on external metrics, such as silhouette score.
Other clustering algorithms exist, including spectral, mean shift, and affinity propagation, which…
-
MLA 010 NLP packages: transformers, spaCy, Gensim, NLTK
28 oktober 2020 · 26 min
The landscape of Python natural language processing tools has evolved from broad libraries like NLTK toward more specialized packages such as Gensim for topic modeling, SpaCy for linguistic analysis, and Hugging Face Transformers for advanced tasks, with Sentence Transformers extending transformer models to enable efficient semantic search and clustering. Each library occupies a distinct place in the NLP workflow, from fundamental text preprocessing to semantic document comparison and large-scale language understanding. Lees meer
Links
Notes and resources at ocdevel.com/mlg/mla-10
Try a walking desk stay healthy & sharp while you learn & code
Historical Foundation: NLTK
NLTK ("Natural Language Toolkit") was one of the earliest and most popular Python libraries for natural language processing, covering tasks from tokenization and stemming to document classification and syntax parsing.
NLTK remains a catch-all "Swiss Army knife" for NLP, but many of its functions have been supplemented or superseded by newer tools tailored to specific tasks.
Specialized Topic Modeling and Phrase Analysis: Gensim
Gensim emerged as the leading library for topic modeling in Python, most notably via its LDA Topic Modeling implementation, which groups documents according to topic distributions.
Topic modeling workflows often use NLTK for initial preprocessing (tokenization, stop word removal, lemmatization), then vectorize with scikit-learn's TF-IDF, and finally model topics with Gensim's LDA.
Gensim also provides effective Bigrams/Trigrams, allowing the detection and combination of commonly-used word pairs or triplets (n-grams) to enhance analysis accuracy.
Linguistic Structure and Manipulation: SpaCy and Related Tools
spaCy is a deep-learning-based library for high-performance linguistic analysis, focusing on tasks such as part-of-speech tagging, named entity recognition, and syntactic parsing.
SpaCy supports integrated sentence and word tokenization, stop word removal, and lemmatiza…
-
MLA 009 Charting and Visualization Tools for Data Science
6 november 2018 · 25 min
Python charting libraries - Matplotlib, Seaborn, and Bokeh - explaining, their strengths from quick EDA to interactive, HTML-exported visualizations, and clarifies where D3.js fits as a JavaScript alternative for end-user applications. It also evaluates major software solutions like Tableau, Power BI, QlikView, and Excel, detailing how modern BI tools now integrate drag-and-drop analytics with embedded machine learning, potentially allowing business users to automate entire workflows without coding. Lees meer
Links
Notes and resources at ocdevel.com/mlg/mla-9
Try a walking desk stay healthy & sharp while you learn & code
Core Phases in Data Science Visualization
Exploratory Data Analysis (EDA):
EDA occupies an early stage in the Business Intelligence (BI) pipeline, positioned just before or sometimes merged with the data cleaning ("munging") phase.
The outputs of EDA (e.g., correlation matrices, histograms) often serve as inputs to subsequent machine learning steps.
Python Visualization Libraries
1. Matplotlib
The foundational plotting library in Python, supporting static, basic chart types.
Requires substantial boilerplate code for custom visualizations.
Serves as the core engine for many higher-level visualization tools.
Common EDA tasks (like plotting via .corr(), .hist(), and .scatter() methods on pandas DataFrames) depend on Matplotlib under the hood.
2. Pandas Plotting
Pandas integrates tightly with Matplotlib and exposes simple, one-line commands for common plots (e.g., df.corr(), df.hist()).
Designed to make quick EDA accessible without requiring detailed knowledge of Matplotlib's verbose syntax.
3. Seaborn
A high-level wrapper around Matplotlib, analogous to how Keras wraps TensorFlow.
Sets sensible defaults for chart styles, fonts, colors, and sizes, improving aesthetics with minimal effort.
Importing Seaborn can globally enhance the appearance of all Matplotlib plots, even without direct usage of Seaborn's plotting functions.
4. Bokeh
A power…
-
MLA 008 Exploratory Data Analysis (EDA)
26 oktober 2018 · 25 min
Exploratory data analysis (EDA) sits at the critical pre-modeling stage of the data science pipeline, focusing on uncovering missing values, detecting outliers, and understanding feature distributions through both statistical summaries and visualizations, such as Pandas' info(), describe(), histograms, and box plots. Visualization tools like Matplotlib, along with processes including imputation and feature correlation analysis, allow practitioners to decide how best to prepare, clean, or transform data before it enters a machine learning model. Lees meer
Links
Notes and resources at ocdevel.com/mlg/mla-8
Try a walking desk stay healthy & sharp while you learn & code
EDA in the Data Science Pipeline
Position in Pipeline: EDA is an essential pre-processing step in the business intelligence (BI) or data science pipeline, occurring after data acquisition but before model training.
Purpose: The goal of EDA is to understand the data by identifying:
Missing values (nulls)
Outliers
Feature distributions
Relationships or correlations between variables
Data Acquisition and Initial Inspection
Data Sources: Data may arrive from various streams (e.g., Twitter, sensors) and is typically stored in structured formats such as databases or spreadsheets.
Loading Data: In Python, data is often loaded into a Pandas DataFrame using commands like pd.read_csv('filename.csv').
Initial Review:
df.info(): Displays data types and counts of non-null entries by column, quickly highlighting missing values.
df.describe(): Provides summary statistics for each column, including count, mean, standard deviation, min/max, and quartiles.
Handling Missing Data and Outliers
Imputation:
Missing values must often be filled (imputed), as most machine learning algorithms cannot handle nulls.
Common strategies: impute with mean, median, or another context-appropriate value.
For example, missing ages can be filled with the column's average rather than zero, to avoid introducing skew.
Outlier Strate…
-
MLA 007 Jupyter Notebooks
16 oktober 2018 · 17 min
Jupyter Notebooks, originally conceived as IPython Notebooks, enable data scientists to combine code, documentation, and visual outputs in an interactive, browser-based environment supporting multiple languages like Python, Julia, and R. This episode details how Jupyter Notebooks structure workflows into executable cells - mixing markdown explanations and inline charts - which is essential for documenting, demonstrating, and sharing data analysis and machine learning pipelines step by step. Lees meer
Links
Notes and resources at ocdevel.com/mlg/mla-7
Try a walking desk stay healthy & sharp while you learn & code
Overview of Jupyter Notebooks
Historical Context and Scope
Jupyter Notebooks began as IPython Notebooks focused solely on Python.
The project was renamed Jupyter to support additional languages - namely Julia ("JU"), Python ("PY"), and R ("R") - broadening its applicability for data science and machine learning across multiple languages.
Interactive, Narrative-Driven Coding
Jupyter Notebooks allow for the mixing of executable code, markdown documentation, and rich media outputs within a browser-based interface.
The coding environment is structured as a sequence of cells where each cell can independently run code and display its output directly underneath.
Unlike traditional Python scripts, which output results linearly and impermanently, Jupyter Notebooks preserve the stepwise development process and its outputs for later review or publication.
Typical Workflow Example
Stepwise Data Science Pipeline Construction
Import necessary libraries: Each new notebook usually starts with a cell for imports (e.g., matplotlib, scikit-learn, keras, pandas).
Data ingestion phase: Read data into a pandas DataFrame via read_csv for CSVs or read_sql for databases.
Exploratory analysis steps: Use DataFrame methods like .info() and .describe() to inspect the dataset; results are rendered below the respective cell.
Model development: Train a machine learning model - for …
-
MLA 006 Salaries for Data Science & Machine Learning
19 juli 2018 · 20 min
O'Reilly's 2017 Data Science Salary Survey finds that location is the most significant salary determinant for data professionals, with median salaries ranging from $134,000 in California to under $30,000 in Eastern Europe, and highlights that negotiation skills can lead to salary differences as high as $45,000. Other key factors impacting earnings include company age and size, job title, industry, and education, while popular tools and languages—such as Python, SQL, and Spark—do not strongly influence salary despite widespread use. Lees meer
Links
Notes and resources at ocdevel.com/mlg/mla-6
Try a walking desk stay healthy & sharp while you learn & code
Global and Regional Salary Differences
Median Global Salary: $90,000 USD, up from $85,000 the previous year.
Regional Breakdown:
United States: $112,000 median; California leads at $134,000.
Western Europe: $57,000—about half the US median.
Australia & New Zealand: Second after the US.
Eastern Europe: Below $30,000.
Asia: Wide interquartile salary range, indicating high variability.
Demographic and Personal Factors
Gender: Women's median salaries are $8,000 lower than men's. Women make up 20% of respondents but are increasing in number.
Age & Experience: Higher age/experience correlates with higher salaries, but the proportion of older professionals declines.
Education: Nearly all respondents have at least a master's; PhD holders earn only about $5,000 more than those with a master's.
Negotiation Skills: Self-reported strong salary negotiation skills are linked to $45,000 higher median salaries (from $70,000 for lowest to $115,000 for highest bargaining skill).
Industry, Company, and Role
Industry Impact:
Highest salaries found in search/social networking and media/entertainment.
Education and non-profit offer the lowest pay.
Company Age & Size:
Companies aged 2–5 years offer higher than average pay; less than 2 years old offer much lower salaries (~$40,000).
Large organizations generally pay more.
Job…
-
MLA 005 Shapes and Sizes: Tensors and NDArrays
9 juni 2018 · 27 min
Explains the fundamental differences between tensor dimensions, size, and shape, clarifying frequent misconceptions—such as the distinction between the number of features ("columns") and true data dimensions—while also demystifying reshaping operations like expand_dims, squeeze, and transpose in NumPy. Through practical examples from images and natural language processing, listeners learn how to manipulate tensors to match model requirements, including scenarios like adding dummy dimensions for grayscale images or reordering axes for sequence data. Lees meer
Links
Notes and resources at ocdevel.com/mlg/mla-5
Try a walking desk stay healthy & sharp while you learn & code
Definitions
Tensor: A general term for an array of any number of dimensions.
0D Tensor (Scalar): A single number (e.g., 5).
1D Tensor (Vector): A simple list of numbers.
2D Tensor (Matrix): A grid of numbers (rows and columns).
3D+ Tensors: Higher-dimensional arrays, such as images or batches of images.
NDArray (NumPy): Stands for "N-dimensional array," the foundational array type in NumPy, synonymous with "tensor."
Tensor Properties
Dimensions
Number of nested levels in the array (e.g., a matrix has two dimensions: rows and columns).
Access in NumPy: Via .ndim property (e.g., array.ndim).
Size
Total number of elements in the tensor.
Examples:
Scalar: size = 1
Vector: size equals number of elements (e.g., 5 for [1, 2, 3, 4, 5])
Matrix: size = rows × columns (e.g., 10×10 = 100)
Access in NumPy: Via .size property.
Shape
Tuple listing the number of elements per dimension.
Example: An image with 256×256 pixels and 3 color channels has shape = (256, 256, 3).
Common Scenarios & Examples
Data Structures in Practice
CSV/Spreadsheet Example: Dataset with 1 million housing examples and 50 features:
Shape: (1_000_000, 50)
Size: 50,000,000
Image Example (RGB): 256×256 pixel image:
Shape: (256, 256, 3)
Dimensions: 3 (width, height, channels)
Batching for Models:
For a convolutional neura…
-
MLA 003 Storage: HDF, Pickle, Postgres
24 mei 2018 · 18 min
Practical workflow of loading, cleaning, and storing large datasets for machine learning, moving from ingesting raw CSVs or JSON files with pandas to saving processed datasets and neural network weights using HDF5 for efficient numerical storage. It clearly distinguishes among storage options—explaining when to use HDF5, pickle files, or SQL databases—while highlighting how libraries like pandas, TensorFlow, and Keras interact with these formats and why these choices matter for production pipelines. Lees meer
Links
Notes and resources at ocdevel.com/mlg/mla-3
Try a walking desk stay healthy & sharp while you learn & code
Data Ingestion and Preprocessing
Data Sources and Formats:
Datasets commonly originate as CSV (comma-separated values), TSV (tab-separated values), fixed-width files (FWF), JSON from APIs, or directly from databases.
Typical applications include structured data (e.g., real estate features) or unstructured data (e.g., natural language corpora for sentiment analysis).
Pandas as the Core Ingestion Tool:
Pandas provides versatile functions such as read_csv, read_json, and others to load various file formats with robust options for handling edge cases (e.g., file encodings, missing values).
After loading, data cleaning is performed using pandas: dropping or imputing missing values, converting booleans and categorical columns to numeric form.
Data Encoding for Machine Learning:
All features must be numerical before being supplied to machine learning models like TensorFlow or Keras.
Categorical data is one-hot encoded using pandas.get_dummies, converting strings to binary indicator columns.
The underlying NumPy array of a DataFrame is accessed via df.values for direct integration with modeling libraries.
Numerical Data Storage Options
HDF5 for Storing Processed Arrays:
HDF5 (Hierarchical Data Format version 5) enables efficient storage of large multidimensional NumPy arrays.
Libraries like h5py and built-in pandas functions (to_hdf) allow seamless…
-
MLA 002 Numpy & Pandas
24 mei 2018 · 18 min
NumPy enables efficient storage and vectorized computation on large numerical datasets in RAM by leveraging contiguous memory allocation and low-level C/Fortran libraries, drastically reducing memory footprint compared to native Python lists. Pandas, built on top of NumPy, introduces labelled, flexible tabular data manipulation—facilitating intuitive row and column operations, powerful indexing, and seamless handling of missing data through tools like alignment, reindexing, and imputation. Lees meer
Links
Notes and resources at ocdevel.com/mlg/mla-2
Try a walking desk stay healthy & sharp while you learn & code
NumPy: Efficient Numerical Arrays and Vectorized Computation
Purpose and Design
NumPy ("Numerical Python") is the foundational library for handling large numerical datasets in RAM.
It introduces the ndarray (n-dimensional array), which is synonymous with a tensor—enabling storage of vectors, matrices, or higher-dimensional data.
Memory Efficiency
NumPy arrays are homogeneous: all elements share a consistent data type (e.g., float64, int32, bool).
This data type awareness enables allocation of tightly-packed, contiguous memory blocks, optimizing both RAM usage and data access speed.
Memory footprint can be orders of magnitude lower than equivalent native Python lists; for example, tasks that exhausted 32GB of RAM using Python lists could drop to just 6GB with NumPy structures.
Vectorized Operations
NumPy supports vectorized calculations: operations (such as squaring all elements) are applied across entire arrays in a single step, without explicit Python loops.
These operations are operator-overloaded and are executed by delegating instructions to low-level, highly optimized C or Fortran routines, delivering significant computational speed gains.
Conditional operations and masking, such as zeroing out negative numbers (akin to a ReLU activation), can be done efficiently with Boolean masks.
Pandas: Advanced Tabular Data Manipulation
Relationship to NumPy…
-
MLA 001 Degrees, Certificates, and Machine Learning Careers
24 mei 2018 · 11 min
While industry-respected credentials like Udacity Nanodegrees help build a practical portfolio for machine learning job interviews, they remain insufficient stand-alone qualifications—most roles require a Master's degree as a near-hard requirement, especially compared to more flexible web development fields. A Master's, such as Georgia Tech's OMSCS, not only greatly increases employability but is strongly recommended for those aiming for entry into machine learning careers, while a PhD is more appropriate for advanced, research-focused roles with significant time investment. Lees meer
Links
Notes and resources at ocdevel.com/mlg/mla-1
Online Certificates: Usefulness and Limitations
Udacity Nanodegree
Provides valuable hands-on experience and a practical portfolio of machine learning projects.
Demonstrates self-motivation and the ability to self-teach.
Not industry-recognized as a formal qualification—does not by itself suffice for job placement in most companies.
Best used as a supplement to demonstrate applied skills, especially in interviews where coding portfolios (e.g., on GitHub) are essential.
Coursera Specializations
Another MOOC resource similar to Udacity, but Udacity's Nanodegree is cited as closer to real-world relevance among certificates.
Neither is accredited or currently accepted as a substitute for formal university degrees by most employers.
The Role of a Portfolio
Possessing a portfolio with multiple sophisticated projects is critical, regardless of educational background.
Interviewers expect examples showcasing data processing (e.g., with Pandas and NumPy), analysis, and end-to-end modeling using libraries like scikit-learn or TensorFlow.
Degree Requirements in Machine Learning
Bachelor's Degree
Often sufficient for software engineering and web development roles but generally inadequate for machine learning positions.
In web development, non-CS backgrounds and bootcamp graduates are commonplace; the requirement is flexible.
Machine learn…
-
MLG 029 Reinforcement Learning Intro
5 februari 2018 · 43 min
Notes and resources: ocdevel.com/mlg/29 Lees meer
Try a walking desk to stay healthy while you study or work!
Reinforcement Learning (RL) is a fundamental component of artificial intelligence, different from purely being AI itself. It is considered a key aspect of AI due to its ability to learn through interactions with the environment using a system of rewards and punishments.
Links:
openai/baselines
reinforceio/tensorforce
NervanaSystems/coach
rll/rllab
Differential Computers
Concepts and Definitions
Reinforcement Learning (RL):
RL is a framework where an "agent" learns by interacting with its environment and receiving feedback in the form of rewards or punishments.
It is part of the broader machine learning category, which includes supervised and unsupervised learning.
Unlike supervised learning, where a model learns from labeled data, RL focuses on decision-making and goal achievement.
Comparison with Other Learning Types
Supervised Learning:
Involves a teacher-student paradigm where models are trained on labeled data.
Common in applications like image recognition and language processing.
Unsupervised Learning:
Not commonly used in practical applications according to the experience shared in the episode.
Reinforcement Learning vs. Supervised Learning:
RL allows agents to learn independently through interaction, unlike supervised learning where training occurs with labeled data.
Applications of Reinforcement Learning
Games and Simulations:
Deep reinforcement learning is used in games like Go (AlphaGo) and video games, where the environment and possible rewards or penalties are predefined.
Robotics and Autonomous Systems:
Examples include robotics (e.g., Boston Dynamics mules) and autonomous vehicles that learn to navigate and make decisions in real-world environments.
Finance and Trading:
Utilized for modeling trading strategies that aim to optimize financial returns over time, although breakthrough performance in trading isn't yet evidenced.
…
-
MLG 028 Hyperparameters 2
4 februari 2018 · 51 min
Notes and resources: ocdevel.com/mlg/28 Lees meer
Try a walking desk to stay healthy while you study or work!
More hyperparameters for optimizing neural networks. A focus on regularization, optimizers, feature scaling, and hyperparameter search methods.
Hyperparameter Search Techniques
Grid Search involves testing all possible permutations of hyperparameters, but is computationally exhaustive and suited for simpler, less time-consuming models.
Random Search selects random combinations of hyperparameters, potentially saving time while potentially missing the optimal solution.
Bayesian Optimization employs machine learning to continuously update and hone in on efficient hyperparameter combinations, avoiding the exhaustive or random nature of grid and random searches.
Regularization in Neural Networks
L1 and L2 Regularization penalize certain parameter configurations to prevent model overfitting; often smoothing overfitted parameters.
Dropout randomly deactivates neurons during training to ensure the model doesn't over-rely on specific neurons, fostering better generalization.
Optimizers
Optimizers like Adam, which combines elements of momentum and adaptive learning rates, are explained as vital tools for refining the learning process of neural networks.
Adam, being the most sophisticated and commonly used optimizer, improves upon simpler techniques like momentum by incorporating more advanced adaptative features.
Initializers
The importance of weight initialization is underscored with methods like uniform random initialization and the more advanced Xavier initialization to prevent neural networks from starting in 'stuck' states.
Feature Scaling
Different scaling methods such as standardization and normalization are used to scale feature inputs to small, standardized ranges.
Batch Normalization is highlighted, integrating scaling directly into the network to prevent issues like exploding and vanishing gradients through the normalization of layer outputs.
Links…
-
MLG 027 Hyperparameters 1
28 januari 2018 · 47 min
Full notes and resources at ocdevel.com/mlg/27 Lees meer
Try a walking desk to stay healthy while you study or work!
Hyperparameters are crucial elements in the configuration of machine learning models. Unlike parameters, which are learned by the model during training, hyperparameters are set by humans before the learning process begins. They are the knobs and dials that humans can control to influence the training and performance of machine learning models.
Definition and Importance
Hyperparameters differ from parameters like theta in linear and logistic regression, which are learned weights. They are choices made by humans, such as the type of model, number of neurons in a layer, or the model architecture. These choices can have significant effects on the model's performance, making them vital to conscious and informed tuning.
Types of Hyperparameters
Model Selection:
Choosing what model to use is itself a hyperparameter. For example, deciding between linear regression, logistic regression, naive Bayes, or neural networks.
Architecture of Neural Networks:
Number of Layers and Neurons: Deciding the width (number of neurons) and depth (number of layers).
Types of Layers: Whether to use LSTMs, convolutional layers, or dense layers.
Activation Functions:
They transform linear outputs into non-linear outputs. Popular choices include ReLU, tanh, and sigmoid, with ReLU being the default for most neural network layers.
Regularization and Optimization:
These influence the learning process. The use of L1/L2 regularization or dropout, as well as the type of optimizer (e.g., Adam, Adagrad), are hyperparameters.
Optimization Techniques
Techniques like grid search, random search, and Bayesian optimization are used to systematically explore combinations of hyperparameters to find the best configuration for a given task. While these methods can be computationally expensive, they are necessary for achieving optimal model performance.
Challenges and Future Directions
The f…
-
MLG 026 Project Bitcoin Trader
27 januari 2018 · 39 min
Try a walking desk to stay healthy while you study or work! Lees meer
Ful notes and resources at ocdevel.com/mlg/26
NOTE. This episode is no longer relevant, and tforce_btc_trader no longer maintained. The current podcast project is Gnothi.
Episode Overview
TForce BTC Trader
Project: Trading Crypto
Special: Intuitively highlights decisions: hypers, supervised v reinforcement, LSTM v CNN
Crypto (v stock)
Bitcoin, Ethereum, Litecoin, Ripple
Many benefits (immutable permenant distributed ledger; security; low fees; international; etc)
For our purposes: popular, volatile, singular
Singular like Forex vs Stock (instruments)
Trading basics
Day, swing, investing
Patterns (technical analysis, vs fundamentals)
OHLCV / Candles
Indicators
Exchanges & Arbitrage (GDAX, Krakken)
Good because highlights lots
LSTM v CNN
Supervised v Reinforcement
Obvious net architectures (indicators, time-series, tanh v relu)
Episode Summary
The project "Bitcoin Trader" involves developing a Bitcoin trading bot using machine learning to capitalize on the hot topic of cryptocurrency and its potential profitability. The project will serve as a medium to delve into complex machine learning engineering topics, such as hyperparameter selection and reinforcement learning, over subsequent episodes.
Cryptocurrency, specifically Bitcoin, is used for its universal and decentralized nature, akin to a digital, secure, and democratic financial instrument like the US dollar. Bitcoin mining involves running complex calculations to manage the currency's existence, similar to a distributed Federal Reserve system, with transactions recorded on a secure and permanent ledger known as the blockchain.
The flexibility of cryptocurrency trading allows for machine learning applications across unsupervised, supervised, and reinforcement learning paradigms. This project will focus on using models such as LSTM recurrent neural networks and convolutional neural networks, highlighting Bitcoin's unique capacity …
-
MLG 025 Convolutional Neural Networks
30 oktober 2017 · 45 min
Try a walking desk to stay healthy while you study or work! Lees meer
Notes and resources at ocdevel.com/mlg/25
Filters and Feature Maps: Filters are small matrices used to detect visual features from an input image by applying them to local pixel patches, creating a 3D output called a feature map. Each filter is tasked with recognizing a specific pattern (e.g., edges, textures) in the input images.
Convolutional Layers: The filter is applied across the image to produce an output which is the feature map. A convolutional layer is composed of several feature maps, with depth corresponding to the number of filters applied.
Image Compression Techniques:
Window and Stride: The window is the size of the pixel patch examined by the filter, and stride determines how much the window moves over the image. Together, they allow compression of images by reducing the number of windows examined, effectively downsampling the image.
Padding: Padding allows the filter to account for border pixels that do not fit perfectly within the window size. 'Same' padding adds zero-padding to ensure all pixels are included, while 'valid' padding ignores excess pixels around the borders.
Max Pooling: Max pooling is a downsampling technique used to reduce the spatial dimensions of feature maps by taking the maximum value over a defined window, further compressing and reducing computational load.
Predefined Architectures: There are well-established predefined architectures like LeNet, AlexNet, and ResNet, which have been fine-tuned through competitions such as the ImageNet Challenge, and can be used directly or adapted for specific tasks in computer vision.
-
MLG 024 Tech Stack
7 oktober 2017 · 1 uur 2 min
Try a walking desk to stay healthy while you study or work! Lees meer
Notes and resources at ocdevel.com/mlg/24
Hardware
Desktop if you're stationary, as you'll get the best performance bang-for-buck and improved longevity; laptop if you're mobile.
Desktops. Build your own PC, better value than pre-built. See PC Part Picker, make sure to use an Nvidia graphics card. Generally shoot for 2nd-best of CPUs/GPUs. Eg, RTX 4070 currently (2024-01); better value-to-price than 4080+.
For laptops, see this post (updated).
OS / Software
Use Linux (I prefer Ubuntu), or Windows, WSL2, and Docker. See mla/12 for details.
Programming Tech Stack
Deep-learning frameworks. You'll use both TF & PT eventually, so don't get hung up. mlg/9 for details.
Tensorflow (and/or Keras)
PyTorch (and/or Lightning)
Shallow-learning / utilities: ScikitLearn, Pandas, Numpy
Cloud-hosting: AWS / GCP / Azure. mla/13 for details.
Episode Summary
The episode discusses setting up a tech stack tailored for machine learning, emphasizing the necessity of choosing a primary programming language and framework, which, in this case, are Python and TensorFlow. The decision is supported by the ongoing popularity and community support for these tools. This preference is further influenced by the necessity for GPU optimization, which TensorFlow provides, allowing for enhanced performance through utilizing Nvidia's CUDA technology.
A notable change in the landscape is the decline of certain deep learning frameworks such as Theano, and the rise of competitors like PyTorch, which is gaining traction due to its ease of use in comparison to TensorFlow. The author emphasizes the importance of selecting frameworks with robust community support and resources, highlighting TensorFlow's lead in the market in this respect.
For hardware, the suggestion is a custom-built PC with a powerful Nvidia GPU, such as the 1080 TI, running Ubuntu Linux for best compatibility. However, for those who favor cloud services, Amazon Web …
-
MLG 023 Deep NLP 2
21 augustus 2017 · 43 min
Try a walking desk to stay healthy while you study or work! Lees meer
Notes and resources at ocdevel.com/mlg/23
Neural Network Types in NLP
Vanilla Neural Networks (Feedforward Networks):
Used for general classification or regression tasks.
Examples include predicting housing costs or classifying images as cat, dog, or tree.
Convolutional Neural Networks (CNNs):
Primarily used for image-related tasks.
Recurrent Neural Networks (RNNs):
Used for sequence-based tasks such as weather predictions, stock market predictions, and natural language processing.
Differ from feedforward networks as they loop back onto previous steps to handle sequences over time.
Key Concepts and Applications
Supervised vs Reinforcement Learning:
Supervised learning involves training models using labeled data to learn patterns and create labels autonomously.
Reinforcement learning focuses on learning actions to maximize a reward function over time, suitable for tasks like gaming AI but less so for tasks like NLP.
Encoder-Decoder Models:
These models process entire input sequences before producing output, crucial for tasks like machine translation, where full context is needed before output generation.
Transforms sequences to a vector space (encoding) and reconstructs it to another sequence (decoding).
Gradient Problems & Solutions:
Vanishing and Exploding Gradient Problems occur during training due to backpropagation over time steps, causing information loss or overflow, notably in longer sequences.
Long Short-Term Memory (LSTM) Cells solve these by allowing RNNs to retain important information over longer time sequences, effectively mitigating gradient issues.
LSTM Functionality
An LSTM cell replaces traditional neurons in an RNN with complex machinery that regulates information flow.
Components within an LSTM cell:
Forget Gate: Decides which information to discard from the cell state.
Input Gate: Determines which information to update.
Output Gate: Controls the output from the…
-
MLG 022 Deep NLP 1
29 juli 2017 · 50 min
Try a walking desk to stay healthy while you study or work! Lees meer
Notes and resources at ocdevel.com/mlg/22
Deep NLP Fundamentals
Deep learning has had a profound impact on natural language processing by introducing models like recurrent neural networks (RNNs) that are specifically adept at handling sequential data. Unlike traditional linear models like linear regression, RNNs can address the complexities of language which appear from its inherent non-linearity and hierarchy. These models are able to learn complex features by combining data in multiple layers, which has revolutionized areas like sentiment analysis, machine translation, and more.
Neural Networks and Their Use in NLP
Neural networks can be categorized into regular feedforward neural networks and recurrent neural networks (RNNs). Feedforward networks are used for non-sequential tasks, while RNNs are useful for sequential data processing such as language, where the network's hidden layers are connected to enable learning over time steps. This loopy architecture allows RNNs to maintain a form of state or memory, making them effective for tasks where context is crucial. The challenge of mapping these sequences into meaningful output has led to architectures like the encoder-decoder model, which reads entire sequences to produce responses or translations, enhancing the network's ability to learn and remember context across long sequences.
Word Embeddings and Contextual Representations
A key challenge in processing natural language using machine learning models is representing words as numbers, as machine learning relies on mathematical operations. Initial representations like one-hot vectors were simple but lacked semantic meaning. To address this, word embeddings such as those generated by the Word2Vec model have been developed. These embeddings place words in a vector space where distance and direction between vectors are meaningful, allowing models to interpret semantic similarities and differences be…
-
MLG 020 Natural Language Processing 3
24 juli 2017 · 41 min
Try a walking desk to stay healthy while you study or work! Lees meer
Notes and resources at ocdevel.com/mlg/20
NLP progresses through three main layers: text preprocessing, syntax tools, and high-level goals, each building upon the last to achieve complex linguistic tasks.
Text Preprocessing
Text preprocessing involves essential steps such as tokenization, stemming, and stop word removal. These foundational tasks clean and prepare text for further analysis, ensuring that subsequent processes can be applied more effectively.
Syntax Tools
Syntax tools are crucial for understanding grammatical structures within text. Part of Speech Tagging identifies the role of words within sentences, such as noun, verb, or adjective. Named Entity Recognition (NER) distinguishes entities such as people, organizations, and dates, leveraging models like maximum entropy, support vector machines, or hidden Markov models.
Achieving High-Level Goals
High-level NLP goals include text classification, sentiment analysis, and optimizing search engines. Techniques such as the Naive Bayes algorithm enable effective text classification by simplifying documents into word occurrence models. Search engines benefit from the TF-IDF method in tandem with cosine similarity, allowing for efficient document retrieval and relevance ranking.
In-depth Look at Syntax Parsing
Syntax parsing delves into sentence structure through two primary approaches: context-free grammars (CFG) and dependency parsing. CFGs use production rules to break down sentences into components like noun phrases and verb phrases. Probabilistic enhancements to CFGs learn from datasets like the Penn Treebank to determine the likelihood of various grammatical structures. Dependency parsing, on the other hand, maps out word relationships through directional arcs, providing a visual dependency tree that highlights connections between components such as subjects and verbs.
Applications of NLP Tools
Syntax parsing plays a vital role in task…
-
MLG 019 Natural Language Processing 2
11 juli 2017 · 1 uur 6 min
Try a walking desk to stay healthy while you study or work! Lees meer
Notes and resources at ocdevel.com/mlg/19
Classical NLP Techniques:
Origins and Phases in NLP History: Initially reliant on hardcoded linguistic rules, NLP's evolution significantly pivoted with the introduction of machine learning, particularly shallow learning algorithms, leading eventually to deep learning, which is the current standard.
Importance of Classical Methods: Knowing traditional methods is still valuable, providing a historical context and foundation for understanding NLP tasks. Traditional methods can be advantageous with small datasets or limited compute power.
Edit Distance and Stemming:
Levenshtein Distance: Used for spelling corrections by measuring the minimal edits needed to transform one string into another.
Stemming: Simplifying a word to its base form. The Porter Stemmer is a common algorithm used.
Language Models:
Understand language legitimacy by calculating the joint probability of word sequences.
Use n-grams for constructing language models to increase accuracy at the expense of computational power.
Naive Bayes for Classification:
Ideal for tasks like spam detection, document classification, and sentiment analysis.
Relies on a 'bag of words' model, simplifying documents down to word frequency counts and disregarding sequence dependence.
Part of Speech Tagging and Named Entity Recognition:
Methods: Maximum entropy models, hidden Markov models.
Challenges: Feature engineering for parts of speech, complexity in named entity recognition.
Generative vs. Discriminative Models:
Generative Models: Estimate the joint probability distribution; useful with less data.
Discriminative Models: Focus on decision boundaries between classes.
Topic Modeling with LDA:
Latent Dirichlet Allocation (LDA) helps identify topics within large sets of documents by clustering words into topics, allowing for mixed membership of topics across documents.
Search and Similarity Measures:
U…
-
MLG 018 Natural Language Processing 1
26 juni 2017 · 58 min
Try a walking desk to stay healthy while you study or work! Lees meer
Full notes at ocdevel.com/mlg/18
Overview: Natural Language Processing (NLP) is a subfield of machine learning that focuses on enabling computers to understand, interpret, and generate human language. It is a complex field that combines linguistics, computer science, and AI to process and analyze large amounts of natural language data.
NLP Structure
NLP is divided into three main tiers: parts, tasks, and goals.
1. Parts
Text Pre-processing:
Tokenization: Splitting text into words or tokens.
Stop Words Removal: Eliminating common words that may not contribute to the meaning.
Stemming and Lemmatization: Reducing words to their root form.
Edit Distance: Measuring how different two words are, used in spelling correction.
2. Tasks
Syntactic Analysis:
Part-of-Speech (POS) Tagging: Identifying the grammatical roles of words in a sentence.
Named Entity Recognition (NER): Identifying entities like names, dates, and locations.
Syntax Tree Parsing: Analyzing the sentence structure.
Relationship Extraction: Understanding relationships between entities in text.
3. Goals
High-Level Applications:
Spell Checking: Correcting spelling mistakes using edit distances and context.
Document Classification: Categorizing texts into predefined groups (e.g., spam detection).
Sentiment Analysis: Identifying emotions or sentiments from text.
Search Engine Functionality: Document relevance and similarity using algorithms like TF-IDF.
Natural Language Understanding (NLU): Deciphering the meaning and intent behind sentences.
Natural Language Generation (NLG): Creating text, including chatbots and automatic summarization.
NLP Evolution and Algorithms
Evolution:
Early Rule-Based Systems: Initially relied on hard-coded linguistic rules.
Machine Learning Integration: Transitioned to using algorithms that improved flexibility and accuracy.
Deep Learning: Utilizes neural networks like Recurrent Neural Networks (RNN…
-
MLG 017 Checkpoint
4 juni 2017 · 8 min
Try a walking desk to stay healthy while you study or work! Lees meer
At this point, browse #importance:essential on ocdevel.com/mlg/resources with the 45m/d ML, 15m/d Math breakdown.
-
MLG 016 Consciousness
21 mei 2017 · 1 uur 14 min
Try a walking desk to stay healthy while you study or work! Lees meer
Full notes at ocdevel.com/mlg/16
Inspiration in AI Development
Early inspirations for AI development centered around solving challenging problems, but recent advancements like self-driving cars and automated scientific discoveries attract professionals due to potential economic automation and career opportunities.
The Singularity
The singularity suggests exponential technological growth leading to a point where AI and robotics automate all technology development, potentially achieving 'seed AI' capable of self-improvement and escaping human intervention.
Defining Consciousness
Consciousness distinguishes intelligence by awareness. Perception, self-identity, learning, memory, and awareness might all contribute to consciousness, but awareness or subjective experience (quaia) is viewed as a core component.
Hard vs. Soft Problems of Consciousness
The soft problems are those we know through sciences — like brain regions being associated with specific functions. The hard problem, however, is explaining how subjective experience arises from physical processes in the brain.
Theories and Debates
Emergence: Consciousness as an emergent property of intelligence.
Computational Theory of Mind (CTM): Any computing device could exhibit consciousness as it processes information.
Biological Plausibility vs. Functionalism: Whether AI must biologically resemble brains or just functionally replicate brain output.
The Future of Artificial Consciousness
Opinions vary widely on whether AI can achieve consciousness, depending on theories around biological plausibility and arguments like John Searl's Chinese Room. The matter of consciousness remains deeply philosophical, touching on human identity itself. The expansion of machine learning and AI might be humanity's next evolutionary step, potentially culminating in the creation of conscious entities.
-
MLG 015 Performance
7 mei 2017 · 43 min
Try a walking desk to stay healthy while you study or work! Lees meer
Full notes at ocdevel.com/mlg/15
Concepts
Performance Evaluation Metrics: Tools to assess how well a machine learning model performs tasks like spam classification, housing price prediction, etc. Common metrics include accuracy, precision, recall, F1/F2 scores, and confusion matrices.
Accuracy: The simplest measure of performance, indicating how many predictions were correct out of the total.
Precision and Recall:
Precision: The ratio of true positive predictions to the total positive predictions made by the model (how often your positive predictions were correct).
Recall: The ratio of true positive predictions to all actual positive examples (how often actual positives were captured).
Performance Improvement Techniques
Regularization: A technique used to reduce overfitting by adding a penalty for larger coefficients in linear models. It helps find a balance between bias (underfitting) and variance (overfitting).
Hyperparameters and Cross-Validation: Fine-tuning hyperparameters is crucial for optimal performance. Dividing data into training, validation, and test sets helps in tweaking model parameters. Cross-validation enhances generalization by checking performance consistency across different subsets of the data.
The Bias-Variance Tradeoff
High Variance (Overfitting): Model captures noise instead of the intended outputs. It's highly flexible but lacks generalization.
High Bias (Underfitting): Model is too simplistic, not capturing the underlying pattern well enough.
Regularization helps in balancing bias and variance to improve model generalization.
Practical Steps
Data Preprocessing: Ensure data completeness and consistency through normalization and handling missing values.
Model Selection: Use performance evaluation metrics to compare models and select the one that fits the problem best.
-
MLG 014 Shallow Algos 3
23 april 2017 · 48 min
Try a walking desk to stay healthy while you study or work! Lees meer
Full notes at ocdevel.com/mlg/14
Anomaly Detection Systems
Applications: Credit card fraud detection and server activity monitoring.
Concept: Identifying outliers on a bell curve.
Statistics: Central role of the Gaussian distribution (normal distribution) in detecting anomalies.
Process: Identifying significant deviations from the mean to detect outliers.
Recommender Systems
Types:
Content Filtering: Uses features of items (e.g., Pandora's Music Genome Project).
Collaborative Filtering: Based on user behavior and preferences, like "Users Also Liked" model utilized in platforms like Netflix and Amazon.
Applications in Machine Learning: Linear regression applications in recommender systems for predicting user preferences.
Markov Chains
Explanation: Series of states with probabilities dictating transitions to next states; present state is sufficient for predicting next state (Markov principle).
Use Cases: Often found in reinforcement learning and operations research.
Monte Carlo Simulation: Running simulations to determine the expected value or probable outcomes of Markov processes.
Resource
Andrew NG's Coursera Course - Week 9: Focuses on anomaly detection and recommender systems.
-
MLG 013 Shallow Algos 2
9 april 2017 · 56 min
Try a walking desk to stay healthy while you study or work! Lees meer
Full notes at ocdevel.com/mlg/13
Support Vector Machines (SVM)
Purpose: Classification and regression.
Mechanism: Establishes decision boundaries with maximum margin.
Margin: The thickness of the decision boundary, large margin minimizes overfitting.
Support Vectors: Data points that the margin directly affects.
Kernel Trick: Projects non-linear data into higher dimensions to find a linear decision boundary.
Naive Bayes Classifiers
Framework: Based on Bayes' Theorem, applies conditional probability.
Naive Assumption: Assumes feature independence to simplify computation.
Application: Effective for text classification using a "bag of words" method (e.g., spam detection).
Comparison with Deep Learning: Faster and more memory efficient than recurrent neural networks for text data, though less precise in complex document understanding.
Choosing an Algorithm
Assessment: Evaluate based on data type, memory constraints, and processing needs.
Implementation Strategy: Apply multiple algorithms and select the best-performing model using evaluation metrics.
Links
Andrew Ng Week 7
Pros/cons table for algos
Sci-Kit Learn's decision tree for algorithm selection.
Machine Learning with R book for SVMs and Naive Bayes.
"Mathematical Decision-Making" great courses series for Bayesian methods.
-
MLG 012 Shallow Algos 1
19 maart 2017 · 54 min
Try a walking desk to stay healthy while you study or work! Lees meer
Full notes at ocdevel.com/mlg/12
Topics
Shallow vs. Deep Learning: Shallow learning can often solve problems more efficiently in time and resources compared to deep learning.
Supervised Learning: Key algorithms include linear regression, logistic regression, neural networks, and K Nearest Neighbors (KNN). KNN is unique as it is instance-based and simple, categorizing new data based on proximity to known data points.
Unsupervised Learning:
Clustering (K Means): Differentiates data points into clusters with no predefined labels, essential for discovering data structures without explicit supervision.
Association Rule Learning: Example includes the a priori algorithm, which deduces the likelihood of item co-occurrence, commonly used in market basket analysis.
Dimensionality Reduction (PCA): Condenses features into simplified forms, maintaining the essence of the data, crucial for managing high-dimensional datasets.
Decision Trees: Utilized for both classification and regression, decision trees offer a visible, understandable model structure. Variants like Random Forests and Gradient Boosting Trees increase performance and reduce overfitting risks.
Links
Focus material: Andrew Ng Week 8.
A Tour of Machine Learning Algorithms for a comprehensive overview.
Scikit Learn image: A decision tree infographic for selecting the appropriate algorithm based on your specific needs.
Pros/cons table for various algorithms