Concepts starting with U
301 concepts, each with a plain-language explanation, examples and diagrams. Pick a letter or open a concept.
- Uncertainty in Environment — Goal-directed agents pursue explicit goals through sensing and action.
- Understand Boolean Expressions — Alternative execution uses if-else to run one of two code blocks based on whether a condition is true or false.
- Understand Comparison Operators — Alternative execution uses if-else to run one of two code blocks based on whether a condition is true or false.
- Understanding __init__ and the Constructor — super() is a special syntax that calls a method from the parent class. In the context of __init__, super().__init__() ensures…
- Understanding Action Properties — An Action can be passed to the constructor of a JButton or a JMenuItem, so one Action can drive several components.
- Understanding Actual Workflows through Discovery Interviews — A discovery interview, as the source presents it, is a conversation of about thirty minutes aimed at learning how work is…
- Understanding Algorithm Development — Algorithm development is the deliberate process of turning a programming problem into precise instructions.
- Understanding and Fine-Tuning Large Language Models — LLMs generate text by outputting one token at a time.
- Understanding Angle Measurement Systems — Python's trigonometric functions (sin, cos, tan) take arguments in radians, not degrees
- Understanding Anterograde Amnesia in AI Models — Anterograde amnesia is the failure of an AI model to retain information from one session to the next.
- Understanding APIs: Contracts Between Applications — An API is a published contract between applications that specifies the exact rules for requesting and receiving services.
- Understanding Artificial Intelligence — Classical programming starts with rules written by humans and uses them to process data.
- Understanding Assertions — Assertions test conditions that should definitely be true in a correct program and mainly help the programmer find bugs during…
- Understanding Attention Mechanisms in Large Language Models — An attention mechanism transforms input elements into enhanced context vector representations.
- Understanding Attributes and Methods — A class is a template that defines what data and code each object will have; the class keyword does not create an object.
- Understanding Audit Trails — An audit trail is a record used to reconstruct events, and it is what an organization draws on when something goes wrong.
- Understanding Backups in Value Prediction — A backup is also a specification of desired value-function behavior.
- Understanding Boolean Conditions — An if-else statement creates two mutually exclusive branches: one executes if the condition is true, the other if it is false.
- Understanding Boolean Expressions and Comparison Operators — An if statement checks a boolean condition and executes an indented block only if that condition is true.
- Understanding Boolean Values and Conditions — A while loop is a looping statement that repeatedly executes code as long as a condition is true.
- Understanding Boolean Values and Expressions — Python allows non-boolean values as operands in logical operators, interpreting any nonzero number as 'true'
- Understanding Business Processes through Exception Handling — Written process documentation usually describes the golden path and perhaps a few edge cases, so it is an incomplete guide to…
- Understanding Class Methods and Instance Methods — Object construction using ClassName() creates an instance and assigns it to a variable for later access.
- Understanding Classes and Static Member Functions — Math functions must be understood by their mathematical purpose, input conventions, and return-value rules.
- Understanding Compression Bounds in Machine Learning — The learning protocol separates hypothesis construction from performance estimation.
- Understanding Conditional Statements (if/else) — An Easter Egg is a harmless, hidden feature programmers add for fun; in this exercise, it is a special message triggered by the…
- Understanding Customer Needs — Ask questions about the customer's needs before you propose or reject a solution, because the answers decide which design fits.
- Understanding Data Pipelines and Failure Modes — Production data should be examined early in a project, not late.
- Understanding Database Indexes — A uniqueness constraint ensures all values in a column are unique by using a special index to detect and block duplicates.
- Understanding Database Transactions and Commits — A database connection is established using sqlite3.connect(filename), which creates a link to a local database file or remote…
- Understanding Deep Learning Basics — Deep learning matters partly because its recent surge is linked to multiple contributing factors.
- Understanding Dictionaries — Scale down your dataset first: modify your program to read only the first n lines, then increase n gradually as you fix bugs.…
- Understanding Dictionaries and Key-Value Pairs — Dictionaries do not guarantee a predictable order, so you convert them to a list of tuples using list(d.items()) to enable…
- Understanding Dictionary Items and Iteration — Sorting dictionaries by value requires reconstructing tuples from (key, value) to (value, key) because Python's tuple sort…
- Understanding Dictionary Structure and Operations — The items() method converts a dictionary into a list of tuples, where each tuple contains one key-value pair.
- Understanding Email Archive Structure — Mapping tables unify changing email addresses and multiple domain names into single canonical identifiers, preventing entity…
- Understanding Email Message Structure — Raw email data contains inconsistencies (mixed-case addresses, subdomain variations, gateway artifacts) that must be…
- Understanding Environment Variables — For Windows 2000, XP, 2003 , click on Control Panel → System → Advanced → Environment Variables . Click on the variable named…
- Understanding Error Messages and Debugging — Python is not intelligent and cannot guess your intent. It is strict about syntax and will reject any code that violates its…
- Understanding Error Messages in Python — but that is much uglier and error-prone. Second, the conversion to string would be done automatically by the format method…
- Understanding Error Types in Python — Python tracebacks report where an error was discovered, not necessarily where it was caused — the actual problem often lies on…
- Understanding Errors and Exceptions — try-except is an insurance policy on a sequence of statements, allowing you to respond to errors instead of crashing.
- Understanding Exceptions and Error Messages — try-except blocks allow programs to catch and handle errors gracefully instead of crashing when unexpected situations occur.
- Understanding Exceptions and Tracebacks — Try/except structures prevent program crashes by catching exceptions and executing recovery code when operations fail.
- Understanding Expressions and Operators — Most statements (logical lines) that you write will contain expressions . A simple example of an expression is 2 + 3 . An…
- Understanding File Handles and Position Pointers — read() loads an entire file into a single string, including all newline characters, and exhausts the file handle resource after…
- Understanding File Modes in Python — Binary files require byte-for-byte copying from a remote URL to your local disk.
- Understanding File Paths and Directories — For older versions of Windows, open the file C:\AUTOEXEC.BAT and add the line PATH=%PATH%;C:\Python33 and restart the system.…
- Understanding Float Data Types — random.random() generates a pseudorandom float in the range [0.0, 1.0), inclusive of 0.0 but exclusive of 1.0
- Understanding for Loops — if guess == number: print 'Congratulations, you guessed it.' # this causes the while loop to stop running = False elif guess <…
- Understanding for Loops and Iteration — An accumulator is a variable that starts with an initial value before a loop, gets updated on each iteration, and holds the…
- Understanding Full Disk Encryption — The customer's IT and security teams are expected to push back on Full Disk Encryption and related parts of the proposal.
- Understanding Function Arguments — Functions can accept different data types as arguments if the function's operations are compatible with those types.
- Understanding Function Basics — Functions eliminate repetitive code by allowing you to write logic once and call it multiple times, making programs smaller and…
- Understanding Function Calls and Returns — Code file order (top to bottom) is not the same as execution order (the actual sequence the program runs).
- Understanding Function Definitions and Parameters — A function call redirects execution from the caller to the function body, then returns to the caller after the function completes.
- Understanding Function Parameters and Return Values — Dividing a long program into functions allows you to debug the parts one at a time and then assemble them into a working whole.
- Understanding Function Return Values — Void functions perform actions but return None, not a usable value.
- Understanding Function Scope — When you declare variables inside a function definition, they are not related in any way to other variables with the same names…
- Understanding Function Scope and Lifetime — Nested function calls occur when one function invokes another during its execution, causing the first function to pause while…
- Understanding Function Syntax — In interactive mode, the interpreter displays ellipses ( . . . ) to indicate that a function definition is incomplete and…
- Understanding Functions and How to Call Them — Import the math module using import math to load it into your program and create a module object.
- Understanding Functions and Parameters — Lambda functions used as sort keys provide a temporary comparison value for each element without modifying the original list.
- Understanding Functions and Their Syntax — Method invocation uses dot notation: object.method_name() instead of function syntax like function_name(object).
- Understanding Functions in Python — If you need quick information about any function or statement in Python, then you can use the built-in help…
- Understanding Geocoding APIs and Location Data — geodump.py converts database records into executable JavaScript code by extracting location names, latitudes, and longitudes and…
- Understanding Graph Structures and Connectivity — spider.py systematically crawls web pages and stores them in a local database, recording both page content and the links between…
- Understanding Graphics Context and Painting — A custom drawing surface is built by defining a subclass of JPanel and providing a paintComponent(Graphics g) method that…
- Understanding Halfspaces in Binary Classification — Realizable ERM for homogeneous halfspaces can be expressed as a feasibility problem.
- Understanding HTML Structure and DOM Trees — Regular expressions operate on text as a linear sequence, while HTML is hierarchical. This fundamental mismatch causes regex…
- Understanding HTTP and the Socket Library — urllib is a standard Python library that simplifies web page retrieval by hiding HTTP protocol and header details behind a…
- Understanding HTTP Requests and Responses — API keys can be included in requests via two methods: as a URL query parameter or as part of POST data.
- Understanding I/O Streams, Readers, and Writers in Java — Java's I/O package lets you add capabilities to a stream by wrapping it in another stream object, and the wrapper is still a…
- Understanding if and else statements — Chained conditionals use if, elif, and else to handle more than two possibilities in a clear, linear structure.
- Understanding if Statements and Block Structure — Every block in Python must contain at least one statement. An empty block causes a SyntaxError.
- Understanding if Statements and Boolean Conditions — elif stands for 'else if' and allows you to chain multiple conditions in a single decision structure.
- Understanding Immutability in Tuples — Commas create tuples, not parentheses. Parentheses are optional and exist only for readability.
- Understanding Inheritance and Polymorphism — A class is a blueprint or template; an object is a specific instance created from that blueprint with its own state.
- Understanding Instability in Semi-Gradient Methods — Averagers prevent instability by avoiding extrapolation from observed targets.
- Understanding Iterators and Generators — Tuples are immutable and therefore do not provide .sort() or .reverse() methods. These methods modify sequences in place, which…
- Understanding JSON Structure and Syntax — json.loads() transforms a JSON string into native Python structures—lists and dictionaries—not a special JSON type.
- Understanding Large Language Models — The course is organized into modules, and each module contains one or more chapters.
- Understanding List Basics — List traversal comes in two main forms: simple for loops for reading elements, and index-based loops using range(len()) for…
- Understanding List Indexing — Slicing extracts a contiguous subset of a list using the syntax list[start:stop:step], where start is inclusive, stop is…
- Understanding List Indices — Index-based iteration combines range() and len() to generate indices, enabling you to read and modify list elements.
- Understanding List Methods and Mutability — Finding unique words involves a pipeline: read file → split lines into words → check membership to avoid duplicates → sort…
- Understanding List Mutability — Reassigning a function parameter (e.g., t = t[1:]) does not modify the original list passed to the function; it only changes…
- Understanding List Mutability and References — Aliasing means two variables point to the same list object, so changes through one variable affect the other.
- Understanding List Structure and Indexing — For loops are the most common and natural way to iterate through list elements, using identical syntax to string iteration.
- Understanding Lists and Indexing — random.choice() selects one element at random from a sequence by generating a random index and returning the element at that…
- Understanding Lists and Their Properties — List indexing uses the bracket operator with zero-based indices: the first element is at index 0, the second at index 1, and so…
- Understanding Lists as Ordered Collections — Indices start at 0 and can be positive (counting from the start) or negative (counting from the end).
- Understanding Lists as Sequences — A list of characters is fundamentally different from a string, even though both are sequences.
- Understanding Lists, Tuples, and Dictionaries — Compound data structures nest collections inside one another, such as lists of tuples or dictionaries with tuple keys and list…
- Understanding Lists: Creation and Modification — Tuples are immutable sequences indexed by integers, meaning their elements cannot be changed after creation.
- Understanding LLM Applications: Core Capabilities of LLMs — The source claims LLMs are valuable for automating almost any task that involves parsing and generating text, and those two…
- Understanding Logits and Class Scores — 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.
- Understanding Loop Control with break and continue — We move the raw_input and if statements to inside the while loop and set the variable running to True before the while loop.…
- Understanding Loop Flow and State — Debugging by bisection cuts debugging time from linear to logarithmic by eliminating half the search space with each checkpoint…
- Understanding Many-to-Many Relationships — A boolean flag on the User table cannot represent that the same person holds different roles in different courses.
- Understanding Milestone-Based Contract Structures — A fixed-fee contract makes the total price predictable, but it can still load most of the customer's financial risk up front…
- Understanding Models and Planning in Reinforcement Learning — Models let agents predict environment responses instead of treating every possible response as unknown.
- Understanding Module Structure — Figure 3.24 illustrates the structure of a multi-head attention module, which consists of multiple single-head attention…
- Understanding Modules and Namespaces — Imagine you are writing a program that calculates square roots repeatedly. With the standard import, every call looks like…
- Understanding Monte Carlo Prediction — Monte Carlo state-value estimation learns from complete observed returns rather than from a single outcome.
- Understanding Mutability — Python provides several methods for common list operations. Three of the most frequently used are append, extend, and sort. Each…
- Understanding Mutability and Immutability — Assignment creates a reference to a list, not a copy. Both variables point to the same object, so modifications through one…
- Understanding Mutability in Python — Aliasing occurs when two or more variables refer to the same object in memory. The assignment b = a creates an alias, not a copy.
- Understanding Mutable and Immutable Objects — A reference is the association between a variable name and an object. When you assign b = a, both variables refer to the same…
- Understanding Mutable and Immutable Types — Lists are passed to functions by reference, meaning the function receives access to the original list, not a copy.
- Understanding Network Communication Fundamentals — HTTP is a standardized, text-based protocol that defines how web clients and servers communicate using a simple request-response…
- Understanding Neural Network Components — Layers provide the component structure of deep learning models.
- Understanding Newline Characters — A text file can be conceptualized as a sequence of lines, analogous to how a Python string is a sequence of characters.
- Understanding Object Attributes — Lists are objects that bundle together data (the items they contain) and behavior (methods like append(), sort(), and…
- Understanding Objects and Object-Oriented Programming — In object-oriented programming, subroutines are often referred to as methods.
- Understanding Objects and Types — The dir() function reveals all capabilities (methods and attributes) of any Python object by returning a list of strings.
- Understanding Objects, Classes, and Instances — A class is a blueprint, or factory, used to construct objects; it describes what objects will contain rather than being the…
- Understanding Operator Precedence — Operator precedence is a set of rules that determines which operations Python performs first when multiple operators appear in…
- Understanding Operators and Expressions in Python — Most statements (logical lines) that you write will contain expressions . A simple example of an expression is 2 + 3 . An…
- Understanding PageRank and Web Graph Structure — Visualizing a network graph requires running spjson.py to convert your PageRank database into JSON data, then opening force.html…
- Understanding PageRank Calculations — spdump.py reads spider.sqlite and displays pages in a five-element tuple format: (incoming_links, old_rank, new_rank, page_id…
- Understanding Pre-Call Research Challenges — AEs skip pre-call research mainly because the time between calls is too short to absorb the fifteen-minute research process…
- Understanding Primary Keys and Foreign Keys — Primary and foreign keys are omitted from simplified data model diagrams because their placement follows an absolute…
- Understanding Primary Keys and Their Role in Database Design — Auto-generated primary keys shift the responsibility for ID management from the application to the database, eliminating manual…
- Understanding Primary Keys and Unique Constraints — Databases require you to declare column names and data types before creating a table, unlike Python lists or dictionaries which…
- Understanding Program Design — Now that we have a lot of the basics of Python in place, we will next see how to design and write a real-world Python program.
- Understanding Program Flow and Tracing — Random walk programming—making random code changes without a hypothesis—is inefficient and often masks the real problem instead…
- Understanding Python Data Structures — Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple…
- Understanding Python Data Types — int() converts values to integers by truncating (not rounding) the decimal portion
- Understanding Python Errors and Tracebacks — The try/except structure catches errors in risky code (like opening files) and runs recovery code in the except block instead of…
- Understanding Python Functions and Syntax — Remember that once you have properly understood and learn to use either of them, you can easily learn the changes between the…
- Understanding Python Packages and Namespaces — The Python Standard Library is a collection of pre-installed modules included with every standard Python installation, providing…
- Understanding Python Source Files — There are two ways of using Python to run your program - using the interactive interpreter prompt or using a…
- Understanding Python Strings and Characters — max() and min() are built-in functions that find the largest and smallest values in any collection.
- Understanding Python Strings and String Methods — Strings are objects belonging to the str class and possess methods for checking, searching, and transforming text.
- Understanding Python Syntax — As you will see, Python is extremely easy to get started with. Python has an extraordinarily simple syntax, as…
- Understanding Python Syntax and Statements — Remember that once you have properly understood and learn to use either of them, you can easily learn the changes between the…
- Understanding Python Syntax and Structure — Notepad and other basic text editors are unsuitable for Python because they lack syntax highlighting and do not support…
- Understanding Python Syntax Basics — As you will see, Python is extremely easy to get started with. Python has an extraordinarily simple syntax, as…
- Understanding Python Syntax Errors — How This (does not) WorkThis program does not work! Python says there is a syntax error which means that the script does not…
- Understanding Python Tracebacks — Attempting to open a non-existent file raises a FileNotFoundError and prevents the program from obtaining a file handle.
- Understanding Python's Assignment Model — Tuple unpacking (a, b = b, a) is the fastest and most Pythonic way to swap two variables
- Understanding Python's Object Model — type() returns the class or type of an object, helping you understand what kind of data you are working with
- Understanding Python's range() Function — How It Works In this program, we are printing a sequence of numbers. We generate this sequence of numbers using the built-in…
- Understanding Python's sort() Method — The DSU pattern transforms custom sorting into three simple, clear phases: decorate (add sort keys), sort (use Python's tuple…
- Understanding Quantifiers: Plus, Asterisk, and Question Mark — Greedy quantifiers expand to match the last occurrence of a pattern; non-greedy quantifiers match the first occurrence.
- Understanding Randomness and Probability — Continuous distributions generate random values from an infinite range, unlike discrete selection which picks from a fixed set.
- Understanding Recursion — A recursive subroutine, also called a recursive method, is one that calls itself, either directly or indirectly.
- Understanding References and Pointers — Identity (is) checks whether two variables refer to the same object in memory; equivalence (==) checks whether two objects have…
- Understanding Regular Expression Syntax — re.search() returns a match object when a pattern is found, or None when no match exists.
- Understanding Return Values and None — The sort() method arranges list elements in ascending order by modifying the list in place.
- Understanding Reward and Reinforcement Signals in Reinforcement Learning — Prediction error is the broad idea of measuring a mismatch between expectation and reality.
- Understanding Reward Signals — A reward is a scalar number passed from the environment to the agent at each time step.
- Understanding self and Instance Attributes — The class keyword creates a new type in Python, not just a container for code.
- Understanding Sequences and Lists — Note that range() generates a sequence of numbers, but it will generate only one number at a time, when the for loop requests…
- Understanding sequences and mutability — A list is a sequence of values that can contain any data type, unlike strings which contain only characters.
- Understanding Stacks, Queues, and Abstract Data Types — An abstract data type is a set of possible values and a set of operations on those values, specified without saying how the…
- Understanding Statements vs. Expressions — The interactive interpreter automatically prints expression results; scripts do not.
- Understanding String Indexing — Using a string's length as an index causes an IndexError because valid indices range from 0 to length - 1, not 0 to length.
- Understanding Strings — A list of characters is fundamentally different from a string, even though both are sequences.
- Understanding Strings as Sequences — A list of characters is fundamentally different from a string, even though both are sequences.
- Understanding Strings, Classes, and Subroutines — A subroutine is a named set of program instructions designed to perform a task.
- Understanding Subroutine Parameters — Formal parameters are the variables declared in a subroutine's parameter list, and actual parameters are the values or…
- Understanding Syntax Errors and How Python Reports Them — Semantic errors occur when code runs without error messages but produces incorrect results—the hardest kind of error to catch.
- Understanding sys Module Attributes — $ python >>> import sys # get names of attributes in sys module >>> dir(sys) ['__displayhook__', '__doc__', 'argv'…
- Understanding Table Joins and Relationships — An index is extra information stored by a database to enable faster lookups on a specific column without scanning every row.
- Understanding the Bias-Complexity Tradeoff in Machine Learning — Selecting features determines the dimensionality of the feature space.
- Understanding the Cash Band in FDE Offers — Equity participation is a significant part of FDE compensation, and it can make an offer more valuable than the cash band alone…
- Understanding the continue Statement — The guardian pattern adds protective checks before accessing data, preventing IndexError and other crashes when input is…
- Understanding the Dataset and Prompt Styles — Instruction fine-tuning trains a model on explicitly provided input-output pairs, and each pair must be written as text in some…
- Understanding the Echo Mode in AI Engineering — An Echo is a domain rebel: someone who came from the domain, understands it deeply, and has concluded that the current way of…
- Understanding the Echo-Delta Distinction in AI Engineering — The Echo-Delta distinction is a way of thinking about the rhythm of an FDE engagement.
- Understanding the Hyperscaler-Lab Convergence — Convergence means roles at hyperscalers and labs may evolve and become more similar over time.
- Understanding the Hyperscaler-Lab Convergence module overview — Hyperscaler-lab convergence is the pattern in which the hyperscaler and lab versions of the FDE motion move toward each other…
- Understanding the input() Function — Use input('prompt string') to display a message before pausing for user input
- Understanding the Interactive Python Prompt — Exit the Python interpreter by typing quit() at the >>> prompt—the parentheses are essential.
- Understanding the Java Virtual Machine — Java bytecode is an intermediate form used to separate a Java program from the computer that executes it.
- Understanding the Modulus Operator — The modulus operator checks divisibility: x % y == 0 means x is divisible by y.
- Understanding the Problem — The stated problem is the goal as originally phrased, while the real problem is the difficulty revealed by examining the daily…
- Understanding the Python Interactive Interpreter — Verification confirms that Python is installed and accessible on your GNU/Linux system by opening a terminal and running the…
- Understanding the Python Interpreter — A Python script is a text file containing Python code, saved with the .py extension, that the interpreter executes from top to…
- Understanding the random Module — random.randint(low, high) generates a random integer within an inclusive range, including both the low and high endpoints.
- Understanding the Real Problem in AI Initiatives — A stated problem is how a person describes a problem, while the real problem is the genuine issue that needs addressing.
- Understanding the Role of Forward Deployed Engineers — Adjacent roles split the work: solutions architects design, implementation consultants from Big Four firms build without shaping…
- Understanding the self Parameter — Constructors use the self parameter to initialize each new object and additional parameters to customize that object with…
- Understanding the Small Engagement Phase — A senior shadow supports team members during a small engagement without doing the work for them.
- Understanding the Technical Screen Process — The technical screen is a sixty- to ninety-minute conversation with an engineer on the FDE team, and it is Stage 2 of the process.
- Understanding the Terminal and Command Line — Verification confirms that Python is installed on your Mac and accessible from the terminal.
- Understanding the Three-Criteria Filter — Hiring managers evaluate FDE candidates against three criteria: a worthy product ambition, total alignment with the customer's…
- Understanding the Three-Phase Framework — The three-phase frame is useful both for the day-to-day work and as an organizational tool.
- Understanding the Top-Five-Priorities Filter — The first filter for an AI project is whether the problem is one of the customer's top five priorities; the source says that if…
- Understanding Tracebacks and Error Messages — File parsing crashes often occur when code assumes data that is not always present, such as non-empty lines or fields at…
- Understanding Tracebacks and Exception Types — An ungraceful exit occurs when an unhandled exception causes a program to crash and print a traceback instead of terminating in…
- Understanding Training Data for Large 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…
- Understanding True and False: Boolean Expressions and Comparison — A boolean expression evaluates to True or False, which belong to the bool data type.
- Understanding Tuple Creation and Syntax — Tuples support read-only indexing and slicing operations identical to lists.
- Understanding Tuple Data Structures — Tuple assignment enables swapping two variables in one line: a, b = b, a
- Understanding Tuple Structure and Immutability — The sort function compares tuples element-by-element, starting with the first position and moving to subsequent positions only…
- Understanding Tuples — There are four built-in data structures in Python list, tuple, dictionary and set . We will see how to use each of them and how…
- Understanding Tuples as Immutable Sequences — Tuple comparison proceeds element by element from left to right, stopping as soon as a difference is found.
- Understanding Unicode and UTF-8 Encoding — Unicode is a universal character encoding standard that assigns a unique code point to every character in every language…
- Understanding Values and Data Types — Python code you write in the course editor is read by a Python interpreter, which executes your instructions and displays output…
- Understanding Variable Assignment and Naming Conventions — Built-in function names like max, len, sum, and print should be treated as reserved words and never used as variable names.
- Understanding Variable Naming Rules — The def keyword marks the start of a function definition and is required for every function.
- Understanding Variables — Local variables belong only to the function in which they are declared and are independent of global variables with the same name.
- Understanding Variables and Assignment — Variable names must start with a letter or underscore, contain only letters, digits, and underscores, and can be any length.
- Understanding Variables and Primitive Types in Java — An identifier is a sequence of one or more characters used to name classes, variables, and subroutines.
- Understanding VC-Dimension in Machine Learning — VC-dimension is a measure of the capacity of a class of functions.
- Understanding WHERE Clauses: Filtering Rows — DELETE removes rows from a table; the WHERE clause specifies which rows to delete.
- Understanding while Loop Conditions — A countdown loop repeatedly decreases a control variable until a condition is no longer true, printing or using the variable at…
- Understanding while Loops — if guess == number: print 'Congratulations, you guessed it.' # this causes the while loop to stop running = False elif guess <…
- Understanding while Loops: Looping Until a Condition Changes — A for loop is a definite loop that processes each item in a known collection exactly once.
- Understanding XML Structure and Hierarchy — The findall method retrieves a list of XML nodes using a path that must include all parent-level elements (except the root)…
- Understanding XML Tags and Nesting — XML documents are organized as tree structures with a single root element containing all other elements as nested children.
- Unicode and character encoding — Comparison operators work on strings to check equality and determine alphabetical order.
- Uniform Convergence — The growth function measures the maximal effective size of a hypothesis class on finite sets of examples.
- Uniform Convergence and Learnability — The three references cover distinct areas of learning theory rather than one shared technical problem.
- Uniform Convergence in Statistical Learning — The Fundamental Theorem of Statistical Learning links risk behavior and hypothesis-class complexity.
- Uniform Convergence Property — Uniform convergence ensures convergence of empirical risk to true risk.
- Uniform Learnability — Nonuniform learnability allows the sample-size requirement to depend on the competing hypothesis.
- Union Bounds in Learning Theory — Theorem 30.2 considers a learning rule A that receives m examples but returns a hypothesis determined by k of them through a…
- Unpacking Arguments with * and ** — The * prefix allows a function to receive a variable number of positional arguments bundled into a single tuple
- Unpacking Tuples in For Loops — Sorting dictionaries by value requires reconstructing tuples from (key, value) to (value, key) because Python's tuple sort…
- Unpacking Tuples into Variables — Tuple assignment requires the number of variables on the left to exactly match the number of values on the right.
- Update Rule for Online λ-Return Algorithm — The general update is a defining part of the online λ-return algorithm.
- UPDATE: Modifying Existing Data — CRUD is an acronym representing the four fundamental database operations: Create, Read, Update, and Delete.
- Updating and Deleting Data: Modifying Existing Records — SELECT retrieves specific columns and rows from a database table using WHERE to filter and ORDER BY to sort results.
- Updating Data with UPDATE — INSERT adds new rows to a table; specify the table, columns, and values.
- Updating Data with UPDATE: Modifying Existing Rows — DELETE removes rows from a table; the WHERE clause specifies which rows to delete.
- Updating Variables with New Values — A variable is a name that refers to a value, allowing you to store and manipulate data in your program.
- urllib.request Module and Web Connections — Buffered reading prevents memory exhaustion by reading large files in fixed-size blocks and writing each block to disk before…
- urllib.request.urlopen() Basics — urllib.request.urlopen() opens a web URL and returns a file-like object that you can iterate over line by line.
- User Feedback in Web Services — Personalization uses a user's online activity to infer a profile of interests and preferences.
- User Input Basics with raw_input — How It Works In this program, we repeatedly take the user's input and print the length of each input each time. We are providing…
- User Input Validation — A palindrome reads the same forward and backward, but only when punctuation, spaces, and case are ignored.
- User Input Validation Strategies — An ungraceful exit occurs when an unhandled exception causes a program to crash and print a traceback instead of terminating in…
- Using 'super' to Call a Superclass Constructor — A constructor can call another constructor in the same class by writing this(...) as the very first line, so the other…
- Using 'this' as a Constructor Call — Constructors are not inherited, so a subclass has to define its own constructors, and if it defines none the computer provides a…
- Using 1D Convnets for Sequence Processing — A CNN and an RNN can be viewed as successive sequence-processing stages, but the source material does not prescribe a particular…
- Using a GPU Instance for Sequence Processing — EC2 asks about creating new connection keys or reusing existing keys at the end of the launch process.
- Using a Thread Pool — A thread pool is a group of threads that run in an infinite loop and reuse a fixed number of threads to handle multiple…
- Using BeautifulSoup for HTML Parsing — Regular expressions operate on text as a linear sequence, while HTML is hierarchical. This fundamental mismatch causes regex…
- Using Blocks to Group Statements — The dangling else problem occurs when nested if statements are interpreted differently by the compiler than the programmer…
- Using break in Switch Statements — A switch statement and a multiway if statement can have the same effect, and the source notes that any switch can be replaced by…
- Using break Statements — break stops loop execution immediately, jumping to the first line of code after the loop
- Using break to Exit Loops Early — The continue statement skips the rest of the current loop iteration and jumps back to the loop start, enabling efficient…
- Using Built-in Functions — Fruitful functions return a value that flows back to the caller and can be captured in a variable or used in an expression.
- Using Built-in Functions Effectively — A function is a named sequence of statements that performs a computation. You call it by name to execute its statements.
- Using Built-in Functions with Lists — The running total method maintains only a sum and count, discarding individual numbers after computing the average.
- Using ButtonGroup to Manage Selection — A JToolBar is created with new JToolBar() and placed in a container, such as along BorderLayout.NORTH, using an add call with a…
- Using Classes from Packages — A specific import names one class using its fully qualified name, in the form import package_name.ClassName;
- Using Comparators with TreeMap — A TreeMap or TreeSet tests keys for equality using a Comparator object or a compareTo method, and never uses the equals() method…
- Using Context Managers (with statement) for Safe File Handling — Closing files is not optional when writing data; it is the mechanism that flushes buffered data to disk.
- Using continue Statements — When Python encounters a continue statement, it immediately stops executing the current iteration and returns to the top of the…
- Using continue to Skip to the Next Iteration — The break statement exits a loop immediately, skipping any remaining code in the loop body.
- Using Counters in Loops — A divisor leaves a remainder of zero when N is divided by that candidate.
- Using Data Augmentation — The original Dogs vs. Cats dataset contains 25,000 color JPEG images.
- Using Dictionaries to Count and Aggregate Data — Keys and values are the two components of a key-value pair (item). Keys are unique identifiers; values are the data they point to.
- Using else and elif for Multiple Conditions — An if statement checks a boolean condition and executes an indented block only if that condition is true.
- Using else to Handle the Default Case — elif stands for 'else if' and allows you to chain multiple conditions in a single decision structure.
- Using File Dialog Boxes — JFileChooser creates file dialogs that let a user choose a file for reading or writing instead of typing a path.
- Using findall() and search() for Pattern Matching — Regular expressions are search strings with special characters that communicate matching criteria and extraction rules to a…
- Using findall() for Pattern Matching — String splitting for data extraction is brittle and requires extensive error handling; regex extraction is more flexible and…
- Using for Loops — A for loop repeats a block of code for each item in a sequence, assigning each item to a loop variable one at a time.
- Using Functions: Arguments and Return Values — max() and min() are built-in functions that find the largest and smallest values in any collection.
- Using Groups and Alternation in Patterns — The caret (^) is a zero-width anchor that matches the position at the very beginning of a line, not a character.
- Using help() to Get Documentation — Python has a nifty feature called documentation strings , usually referred to by its shorter name docstrings . DocStrings are…
- Using HTML on JLabels — A JButton text string is read as HTML only when it begins with the html tag; that leading tag is the switch that controls…
- Using java and javac from the Command Line — Use the Adoptium .pkg installer on macOS and the .msi installer on Windows.
- Using Jupyter Notebooks with AWS — A recent NVIDIA GPU is recommended for faster execution, not required for running the examples.
- Using Ollama for Model Evaluation — Installation depends on your operating system: on macOS and Windows you open the Ollama application and select Yes for…
- Using Print Statements for Debugging — Debugging by bisection cuts debugging time from linear to logarithmic by eliminating half the search space with each checkpoint…
- Using print() to Display Output — input() pauses program execution and waits for keyboard input from the user.
- Using Python's os Module for File Operations — Hierarchical file-naming organizes backups into a main directory containing date-based subdirectories, each containing…
- Using Python's urllib Library — Web scraping is a program-based technique for retrieving web pages and extracting specific data from their HTML source code…
- Using range() and enumerate() for Index-Based Loops — For loops are the most common and natural way to iterate through list elements, using identical syntax to string iteration.
- Using re.findall() to Extract Multiple Matches — re.search() returns a match object when a pattern is found, or None when no match exists.
- Using re.search() and re.findall() — Parentheses in regular expressions mark the portion of a match that findall() should extract and return.
- Using re.search() and re.match() for Single Matches — Raw strings (r'...') are mandatory for regex patterns because they prevent Python from interpreting backslashes as escape…
- Using re.sub() to Replace Matches — re.findall() is a Python method that extracts all non-overlapping substrings matching a regex pattern from a string.
- Using Static Subroutines in Programs — The GuessingGame program places the logic for one game in the static subroutine playGame(), and main() calls it inside a…
- Using super() for Parent Class Access — A base class defines shared attributes and methods; derived classes inherit from it and add their own specialized features.
- Using Swing Timers for Animation — A Swing Timer's thread only generates events; the handler code that responds to them runs on the Swing event-handling thread, so…
- Using the Color Class in Java — A BufferedImage lets you read and write individual pixels, and getRGB(x,y) returns an int that encodes the pixel's color.
- Using the File Class — A Java File object represents a file or directory, and creating one with new File(name) asks the program to refer to a path…
- Using the input() Function to Capture User Input — Hardcoding file names in your code limits reusability; you have to edit the code every time you want to process a different file.
- Using the key Parameter for Custom Sorting — The sort function compares tuples element-by-element, starting with the first position and moving to subsequent positions only…
- Using the print() Function — A script executes statements sequentially, from top to bottom, with each statement completing before the next begins.
- Using the Private Web Forum — The private forum is a support resource included with the purchase of Deep Learning with Python.
- Using the Python Command Line — Click OK and you are done. No restart is required, however you may have to close and reopen the command line.
- Using the Python Command Prompt and IDLE — Download Python from https://www.python.org/downloads/ only—this is the official, authoritative source
- Using the Python Interactive Mode (REPL) — A statement is a unit of code that the Python interpreter can execute—code that causes the interpreter to perform an action.
- Using the Python Interactive Shell — Open the Windows command line by clicking Start, then Run, typing cmd, and pressing Enter
- Using the Python Interpreter — For Windows users, you can run the interpreter in the command line if you have set the PATH variable appropriately.
- Using the Scanner Class — A package groups related classes, and it can also contain other packages, which gives Java a way to organize code at several…
- Using the sys Module — The sys module provides system-specific functionality and acts as an interface between Python and the operating system.
- Using Threads for Computational Speedup — Network input and output is blocking I/O, because those operations can block for indefinite periods of time, so network programs…
- Using Threads with Networking — A thread pool is a group of threads that can execute multiple tasks, with each task assigned to any idle thread in the pool…
- Using try..catch Statements — A try..catch block separates risky statements from the response to a specific exception type.
- Using try..catch to Handle Exceptions — A thrown exception is an object carrying the call stack and an error message from the failure point to the handler.
- Using Variables in Expressions — A variable is a name that refers to a value, allowing you to store and manipulate data in your program.