Concepts starting with C
350 concepts, each with a plain-language explanation, examples and diagrams. Pick a letter or open a concept.
- Calculating Classification Loss — Classification accuracy is the performance measure a practitioner reports, but it is not differentiable, so a gradient-based…
- Calculating Model Parameters — The program estimates a model's memory size by multiplying the total parameter count by 4, assuming each parameter is a float32…
- Calculus — Backpropagation is an algorithm for computing the gradient values of a neural network.
- Calling a Function — A function call transfers execution to the function's code block and returns to the caller when the function finishes.
- Calling Built-in Functions — Arguments are values passed to a function during a call; parameters are variables inside the function that receive those values.
- Calling Functions and Using Return Values — A function is written like a regular subroutine, with the addition that you must specify the value it returns.
- Calling Functions with Multiple Arguments — Functions are reusable pieces of programs. They allow you to give a name to a block of statements, allowing you to run that…
- Calling Methods on Objects — The self parameter is the first parameter in every class method and refers to the instance itself.
- Calling Subroutines in Java — Local variables belong to the subroutine where they are declared.
- Capturing Groups and Backreferences — Greedy quantifiers expand to match the last occurrence of a pattern; non-greedy quantifiers match the first occurrence.
- Capturing Slices From Completed Engagements — A slice library is a collection of reusable code slices accumulated from past engagements and meant to be adapted for new…
- Carathéodory's Theorem — The compressed object is a subset of training points, not the weight vector itself.
- Career Paths in Forward Deployed Engineering — The source treats deployment FDE and pathfinder FDE as two different careers, not two levels of the same role.
- Catching Exceptions with try and except Blocks — The Python interpreter recovers from errors and returns a prompt; a script terminates immediately with a traceback.
- Category-Defining AI Products — The passage defines vertical AI startups as companies building category-defining AI products in specific verticals, and it…
- Cauchy-Schwartz Inequality — H2 ◦ S consists of all m-coordinate inner-product vectors produced by allowable w vectors.
- Causal Attention — Multi-head attention extends causal attention across several heads, each operating independently with its own weights.
- Causal Attention and Language Modeling — Two self-attention implementations can be made equivalent by assigning the weights from one instance to the other, with…
- Causal attention and multi-head attention — All context vectors are computed with one matrix multiplication: attn_weights @ inputs.
- Causal Attention in Large Language Models — A causal attention mask zeroes out attention weights for future positions so that each position attends only to itself and…
- Causes of Software Failure — Software failures range from annoyances to serious losses, and their consequences grow in proportion to the importance of the…
- Centroids and Cluster Representatives — The k-Means objective measures the sum of squared distances from each point to the centroid of its cluster.
- Chain Rule — Backpropagation computes gradients that help minimize the error between predicted and actual outputs.
- Chaining Conditions with elif — An if-else statement creates two mutually exclusive branches: one executes if the condition is true, the other if it is false.
- Change Control in Vendor Contracts — The engagement scope is defined by a signed scoping document attached as Schedule A, so the scope is read through that document…
- Changing Tensor Datatypes with .to() — The .to() method transfers a tensor to a GPU, and it is the same method used to change a tensor's datatype.
- Chapter 12: the loop from telemetry to evals and prompt changes — Designing for handoff means shaping the project from its earliest days so the customer's team can run the system after the…
- Chapter 4: Founder Traits — The founder role selects for four traits: technical depth, product instinct, commercial fluency, and ambiguity tolerance, and…
- Character Classes and Escape Sequences in Regex — Greedy quantifiers expand to match the last occurrence of a pattern; non-greedy quantifiers match the first occurrence.
- Character Classes and Quantifiers in Regex — Raw strings (r'...') are mandatory for regex patterns because they prevent Python from interpreting backslashes as escape…
- Character Classes and Quantifiers in Regular Expressions — The caret (^) is a zero-width anchor that matches the position at the very beginning of a line, not a character.
- Character Classes and Square Brackets — The backslash (\) is the escape character that converts special regex characters into literal symbols
- Character Classes: Matching Specific Sets of Characters — The period (.) in a regular expression is a wildcard that matches any single character—letters, digits, spaces, punctuation, or…
- Character Literals in Java — true and false are the only boolean literals, and they are written without quotes.
- Characteristics of Successful Early-Career Candidates — Early-career candidates who succeed tend to show three properties together: publicly shipped non-trivial AI work…
- Checked and Unchecked Exceptions — A custom exception class must extend Throwable or one of its subclasses, and it is usually built to represent a failure that no…
- Checking Your PyTorch Installation — The default command pip install torch automatically installs the GPU-capable build when the machine has a CUDA-compatible GPU…
- Chernoff's Bounds — Bennet's inequality bounds the probability of a large positive deviation by a sum of independent random variables.
- Choosing a Measure of Success — Think of machine learning as a workflow of connected decisions, not only as model construction.
- Choosing and Setting Up a Python Editor — A Python source file must be saved with the .py extension (for example, hello.py) so that the operating system and Python…
- Choosing Between Loop Types — Control structures in Java can contain other control structures, and any combination of one inside another is possible.
- Choosing Between Workflows and Agents — Agentic over-engineering is the pattern of adding agents, multi-agent designs, or orchestration frameworks where a simpler…
- Choosing Loss Functions for Classification and Regression — A Keras functional model can share one representation and branch into several named prediction heads.
- Choosing Meaningful Variable Names — Redundant comments restate what the code already shows; useful comments add context, meaning, or reasoning that the syntax…
- Choosing Meaningful Variable Names: Mnemonics and Readability — Descriptive variable names can paradoxically make code harder for beginners to parse because they blur the line between reserved…
- Choosing Network Architectures — The hypothesis space is the set of possible transformations or solutions available to a learning algorithm.
- Choosing Portfolio Projects — The recommended number of projects for a portfolio is three.
- Choosing Random Elements from a List with random.choice() — random.randint(low, high) generates a random integer within an inclusive range, including both the low and high endpoints.
- Choosing the Right Fine-Tuning Approach — Instruction fine-tuning improves a model's ability to understand and generate responses based on specific user instructions, and…
- Class Definition and Instance Methods — You must be wondering how Python gives the value for self and why you don't need to give a value for it. An example will make…
- Class Definition and Instantiation — The self parameter is the first parameter in every class method and refers to the instance itself.
- Class Definition and Structure — The __init__ method is a special method that runs automatically when you create an object, allowing you to initialize its state…
- Class Files and Compilation in Java — A resource is data a program uses that is not code, such as images, sounds, and text; the user normally does not need to know…
- Class hierarchy — Inheritance connects a specific subclass to a more general superclass.
- Classes and Member Variables — Access control determines the visibility and usability of a class member.
- Classes and Objects — A class defines a new type; an object is one real instance of that type, the same way an integer value like 5 is one instance of…
- Classes and Objects Fundamentals — An object created from a class is an instance of that class, and the variables it contains are called instance variables.
- Classes and Objects in Java — A package can contain both classes and other packages, and a package contained in another package is called a subpackage.
- Classes and Objects in Python — In Python, everything used in a program is generically called an object—numbers, strings, functions, and more.
- Classes and Objects: The Basics — __init__ is a special method that runs automatically when an object is instantiated, marking the beginning of the object's…
- Classes and Subroutines in Java — Text blocks provide a readable Java 17 syntax for multiline strings.
- Classes as Types — Classes have a dual role: they can contain static members and describe objects.
- Classes of Functions — Intervals over the real numbers form a class of binary-valued functions.
- Classical Conditioning and Model-Based Processes — Model-free reinforcement learning learns through trial and error without a model of the environment.
- Classical Conditioning and Prediction — The defining question is whether reinforcement depends on the animal's behavior.
- Classical Conditioning: Learning Predictive Relationships — Error-correction learning updates associative strength according to prediction error.
- Classical Machine Learning Algorithms — Feature engineering transforms raw data into more meaningful features before modeling.
- Classification — Supervised learning connects inputs with known targets through a collection of examples.
- Classification Algorithms — Early neural networks were explored decades before modern deep learning, but their development was constrained by training…
- Classification and Ranking Problems — A machine learning project needs an observable definition of success before progress can be measured.
- Classification Error — The Bayes optimal predictor f_D is defined relative to a probability distribution D.
- Classification Fine-tuning — The general process of creating an LLM has two stages: pretraining, which trains on a large, diverse dataset to build a broad…
- Classification Fine-Tuning for Large Language Models — Instruction fine-tuning trains a language model on a set of tasks, with each task presented alongside a specific instruction.
- Classification Loss Functions — Logistic loss evaluates how bad a prediction is for its true label.
- Classification Models — Model ensembling pools outputs from multiple models rather than relying on one model.
- Classification Problems — A class is a category in a classification problem.
- Classification tasks — Machine learning discovers data-processing rules from examples of inputs and expected outputs.
- Classification with Logistic Regression — Logistic regression is used for classification tasks.
- Classification with Softmax Outputs — Multi-input models use separate branches for separate data sources.
- Classifiers — Generalized loss functions provide a broad way to assign nonnegative values to model-domain pairs.
- Client and Server Roles in a Networked Game — The full Poker game state is known only to the PokerHub, not to the players.
- Client-Server Architecture — A socket is a two-way connection between two programs that allows both reading and writing of data, similar to a file but…
- Closing Files and Resource Management — Opening a file asks the operating system to locate the file by name and verify it exists and is readable.
- Cloud GPUs for Model Training — Larger models such as gpt2-medium (355M) are more computationally intensive than gpt2-small (124M), because they have more…
- Clustering — The supplied source pack does not define PCA or variance maximization.
- Clustering Algorithms — Linkage-based clustering begins with every data point as its own cluster.
- Clustering Objectives — Mutual information I(X;Y) measures dependence between two random variables.
- Clustering Techniques — Dimensionality reduction maps vectors from R^d to R^n using a linear transformation, where n is smaller than d.
- Clustering Techniques and Dimensionality Reduction — Clustering organizes objects into groups based on resemblance.
- Coarse Coding with Multiple Tilings — Multiple tilings provide the overlapping receptive fields needed for coarse coding.
- Code Comments and Readability — A docstring is a documentation string that Python stores as part of a function object, making it accessible during program…
- Code Organization and Structure — Reuse means writing a set of instructions once, naming it, and calling that name multiple times throughout a program
- Code Style and Conventions — Redundant comments restate what the code already shows; useful comments add context, meaning, or reasoning that the syntax…
- Code Testing and Validation — The software development process has five phases: What (Analysis), Do It (Implementation), Test (Testing and Debugging), Use…
- Coding a Text-Generating LLM — An LLM can generate text, and the source material notes that it can be coded to do so, making generation the foundation of an…
- Cognitive Maps in Reinforcement Learning — Latent learning separates the occurrence of learning from its immediate expression in behavior.
- Collections: Lists, Tuples, and Dictionaries — A tuple 1 is a sequence of values much like a list. The values stored in a tuple can be any type, and they are indexed by…
- Collective Reinforcement Learning in Multi-Agent Systems — REINFORCE and error backpropagation can support comparable learning in multilayer networks, but they use different processes.
- Colors and Fonts in Java Graphics — A graphics context is an object that bundles drawing subroutines with data such as the current color, the current font, and the…
- Colors and Pixel Control in Java Graphics — A pixel is one of the small squares arranged in rows and columns that make up a screen, and the computer controls each pixel's…
- Colors and the Color Class in Java — A transparent color is a Color object created with an alpha component, which controls its opacity; an ordinary three-argument…
- Colors in Java Graphics — A Paint object describes a fill or line color; it has no effect until it is installed in a Graphics2D context with setPaint().
- Column Class and Display — A table's data lives in a table model, and methods such as setValueAt, removeRow, and addRow change that data; the view updates…
- Combining Boolean Expressions with and, or, and not — A boolean expression evaluates to True or False, which belong to the bool data type.
- Combining Conditions with and and or — An if statement checks a boolean condition and executes an indented block only if that condition is true.
- Combining Search and Extract Operations — The $ anchor marks the end of a line in regular expressions, not a literal dollar sign character
- Command Line and IDE Development Environments — A jar file packs Java classes and resource files into one archive, and an executable jar names the class with the main() routine…
- Command Line Basics for Windows — Windows does not include the zip command by default; download and install it from the GnuWin32 project page
- Command-Line Basics for Unix and Linux — grep stands for Generalized Regular Expression Parser. It is a command-line program built into Unix, Linux, and macOS systems…
- Comments and Documentation in Java — An annotation is metadata, or metatext, written about a main text rather than as part of it.
- Common Exception Types — The try..except statement separates normal code (try block) from error-handling code (except blocks).
- Common Exception Types in Python — The Python interpreter recovers from errors and returns a prompt; a script terminates immediately with a traceback.
- Common Failure Modes in AI Engineering Engagements — A sponsor change can strand an engagement when the new sponsor does not care about the project, even if the technical work is…
- Common Python Errors and How to Fix Them — Syntax errors are usually easy to find, but there are a few gotchas. Whitespace errors can be tricky because spaces and tabs are…
- Common Python GUI Libraries and Their Features — Python has no single standard GUI tool; the choice depends on your specific project constraints rather than a universal best…
- Common Regex Patterns for Email and Phone Numbers — re.search() returns a match object when a pattern is found, or None when no match exists.
- Common String Methods — Strings are Python objects that bundle both data (the characters) and methods (built-in functions) into a single entity.
- Comparators and Sorting Keys — A TreeMap stores associations in a sorted tree, so its keys must be comparable, either through the Comparable interface or…
- Comparing and Sorting Data Structures — Tuples are immutable sequences indexed by integers, meaning their elements cannot be changed after creation.
- Comparing and Sorting Tuples — The DSU pattern transforms custom sorting into three simple, clear phases: decorate (add sort keys), sort (use Python's tuple…
- Comparing Dataset Sizes Across Language Models — The GPT-3 table's subsets total 499 billion tokens, but the model was trained on 300 billion tokens, and the source does not…
- Comparing Deployment and Pathfinder Careers — The source treats deployment FDE and pathfinder FDE as two different careers, not two levels of the same role.
- Comparing Objects in Java — Selection sort repeatedly finds the smallest remaining item in the unsorted region and places it at the boundary, so the sorted…
- Comparing Objects with compareTo — The == operator tests identity: whether two references refer to the same object in memory.
- Comparing Sequences and Strings — Tuple comparison proceeds element by element from left to right, stopping as soon as a difference is found.
- Comparing Strings: Equality and Ordering — Python treats uppercase and lowercase letters as different characters during string comparison because they have different ASCII…
- Comparing Tuples and Lists — Tuples support read-only indexing and slicing operations identical to lists.
- Comparing XML and JSON for Data Exchange — An XML element is a complete unit consisting of an opening tag, content, and a closing tag; it can also be represented as a…
- Comparison and Logical Operators — Comparison operators test relationships between values and return True or False, forming the foundation of conditional logic in…
- Comparison of Methods for Solving Finite Markov Decision Problems — Finite Markov decision problems can be approached with dynamic programming, Monte Carlo methods, or temporal-difference learning.
- Comparison Operators — Returns whether x is less than y. All comparison operators return True or False . Note the capitalization of these names.
- Comparison Operators and Boolean Logic — A palindrome is a text that reads the same forwards and backwards, identified by comparing the original string to its reversed…
- Comparison operators and conditionals — Loops scan through data by following a three-part structure: initialize a tracking variable, compute on each item, and inspect…
- Comparison Operators and Logical Expressions — Initialize the extreme variable to None before the loop to mark it as empty.
- Comparison Operators in Python — An if-else statement creates two mutually exclusive branches: one executes if the condition is true, the other if it is false.
- Competitive Pressure and Market Pricing — A well-designed contract aligns the vendor's revenue with the customer's outcome and turns the engagement into a flywheel rather…
- Compile-Time Errors in Java — Definite assignment requires the Java compiler to determine that a variable has been assigned before its value is used, and this…
- Compiled Languages — Languages that require source code to be converted into binary code (0s and 1s) using a compiler before execution.
- Compiler Warnings and Errors — A Java annotation is a modifier with no direct effect on the program it annotates; its value comes from what a compiler can…
- Compilers: Translating Code Before Execution — An interpreter translates and executes source code line by line, making Python suitable for interactive programming where you…
- Complex Swing Components and the Model-View-Controller Pattern — The model for a JTextComponent is an object of type Document, separate from the component you see.
- Components of the Statistical Learning Framework — This lesson orients you to the workflow of this course.
- Compression Bounds — A hypothesis class H is a set of functions from X to Y.
- Compression Bounds in Machine Learning — Axis aligned rectangles have all sides parallel to the axes and form an uncountable infinite class.
- Compression Schemes — Axis aligned rectangles have all sides parallel to the axes and form an uncountable infinite class.
- Compression Schemes for Halfspaces — Separating polynomials are functions of the form sign(p(x)), with p a degree-r polynomial on R^d.
- Compression-Based Generalization Bounds — Theorem 30.2 considers a learning rule A that receives m examples but returns a hypothesis determined by k of them through a…
- Computational Complexity of Learning Algorithms — Computational complexity measures the number of operations an algorithm performs.
- Computational Complexity of Training Neural Networks — Approximate ERM can remain computationally infeasible.
- Computational Foundations of Reinforcement Learning — Reinforcement learning algorithms are not uniformly modeled on neuroscience.
- Computationally feasible feature-selection approaches — Feature selection reduces a full feature collection to a subset used by the predictor.
- Computer Memory — Binary numbers use only 0 and 1.
- Computer Networks — The Internet is a worldwide network containing millions of connected computers.
- Computer Vision — The course is divided into two parts.
- Computer Vision with Deep Learning — Chapter 5 examines practical computer-vision examples with a focus on image classification.
- Computing Attention Scores for a Query — Normalization turns attention scores into attention weights that sum to 1, which helps interpretation and training stability
- Computing Attention Weights for All Input Tokens — Attention scores are dot products between input vectors and can be computed with nested loops or with inputs @ inputs.T.
- Computing Attention Weights Step by Step — Self-attention with trainable weights keeps the basic idea of computing context vectors as weighted sums over input vectors…
- Computing Context Vectors with Attention Weights — Attention scores are dot products between input vectors and can be computed with nested loops or with inputs @ inputs.T.
- Computing Softmax Probabilities for a Classifier — torch.argmax with dim=1 returns the index of the highest value in each row, which turns a row of class scores into a class label.
- Computing v* with Policy Iteration — Policy iteration is applicable to action values, not only state values.
- Computing Validation Set Losses — Computing training and validation set losses is a way to assess the quality of LLM-generated text during training.
- Concrete Subclasses and Object Creation — An abstract class is not used to construct objects; it exists only as a basis for making subclasses and to express the…
- Conditional Execution with if Statements — try-except blocks allow programs to catch and handle errors gracefully instead of crashing when unexpected situations occur.
- Conditional Logic — Python has no switch statement; this is a deliberate design choice, not an oversight.
- Conditional Logic and Decision Making — The Guardian Pattern strategically places a guard condition before a risky operation in an 'and' expression to prevent runtime…
- Conditional Logic in Python — Python has no switch statement; this is a deliberate design choice, not an oversight.
- Conditional Logic with Dictionaries — Dictionaries outperform lists and variables for character counting because they only allocate space for characters that actually…
- Conditional Logic with if Statements — An interactive input loop uses while True to run indefinitely and break to exit when the user provides a specific command.
- Conditional Probability — Realizability demands perfect agreement between some hypothesis in H and a target labeling function.
- Conditional Probability in Classification — 1-NN is analyzed as a sample-dependent hypothesis h_S for binary classification.
- Conditional Statements — A dictionary is a data structure that stores key-value pairs, allowing you to look up values by their meaningful keys rather…
- Conditional Statements (if, elif, else) — The if statement is used to check a condition: if the condition is true, we run a block of statements (called the if-block )…
- Conditional Statements (if/else) — When Python encounters a continue statement, it immediately stops executing the current iteration and returns to the top of the…
- Conditional Statements and Boolean Logic — The counter pattern is a fundamental computational technique: initialize a counter to 0, loop through data, check a condition…
- Conditional Statements and Comparisons — Counting uses a counter initialized to 0, incremented by 1 on each iteration, to track the number of elements processed.
- Conditional Statements and Control Flow — Python allows non-boolean values as operands in logical operators, interpreting any nonzero number as 'true'
- Conditional Statements and Decision Making — All programs are built from four fundamental patterns: sequential code (executing instructions in order), conditional code…
- Conditional Statements and Logic — raw_input() captures text from the keyboard and returns it as a string to your program.
- Conditional Statements and User Input — User-supplied comments in backup filenames provide context and improve file organization when managing multiple backups.
- Conditional Statements in Java — Boolean operators form complicated conditions from boolean values.
- Conditional Statements with if and else — The in operator is a boolean operator that returns True if a substring is found in a larger string, and False otherwise.
- Conditional Statements: if, elif, and else — A boolean expression evaluates to True or False, which belong to the bool data type.
- Conducting Effective Discovery Interviews — A discovery interview, as the source presents it, is a conversation of about thirty minutes aimed at learning how work is…
- Configuring the GPT Model with a Dictionary — The GPTModel architecture uses dropout layers in three distinct places: the embedding layer, the shortcut layer, and the…
- Configuring the PATH Variable — Open the Windows command line by clicking Start, then Run, typing cmd, and pressing Enter
- Configuring the PATH variable for Python on Windows — The process of modifying the Windows PATH environment variable to allow Python to be executed from the command line/DOS prompt.
- Connecting a Client to a Server in Java — TCP/IP is the paired protocol arrangement behind Internet communication, and its TCP half provides reliable two-way communication.
- Connecting Field Feedback to Product Decisions — The FDE role is described by practitioners in two ways: as a product strategy that discovers what the product must become, and…
- Connecting Python to SQLite Databases — Use the Database Browser for SQLite to verify that your Python programs are correctly reading and writing data to the database.
- Connecting to a Database and Creating Tables — SELECT retrieves specific columns and rows from a database table using WHERE to filter and ORDER BY to sort results.
- Connecting to a Database with Python — DROP TABLE IF EXISTS safely removes a table and allows scripts to run repeatedly without errors.
- Consistent Algorithms — The Halving algorithm predicts by majority vote among the hypotheses that remain viable.
- Constant-α Action-Value Methods — Initial estimates affect action-value methods because they provide the starting values used before experience is available.
- Constants and Shared Values in Programs — The chat room application consists of two programs: a server, ChatRoomServer.java, and clients.
- Constraint Enforcement during Optimization — Optimization-based artificial intelligence can behave unpredictably because a system may discover paths to its objective that…
- Constructing JSON with Python Dictionaries and Lists — json.loads() transforms a JSON string into a Python data structure by parsing the text and building corresponding lists…
- Constructors and Instance Variables — A custom exception class extends Exception or RuntimeException.
- Constructors and Object Creation in Java — Date, Random, and Color are standard Java classes in java.util and java.awt, and each must be imported before use.
- Constructors and Object Initialization in Java — A simple name inside a method is resolved first against local variables and parameters in scope, and only then against member…
- Containers and Components in Swing — Calling container.setLayout(null) removes the layout manager, so the programmer takes complete responsibility for positioning…
- Context managers and the with statement — The finally block executes unconditionally after try and except blocks, making it ideal for resource cleanup.
- Context Vectors and Input Representations — An attention mechanism transforms input elements into enhanced context vector representations.
- Contextualized Output Embeddings — LLMs commonly produce their own embeddings, which are part of the input layer and are updated during training.
- Continuing Tasks and On-Policy Distributions — The on-policy distribution describes how state probability is distributed under a policy.
- Continuous-Valued Features — RBFs turn the binary idea of coarse coding into a continuous feature response.
- Contract Alignment in Outcome Pricing Deals — Standard enterprise procurement is configured for SaaS-style contracts with predictable monthly fees, defined seat counts, and…
- Contract Analysis Script — The demo session ran a contract analysis script on five real inbound contracts, producing a memo for each that the deputy GC read.
- Contract Issue Identification — The demo session ran a contract analysis script on five real inbound contracts, producing a memo for each that the deputy GC read.
- Contract Structures for AI Deployments — A milestone-based contract releases a fraction of the total fee each time an agreed milestone is hit, so payment follows…
- Contract Structures for AI Pricing — A hybrid base-plus-outcome pricing model combines a base subscription fee with an outcome component.
- Control Abstractions and Machine Independence — A black box is a component that can be used without knowing its implementation, provided its interface is known.
- Control Flow and Program Logic — An Easter Egg is a harmless, hidden feature programmers add for fun; in this exercise, it is a special message triggered by the…
- Control Flow and Program Structure — A nested conditional is an if or if-else statement placed inside another, creating a hierarchy where the inner condition is only…
- Control Flow: if Statements — As you might have guessed, this is achieved using control flow statements. There are three control flow statements in Python if…
- Control Flow: if, elif, else Statements — Reserved words are a fixed set of 35 words that have unchangeable, singular meanings to Python and form the core of the…
- Control Flow: Loops and Conditionals — Use the continue statement to skip lines that do not meet your criteria, jumping immediately back to the next iteration of the…
- Control Flow: Making Decisions with if Statements — Programming languages, like natural languages, have vocabulary (words that must be spelled correctly) and grammar (rules for…
- Control or Operations Research Perspectives on Reinforcement Learning — Choose a resource category according to your reading goal.
- Control Statements — A control statement determines which statements run next, so the same code can take different paths depending on values at run…
- Control Statements and Subroutines — Control statements control the flow of a program's execution, which is the order in which its statements are carried out.
- Control with Function Approximation — Function approximation introduces distinctive challenges into reinforcement learning.
- Convergence in Optimization — Variable step size SGD changes the update scale during optimization.
- Convergence in Reinforcement-Learning Estimates — Sample-average updating reduces the step size according to αn(a) = 1/n.
- Convergence of Gradient Descent — Projection adds a constraint-enforcing second stage to the ordinary SGD update.
- Convergence of Semi-gradient Sarsa — Semi-gradient Sarsa with function approximation was first explored by Rummery and Niranjan in 1994.
- Convergence of TD Methods — Both TD and Monte Carlo methods can approach the correct predictions.
- Converting a Single Token ID into an Embedding Vector — An embedding layer applied to several token IDs returns a matrix with one row per input ID, so the row count follows the length…
- Converting Between Data Types — int() converts values to integers by truncating (not rounding) the decimal portion
- Converting Between Data Types: An Overview — float() converts integers and numeric strings to floating-point numbers, adding decimal representation where none existed.
- Converting Between Lists and Tuples — Commas create tuples, not parentheses. Parentheses are optional and exist only for readability.
- Converting GPT Model Outputs into Text — Initializing the 124M GPT model and printing its output tensor gives a shape of [2, 4, 50257], where 50257 is the tokenizer's…
- Converting Lists Back to Strings — A list of characters is fundamentally different from a string, even though both are sequences.
- Converting Logits to Class Labels — compute_accuracy returns the fraction of correct predictions on a dataset, a value between 0 and 1.
- Converting Python Objects to JSON with json.dumps() — json.loads() transforms a JSON string into native Python structures—lists and dictionaries—not a special JSON type.
- Converting Skeptical Stakeholders to Supporters — Stakeholders include anyone who can affect or be affected by a project, which usually goes beyond the technical team.
- Converting Strings to Numbers — NumberFormatException occurs when a string is not a legal representation of a number, as in Integer.parseInt("fred"), and…
- Converting Strings to Numbers with int() and float() — str() converts any value into its string representation without modifying the original value
- Converting to Integers with int() — float() converts integers and numeric strings to floating-point numbers, adding decimal representation where none existed.
- Converting to Strings with str() — float() converts integers and numeric strings to floating-point numbers, adding decimal representation where none existed.
- Converting Tokens to IDs — A vocabulary maps each unique token to a unique integer called a token ID, and it is built from the tokens in the training text.
- Converting XML to JSON — fromstring converts an XML string into a tree structure, enabling programmatic access to its data.
- Convex Functions — Convexity of a learning problem has two requirements.
- Convex Hulls and Convex Combinations — The compressed object is a subset of training points, not the weight vector itself.
- Convex Learning Problems — Convexity of a set means that every line segment joining two points in the set stays inside the set.
- Convex Learning Problems and Regularization — Linear regression can be expressed as a convex learning problem by representing each hypothesis with a parameter vector.
- Convex Loss Functions — Tikhonov regularization augments the loss with λ ‖w‖2.
- Convex Optimization — Regularization changes the optimization target by adding a term to the loss objective.
- Convex Sets — Convexity of a learning problem has two requirements.
- Convnet Filter Visualization — DeepDream uses the input to a convnet as the object being optimized.
- Convolutional Feature Maps — Subsampling replaces local groups of feature-map values with averaged summaries.
- Convolutional layers — The example creates a Keras Sequential model and adds layers in a fixed order.
- Convolutional Neural Network Architecture — A pretrained network is a saved network trained previously on a large dataset, such as ImageNet.
- Convolutional Neural Network Feature Visualization — DeepDream changes an existing image by maximizing activations inside a convolutional network.
- Convolutional Neural Network Representations — Style transfer assigns content and style to different input images and seeks a generated image that combines them.
- Convolutional Neural Networks — The convnet progressively exchanges spatial detail for deeper feature representations.
- Copying Arrays Element by Element — Assigning one array variable to another copies the reference, so both variables refer to the same array object.
- Core Python language — The fundamental programming principles and language structures that form the basis of Python, distinct from version-specific…
- Correct Labeling Function — Classifier error measures the probability of an incorrect prediction on a randomly drawn instance.
- Correctness of Programs — Efficiency is important, but it is secondary to correctness, and a program that is not correct is not efficient regardless of…
- Cost Minimization Clustering Objectives — The k-Means objective measures the sum of squared distances from each point to the centroid of its cluster.
- Cost-Benefit Analysis of Redesign — Early stakeholder involvement means bringing a stakeholder into the design process at the start, so objections can change the…
- Counter and Accumulator Patterns — A divisor D of a positive integer N is a number where N % D equals zero, meaning the remainder is zero.
- Counting and summing patterns — Loops scan through data by following a three-part structure: initialize a tracking variable, compute on each item, and inspect…
- Counting and Summing: Accumulating Values in Loops — Initialize the extreme variable to None before the loop to mark it as empty.
- Counting Neighbors on a Grid — Each cell's next state depends on whether it is alive or dead in the current time step.
- Counting Parameters in a GPT Model — The size of a GPT model is its parameter count multiplied by the bytes per parameter, and this example assumes 4 bytes for each…
- Counting Up with a Loop — A countdown loop repeatedly decreases a control variable until a condition is no longer true, printing or using the variable at…
- Counting with Loops — Data scanning loops follow a three-step construction: initialize variables before the loop, perform computation on each item…
- Counting Words and Analyzing Text Data — translate() with str.maketrans() is the most flexible method for removing or replacing characters; use empty fromstr and tostr…
- Counting Words with a Map — Sorting WordData objects by frequency in descending order means placing the record with the highest count first.
- Covering and Rademacher Complexity — An r-cover provides a nearby representative for every point in A.
- Covering Numbers — The chaining technique uses covering numbers to bound Rademacher complexity.
- Creating a JFrame Window — The default close operation, set with setDefaultCloseOperation, decides what happens when the user clicks a JFrame's close box.
- Creating a Program Specification — Problem analysis identifies gaps and ambiguities in a problem statement before you begin coding.
- Creating a Runbook for a Software Project — A showcase README has six sections in a fixed order: project description, impact statement, architecture diagram and…
- Creating a Table with CREATE TABLE — INSERT adds new rows to a table; specify the table, columns, and values.
- Creating a Vocabulary from a Training Set — Tokenization cuts text into individual tokens, and a new text sample is cut in the same way before any numbers are assigned.
- Creating Actions with AbstractAction — An Action can be passed to the constructor of a JButton or a JMenuItem, so one Action can drive several components.
- Creating an Effective Portfolio — A portfolio holds artifacts that a reviewer can examine, not restated resume bullets.
- Creating an Effective Project Showcase — The eval set is documented in /evals, with a README inside that directory.
- Creating and Assigning Variables — Variable names must start with a letter or underscore and can contain letters, numbers, and underscores. They cannot start with…
- Creating and Connecting to a Database — INSERT adds rows to a database table; commit() must be called to permanently save changes to the database file.
- Creating and Filling an Array of Objects — Once an array of objects is filled, classlist[i] refers to a Student object, and it can be used anywhere a Student variable…
- Creating and Indexing Lists — append adds a single element to the end of a list, treating the argument as one indivisible object
- Creating and Initializing Arrays — A parameter may have an array type such as int[], so one argument can deliver an entire array to a subroutine.
- Creating and Initializing Dictionaries — A dictionary is a mapping between keys and values, not a sequence indexed by position like a list.
- Creating and Initializing Lists — Lists are mutable: you can change their contents after creation by reassigning elements using bracket notation on the left side…
- Creating and Modifying Database Tables — A database is a persistent, disk-based file that stores data as key-value pairs, unlike a dictionary which lives in RAM and…
- Creating and Modifying Dictionaries — Keys and values are the two components of a key-value pair (item). Keys are unique identifiers; values are the data they point to.
- Creating and Modifying Lists — Built-in functions (len, sum, max, min) extract information from lists without requiring custom loops.
- Creating and Organizing Modules — An import statement tells Python to find a module file, execute its code, and make its contents available to your program.
- Creating and Querying Databases with Python — The Database Browser for SQLite is a visual tool that reads SQLite database files and displays their contents in a user-friendly…
- Creating and Querying Relationships Between Tables — The fundamental rule of database normalization is to never repeat the same string data in a column more than once.
- Creating and Running Threads — A thread can be defined by creating a subclass of Thread and overriding the run() method.
- Creating and Saving Python Files — Running a Python script means telling the Python interpreter to read and execute code from a file, rather than typing code…
- Creating and Starting Threads in Java — A thread is alive from the time it is started until it terminates, and a dead thread cannot be restarted; isAlive() tests…
- Creating and Unpacking Tuples — Tuples are immutable collections created using comma-separated values, optionally enclosed in parentheses. Once created, their…
- Creating and Using Custom Objects — The dir() function reveals all capabilities (methods and attributes) of any Python object by returning a list of strings.
- Creating and Using Objects in Java — Declaring an array of objects uses the class name as the base type, such as Student[] classlist.
- Creating and Using Your Own Modules — Import the math module using import math to load it into your program and create a module object.
- Creating Buttons in Java GUI Programming — A JButton can show an icon in addition to text, or instead of text, and icons are represented by the Icon interface.
- Creating Buttons in Java Swing — A BufferedImage is an in-memory canvas with a fixed width, height and type, and Graphics2D is the tool that paints onto it.
- Creating Common Dialog Boxes with JColorChooser — A dialog is a window used for short, single-purpose interactions, such as showing a message, asking a question, or letting the…
- Creating Custom Classes — A class is a blueprint; an object is an instance of that blueprint. When you assign a value like i = 5, you create an object of…
- Creating Custom Cursors — The ARGB color model stores each pixel with alpha, red, green, and blue components, and the alpha channel controls transparency.
- Creating Custom Exception Classes — Exceptions whose classes are not subclasses of Error or RuntimeException are checked exceptions, and the compiler requires the…
- Creating Custom JPanel Components — The main panel of the card game uses a BorderLayout, with the drawing surface in CENTER and the subpanel of three buttons in…
- Creating Data Loaders for Text Classification — Padding extends each input shorter than the target length until it reaches the maximum number of tokens the model supports, so…
- Creating Effective Portfolio Pieces with Anthropic Plugins — Anthropic plugin templates are enterprise templates introduced at Code with Claude in 2026, spanning seven named industry areas.
- Creating Menus and Menu Items — A JMenuBar is a container for menus with no name and a no-parameter constructor; menus are placed in it with add(JMenu).
- Creating Objects and Object Variables — Assigning one object variable to another copies the reference stored in the first variable, not the object it refers to.
- Creating Objects from Classes — A class is a template that defines what data and code each object will have; the class keyword does not create an object.
- Creating Objects with Constructors — An instance variable can receive an initial value directly in its declaration, such as public int die1 = 3;, and that value is…
- Creating Objects with new — An object is garbage when no variable refers to it, and the system reclaims its memory
- Creating Objects with the new Keyword — A variable of object type holds a reference to an object, never the object itself, so the object is not 'stored in' the variable.
- Creating Portfolio Projects without Real Customers — A candidate without a real customer can find one person with one real problem and treat solving it as a genuine engagement.
- Creating Reusable Code with Generic Classes and Methods — A type parameter is a placeholder written in angle brackets after a class name, and it works much like a formal parameter in a…
- Creating Streams — An array does not have a stream() method, so you cannot create a stream by calling stream() on the array itself.
- Creating Streams from Collections and Arrays — Stream.generate(supplier) creates a sequential stream that is effectively infinite: it keeps producing values forever or until…
- Creating Tables and Defining Schemas — A database connection is established using sqlite3.connect(filename), which creates a link to a local database file or remote…
- Creating Tables with SQL — Databases require you to declare column names and data types before creating a table, unlike Python lists or dictionaries which…
- Creating Tensors with torch.tensor — A tensor is a multi-dimensional data container, and PyTorch tensors are data containers for array-like structures.
- Creating Threads with Runnable — ExecutorService is a Java interface in java.util.concurrent that defines services for executing submitted tasks, and it is used…
- Creating Token Embeddings — Input-target pairs for next-word prediction are made by taking the input tokens and shifting them one position to form the…
- Creating Token Embeddings for LLM Training — A continuous vector representation, or embedding, is necessary because GPT-like LLMs are deep neural networks trained with the…
- Creating Training Batches for Language Models — A tokenizer's vocabulary can be extended with special context tokens that carry meanings ordinary words cannot express.
- Creating Your First Java Project in Eclipse — A workspace is the directory where your work is stored, and you can use several workspaces and choose one at startup.
- Creating Your First Python Class — An object bundles data (attributes) and behavior (methods) into a single, organized unit.
- Creating Your Own Classes — A class is a blueprint or template; an object is a specific instance created from that blueprint with its own state.
- Creating Your Own Classes and Objects — Lists are objects that bundle together data (the items they contain) and behavior (methods like append(), sort(), and…
- Creative AI for Image Generation — A latent space of images is a low-dimensional vector space whose points can be mapped to realistic-looking images.
- Creative applications of computer vision — Neural style transfer is a two-source image-modification task: the target supplies content and the reference supplies style.
- Cross-entropy loss — Perplexity evaluates a model in language modeling by expressing uncertainty about the next token.
- Cross-Platform Development Considerations — Python has no single standard GUI tool; the choice depends on your specific project constraints rather than a universal best…
- Cross-Platform File Handling in Python — sys.version_info is a named tuple that breaks down your Python version into major, minor, micro, and releaselevel components…
- CRUD Fundamentals: Create, Read, Update, Delete — UPDATE modifies existing records in a table using the SET keyword to specify columns and new values.
- Cultivating Good Taste in Product Development — Taste in product development is described as the ability to produce high-quality work by exposing oneself to good things.
- Cumulative Reward — Return turns a sequence of rewards into one quantity using a specified function.
- Custom Component Creation — A custom Swing component can be defined as a subclass of JPanel, which supplies its layout, size handling, and inherited colors…
- Custom Sorting with Lambda Functions — Tuple comparison proceeds element by element from left to right, stopping as soon as a difference is found.
- Customer Dashboard Essentials — The source calls the customer dashboard a trust surface, not a sales surface, because it shows the customer what the system is…
- Customer Discovery in Early Product Work — Rapid prototyping means building a demo quickly and putting it in front of potential customers, because a tangible product draws…
- Customer Engagement Planning — The customer is not one person. The source describes it as at least four stakeholder roles: sponsor, blocker, line user, and…
- Customer Engagement Storytelling — Simulation interviews ask you to recount specific past customer engagements, so specificity and clear structure matter more than…
- Customer Handoff for Regulated-Industry Systems — The belief that fewer missing fields is always better can be wrong when the customer's real requirement is audit-readiness…
- Customer Integration Engineering — A forward-deployed engineer is embedded inside a customer organization to build integrations and handle the politics that…
- Customer Success as an Outcome Strategy — An FDE is a customer-facing software engineer who deploys a technical product for a customer, and the role is justified only in…
- Customizable Features — Generalizing a feature starts with a solution built for one customer and asks what shared version belongs in the platform.
- Customizing Table Editing and Display — A table's data lives in a table model, and methods such as setValueAt, removeRow, and addRow change that data; the view updates…