Concepts starting with W
205 concepts, each with a plain-language explanation, examples and diagrams. Pick a letter or open a concept.
- Watson's Daily-Double Wagering Strategy — Watson evaluated wagers as actions rather than judging them only by their point amounts.
- Watson's Question Answering and Game-Playing Architecture — Watson treated Daily-Double wagering as a decision under uncertainty rather than as a fixed betting rule.
- Weak Learnability — A 3-piece classifier operates on the real line and is specified by two real thresholds theta_1 and theta_2 with theta_1 <…
- Weak Learners — Boosting provides a way to manage the tradeoff between approximation error and estimation error.
- Web Crawling and Data Collection with spider.py — PageRank is computed by running sprank.py, which iteratively calculates importance scores based on the link structure in your…
- Web Crawling with spider.py — Visualizing a network graph requires running spjson.py to convert your PageRank database into JSON data, then opening force.html…
- Web Scraping Basics — curl and wget are command-line tools for retrieving files from the web on Unix-like systems using HTTP or FTP protocols.
- Web Scraping Ethics and Best Practices — BeautifulSoup is a Python library designed to parse real-world HTML, which is often malformed in ways that cause strict XML…
- Web Services and REST Architecture — Service-oriented architecture enables travel websites to integrate multiple independent systems (airlines, hotels, car rentals)…
- Web Services and SOAP — XML (eXtensible Markup Language) is a text-based format for encoding structured, hierarchical data using custom tags that…
- Weekly Status Update Report Structure — A weekly status update uses the same five labeled sections every week so a sponsor can locate information quickly.
- Weight Decay and Regularization — AdamW is a variant of Adam that improves the weight decay approach.
- Weight Regularization — Overfitting is reduced by making memorization less easy and generalizable representations more useful.
- Weight Vector — Eligibility traces provide short-term memory about recent contributions to state valuations.
- Weight Vectors and Bias Terms — A halfspace hypothesis assigns one of two labels to an input vector.
- Weighted Importance Sampling — The behavior policy and target policy may generate and evaluate different action choices.
- Weighted Sums in Neural Network Neurons — Activation functions determine how a neuron converts its scalar input into an output.
- Weighted-Majority Algorithm — PAC learning separates training from prediction, whereas online learning does not.
- Weights and Biases in Neural Networks — A feedforward neural network is a directed acyclic graph whose nodes are neurons and whose directed edges are weighted…
- Weights and Connections in Neural Networks — Feedforward describes the absence of loops in an ANN's connections.
- Well-Formed and Valid XML Documents — A well-formed XML document follows a strict syntax, and a single violation is enough to make the whole document unusable for a…
- What Deep Learning Is and How It Works — The canonical workflow is a standard process for solving data problems with deep learning.
- What Is a Deep Neural Network — Artificial intelligence is the broadest term: computer systems that perform tasks usually requiring human intelligence, such as…
- What Is a Program? — The CPU understands only machine language, represented in zeros and ones. High-level languages like Python are invisible to the…
- What Is a Program? Understanding Programs and Problem-Solving — A program is a sequence of Python statements crafted to accomplish a specific task or solve a problem.
- What Is a Statement? — A script executes statements sequentially, from top to bottom, with each statement completing before the next begins.
- What Is an Object? — Large programs cannot be held entirely in a programmer's mind at once, making it impossible to manage them as a single…
- What Is Deep Learning? — The main practical prerequisite is reasonable Python proficiency for using Keras.
- What Is Forward Deployed Engineering? — Forward Deployed Engineering is a business strategy in which engineers are embedded with customers and organized around shared…
- What Is Python? — Python is an easy-to-learn, powerful general-purpose programming language, deliberately designed so a learner can focus on…
- What Makes Python Special — Python combines performance and features in a way that makes programming both fun and easy
- What Programming Is and Why It Matters — Humans and computers have complementary cognitive strengths, not a universal ranking: humans excel at reading and understanding…
- WHERE Clause: Filtering Rows in SQL — UPDATE modifies existing records in a table using the SET keyword to specify columns and new values.
- while loop — A do..while loop tests its continuation condition at the end.
- While Loops — A while loop is a looping statement that repeatedly executes code as long as a condition is true.
- While Loops and Manual Traversal — A for loop traverses a string by automatically assigning each character to a loop variable, one character per iteration.
- While Loops and Sentinel Values — Collect all numbers from the user into a list using a while loop that terminates when the user enters a sentinel value like…
- While Loops in Python — if guess == number: print 'Congratulations, you guessed it.' # this causes the while loop to stop running = False elif guess <…
- While Loops: Repeating Code Until a Condition Changes — An infinite loop never terminates because its condition never becomes false.
- while True Loops and Infinite Iteration — The continue statement skips the rest of the current loop iteration and jumps back to the top of the loop to begin the next…
- Why Deep Learning Now? — Between 1990 and 2010, off-the-shelf CPUs became approximately 5,000 times faster, making small deep-learning models runnable on…
- Why Programming Matters — Python serves as an intermediary—a common language enabling programmers and users to exchange programs
- Why Programming Matters and How Computers Work — This course is organized into modules, chapters, and lessons that progress from basic concepts to advanced applications.
- Wildcard Types in Generic Methods — Wildcard types let a method work with collections of objects of various types, but they do not restrict the types allowed as…
- Word Embedding Techniques — Word2Vec is a trained neural network architecture that generates word embeddings by predicting the context of a word given the…
- Word Embeddings — TensorBoard is a browser-based visualization tool packaged with TensorFlow for inspecting Keras models using the TensorFlow…
- Word2Vec and Pretrained Word Embeddings — LLMs commonly produce their own embeddings, which are part of the input layer and are updated during training.
- Word2Vec and Similarity in Embedding Space — The dimensionality of a word embedding is the number of values in the vector that represents one word, and it ranges from one to…
- Working with Actions and 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.
- Working with APIs and JSON — XML uses tags and attributes; JSON uses curly braces and key-value pairs to represent the same information.
- Working with APIs and JSON Responses — JSON uses two main structures: objects (key-value pairs in curly braces) and arrays (ordered lists in square brackets).
- Working with Binary Data — learn : GaussianNB , BernoulliNB , and MultinomialNB . GaussianNB can be applied to any continuous data, while BernoulliNB…
- Working with Borders — An empty border reserves space around the edges of a component and draws nothing, so the background color shows through that…
- Working with Built-in Functions — Import the math module using import math to load it into your program and create a module object.
- Working with Built-in Objects — Objects follow a predictable lifecycle: construction (via __init__), operation (via method calls that modify state), and…
- Working with Built-in Python Objects — A class is a blueprint or template; an object is a specific instance created from that blueprint with its own state.
- Working with Bytes and Strings in Python — Parentheses in regex patterns create capturing groups that extract specific substrings from a match.
- Working with Collections: Lists and Iteration — Iteration is the repeated execution of statements in a loop or recursive function, and understanding loop terminology is…
- Working with Colors — A Color object can be created from red, green, and blue values with new Color(r,g,b).
- Working with Command Line Arguments — import sys print ('The command line arguments are:') for i in sys.argv: print i
- Working with Complex Numbers Using the cmath Module — math.pi is a variable from the math module that provides an approximation of π accurate to about 15 digits; use it without…
- Working with Data Structures — Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple…
- Working with Dictionaries — The dictionaries that you will be using are instances/objects of the dict class.
- Working with Dictionaries: Keys and Values — Lists are mutable and the default choice for most tasks; tuples are immutable and solve specific problems.
- Working with Environment Variables — For Windows 2000, XP, 2003 , click on Control Panel → System → Advanced → Environment Variables . Click on the variable named…
- Working with Even and Odd Numbers — The modulus operator (%) returns the remainder when one integer is divided by another.
- Working with External Data Formats — Unicode is a universal character encoding standard that assigns a unique code point to every character in every language…
- Working with File Input and Output — The guardian pattern adds protective checks before accessing data, preventing IndexError and other crashes when input is…
- Working with File Paths — Writing to a file requires opening it with mode 'w', calling write() to insert data, and closing the file to flush the buffer to…
- Working with File Paths and the os Module — User-supplied comments in backup filenames provide context and improve file organization when managing multiple backups.
- Working with Files and Directories — The files and directories to be backed up are specified in a list.
- Working with Files in Python — Dictionaries are ideal for counting and categorizing data because they map keys to values instantly.
- Working with Floating-Point Numbers — int() converts values to integers by truncating (not rounding) the decimal portion
- Working with HTML and XML — BeautifulSoup is a Python library designed to parse real-world HTML, which is often malformed in ways that cause strict XML…
- Working with Images and Resources in Java — Images are copied to a destination using g.drawImage() methods defined in the Graphics class.
- Working with Inheritance and Polymorphism — A class is a template; an object is an instance of that template with its own state.
- Working with JCheckBox and JRadioButton Components — A JCheckBox draws its box from a pair of Icons: one for the unselected state and one for the selected state.
- Working with JSON in Python — ET.fromstring converts an XML string into a tree structure, transforming flat text into a navigable, queryable object.
- Working with List Methods and Mutations — A reference is the association between a variable name and an object. When you assign b = a, both variables refer to the same…
- Working with Lists and Append — Collect all numbers from the user into a list using a while loop that terminates when the user enters a sentinel value like…
- Working with Lists and Collections — max() and min() are built-in functions that find the largest and smallest values in any collection.
- Working with Lists and Dictionaries — If you have used keyword arguments in your functions, you have already used dictionaries! Just think about it - the key-value…
- Working with Lists and Indexing — We can access the items in the tuple by specifying the item's position within a pair of square brackets just like we did for…
- Working with Lists and List Methods — List comprehension condenses a for loop, empty list initialization, and append pattern into a single, readable line.
- Working with Lists and Sequences — Initialize the extreme variable to None before the loop to mark it as empty.
- Working with Lists and 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…
- Working with Lists in Python — An accumulator is a variable that starts with an initial value before a loop, gets updated on each iteration, and holds the…
- Working with Lists: Creating and Accessing Collections — A for loop is a definite loop that processes each item in a known collection exactly once.
- Working with Lists: Iteration and Modification — The split method converts a string into a list of words by breaking on whitespace (when called with no arguments) or on a custom…
- Working with Loops — random.random() generates a pseudorandom float in the range [0.0, 1.0), inclusive of 0.0 but exclusive of 1.0
- Working with Loops and Conditionals — The file search pattern reads through a file line by line, applies a filter condition using string methods, and processes only…
- Working with Multiple Data Types — A function can return multiple values by packaging them into a single tuple object using the comma syntax in the return statement.
- Working with Multiple Data Types in Expressions — An f-string embeds expressions inside curly braces within a string literal by prefixing the string with f.
- Working with Multiple Levels of Inheritance — A child class extends a parent class using the syntax class ChildClass(ParentClass):, inheriting all parent variables and…
- Working with Multiple Strings — The find() method locates the position of a substring and returns its starting index; use find(substring, start_pos) to search…
- Working with Multiple Tables: Joins and Relationships — SELECT retrieves specific columns and rows from a database table using WHERE to filter and ORDER BY to sort results.
- Working with Mutable and Immutable Types — Class methods belong to specific classes and are called using dotted notation on objects of that class.
- Working with Nested XML Structures — findall() is a path-following function, not a global search function. It requires you to specify the exact hierarchy to your…
- Working with Numbers — A number like 5 or 1.23 is a real example of a literal constant -- a value that is used directly, exactly as written, and whose…
- Working with Numbers — We cannot type out our program at the interpreter prompt every time we want to run something, so we have to save them in files…
- Working with Numbers and Arithmetic — Operator precedence is a set of rules that determines which operations Python performs first when multiple operators appear in…
- Working with Object Attributes — type() returns the class or type of an object, helping you understand what kind of data you are working with
- Working with Python Data Types — There is no separate char data type in Python. There is no real need for it and I am sure you won't miss it.
- Working with Python Dictionaries — JSON (JavaScript Object Notation) was inspired by JavaScript but influenced by Python's dictionary and list syntax, making it…
- Working with Python Dictionaries and Lists — json.loads() returns native Python data structures (lists and dictionaries), not JSON text.
- Working with Python Lists and For Loops — The findall method retrieves a list of XML nodes using a path that must include all parent-level elements (except the root)…
- Working with Recurrent Neural Networks — A CNN and an RNN can be viewed as successive sequence-processing stages, but the source material does not prescribe a particular…
- Working with Sequences — Strings are immutable: once created, they cannot be changed. Attempting to assign a new value to a character at a specific index…
- Working with Sequences in Python — List slicing uses the syntax t[start:stop] to extract a portion of a list, where start is included and stop is excluded.
- Working with Sorted Data: The sorted() Function — The sort() method arranges list elements in ascending order by modifying the list in place.
- Working with SQLite Databases — A geospatial application pipeline connects input data, a geocoding API, a database, and a visualization layer.
- Working with String Methods — A slice with start >= end always produces an empty string, not an error.
- Working with String Types in Python — Use # encoding=utf-8 at the top of any Python file that contains Unicode literals to tell the interpreter how to parse your…
- Working with String Variables — The * operator repeats a string by multiplying it by an integer, producing a new string with the original string concatenated…
- Working with Strings — An example of a literal constant is a number like 5 , 1.23 , or a string like 'This is a string' or "It's a string!" .
- Working with Strings and Numbers — The modulus operator checks divisibility: x % y == 0 means x is divisible by y.
- Working with Strings and Quotes in Python — Python is not intelligent and cannot guess your intent. It is strict about syntax and will reject any code that violates its…
- Working with Strings and Text — Web scraping demonstrates object orchestration: urllib fetches HTML, BeautifulSoup parses it into objects, and your code…
- Working with Strings and Type Conversion — Built-in functions len(), max(), min(), and sum() enable efficient list analysis without manual loops.
- Working with Strings in Python — Files are opened using open(filename, mode), where mode controls read/write/append permissions and what happens to existing data.
- Working with Strings, Integers, and Floats — Functions can accept different data types as arguments if the function's operations are compatible with those types.
- Working with Strings: Indexing and Slicing — Slicing extracts a contiguous subset of a list using the syntax list[start:stop:step], where start is inclusive, stop is…
- Working with Strings: Indexing, Traversal, and Manipulation — Method invocation uses dot notation: object.method_name() instead of function syntax like function_name(object).
- Working with Text and Sequence Data — Feedforward networks process inputs independently because they do not maintain state between inputs.
- Working with the Math Module — Fruitful functions return a value that flows back to the caller and can be captured in a variable or used in an expression.
- Working with the Python Interpreter — Every block in Python must contain at least one statement. An empty block causes a SyntaxError.
- Working with the Python Shell — $ is the prompt of the shell. It will be different for you depending on the settings of the operating system on your computer…
- Working with the string Module — translate() with str.maketrans() is the most flexible method for removing or replacing characters; use empty fromstr and tostr…
- Working with the Terminal and Command Line — Running a Python program means invoking the Python interpreter and pointing it at a source file using the python command in a…
- Working with Tuples and Multiple Arguments — Semantic errors occur when code runs without error messages but produces incorrect results—the hardest kind of error to catch.
- Working with urllib for Network Requests — BeautifulSoup's soup('a') method finds all anchor tags in parsed HTML; tag.get('href', None) safely extracts the href attribute…
- Working with URLs and urllib — Regular expressions provide a concise way to search for and extract patterns in HTML text, such as URLs in href attributes.
- Working with User 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…
- Working with Variables and Data Types — There is no separate char data type in Python. There is no real need for it and I am sure you won't miss it.
- Working with XML Attributes and Namespaces — ET.fromstring() converts an XML string into a tree structure of Element objects, making the hierarchical data queryable.
- Working with XML Namespaces — fromstring converts an XML string into a tree structure, enabling programmatic access to its data.
- Wrapper Classes in Java — Autoboxing automatically wraps a primitive value in its corresponding wrapper class object when an object is required.
- Write if-elif-else Statements — Alternative execution uses if-else to run one of two code blocks based on whether a condition is true or false.
- Write Simple if Statements — Alternative execution uses if-else to run one of two code blocks based on whether a condition is true or false.
- Writing a Custom Collate Function for Batching — A partial function is a new version of an existing function with some arguments prefilled, created with partial from Python's…
- Writing a Honest Failure Story — A transition plan in this guidance has three moves: an honest failure story, one AI-native product built and shipped solo, and…
- Writing a Project Description for Hiring Managers — A showcase README has six sections in a fixed order: project description, impact statement, architecture diagram and…
- Writing a Simple Network Client — A server that finishes one client before accepting the next, as the DateServer sample does, can be held up by a single slow or…
- Writing a Simple Network Server in Java — TCP/IP is the paired protocol arrangement behind Internet communication, and its TCP half provides reliable two-way communication.
- Writing a Training Loop in PyTorch — Moving a training loop to a GPU changes where the data and model live, not the training logic itself.
- Writing and Evaluating Expressions — Python follows mathematical convention for operator precedence, not left-to-right evaluation
- Writing and Revising Evaluation Rubrics — A regression repair often needs two separate changes: revising the prompt to encode the specialist's standard, and…
- Writing and Running Python Scripts — Python is indeed an exciting and powerful language. It has the right combination of performance and features that make writing…
- Writing and Running Your First Python Program — The software development process has five phases: What (Analysis), Do It (Implementation), Test (Testing and Debugging), Use…
- Writing and Testing Reusable Functions — The computepay function encapsulates pay calculation logic with two parameters: hours and rate.
- Writing Binary Data to Disk — Buffered reading prevents memory exhaustion by reading large files in fixed-size blocks and writing each block to disk before…
- Writing Classes and Instance Variables — The default equals(obj) inherited from class Object tests whether two references point to the same object, which gives the same…
- Writing Clear and Readable Code — Redundant comments restate what the code already shows; useful comments add context, meaning, or reasoning that the syntax…
- Writing Clear Code — Comments in Python start with the # symbol and extend to the end of the line; everything after # is ignored by the interpreter
- Writing Clear Definitions — A recursive definition uses the thing being defined as part of its own definition, and the source says this can be a very…
- Writing Clear Status Updates to Customers — Lead with the bad news directly, because the customer needs the headline before any context.
- Writing Clear Variable Names — As programs grow larger and more complex, they become harder to read due to the density of formal language
- Writing Code Others Can Read — Descriptive variable names can paradoxically make code harder for beginners to parse because they blur the line between reserved…
- Writing Code That Is Easy to Debug — Debugging is the process of finding the cause of an error in your code, triggered by error messages or incorrect results.
- Writing Command-Line Programs — However, I strongly recommend that you stick to writing a maximum of a single logical line on each single physical line . The…
- Writing Conditional Statements — A for loop over a dictionary iterates through keys; to filter by value, use the index operator to retrieve each value and test…
- Writing Data to Files — The file handle does not contain file data; it is a connection to the file on disk that the for loop uses to read data…
- Writing Data to Files: The write() Method — Write mode ('w') opens a file for writing and immediately truncates (erases) any existing content in the file.
- Writing Data to SQLite with INSERT Statements — Use the Database Browser for SQLite to verify that your Python programs are correctly reading and writing data to the database.
- Writing Defensive Code with Input Validation — The Python interpreter recovers from errors and returns a prompt; a script terminates immediately with a traceback.
- Writing Effective Functions — A docstring is a documentation string that Python stores as part of a function object, making it accessible during program…
- Writing Effective Project Briefs — A hiring manager gives a portfolio a short review window of about forty-five seconds, so presentation must be deliberate.
- Writing Effective SELECT Queries — INSERT OR IGNORE silently skips an insertion if it would violate a constraint, allowing your program to continue without an error.
- Writing Effective Tests — Scale down your dataset first: modify your program to read only the first n lines, then increase n gradually as you fix bugs.…
- Writing Efficient INSERT Statements — Auto-generated primary keys shift the responsibility for ID management from the application to the database, eliminating manual…
- Writing Efficient SQL Queries — JOIN and ON clauses reconstruct data across multiple tables by following relational connections between foreign keys and primary…
- Writing Event Handlers in Java — An event listener is an object that detects and reacts to events, and it must contain instance methods for the events it listens…
- Writing Event-Handling Methods — A MouseEvent provides the cursor position through evt.getX() and evt.getY(), returned as integers measured from the top left…
- Writing Functions — A function is defined with the `def` keyword, followed by a name, a parenthesized parameter list, and a colon that opens the…
- Writing Functions and Subroutines — A function is written like a regular subroutine, with the addition that you must specify the value it returns.
- Writing Functions in Script Files — In interactive mode, the interpreter displays ellipses ( . . . ) to indicate that a function definition is incomplete and…
- Writing Functions That Handle Errors — try-except is an insurance policy on a sequence of statements, allowing you to respond to errors instead of crashing.
- Writing Functions That Return Values — A function that returns a value hands the result back to its caller, and the caller must assign or use that result for it to…
- Writing Functions with Clear Purposes — Dividing a long program into functions allows you to debug the parts one at a time and then assemble them into a working whole.
- Writing JOIN Queries to Retrieve Data Across Multiple Tables — A multi-table relational schema organizes data across separate tables to eliminate redundancy and improve data integrity. The…
- Writing Loops Inside Subroutines — A parameterized subroutine declares a parameter list in its definition, which specifies the number and types of values a caller…
- Writing Methods With Parameters — A single array may be passed to a variable arity method in place of a list of separate values, and the call is legal.
- Writing Objects to a File — A version number in a file's first line tells a program which layout rules were used, and a higher number signals a newer format.
- Writing Programs That Print Results with System.out — Console-style input/output means the computer and the user exchange lines of text, with System.out handling most output and…
- Writing Readable Code — Comments are text after the # symbol that Python ignores; they are notes for readers, not executable code.
- Writing Readable Code: Style and Conventions — Variable names must start with a letter or underscore, contain only letters, digits, and underscores, and can be any length.
- Writing Reusable Functions — The __name__ attribute tells you whether a module is being run directly (__main__) or imported (module name).
- Writing Robust Conditions — Python evaluates logical expressions left to right and stops early when the result is determined (short-circuit evaluation)
- Writing Robust Programs — Software failures range from annoyances to serious losses, and their consequences grow in proportion to the importance of the…
- Writing Robust Programs with Error Handling — Try/except structures prevent program crashes by catching exceptions and executing recovery code when operations fail.
- Writing Rubrics for Grading Outputs — An LLM-as-judge is a separate LLM call that grades the output of the system under test against a rubric.
- Writing Rubrics That a Judge Can Apply Consistently — LLM-judge calibration checks a judge's grades against a set of handlabeled contracts so that trust is based on measured…
- Writing Self-Documenting Code — Mnemonic variable names are memory aids chosen to reflect the programmer's intent about what data each variable stores.
- Writing Specific Engagement Updates — A weekly status update uses the same five labeled sections every week so a sponsor can locate information quickly.
- Writing Specifications for Programs — A program is correct when it produces the correct result as specified, so correctness is always measured against a specification.
- Writing Subroutines with Parameters — A subroutine's signature is its name together with the number and types of its formal parameters, written as…
- Writing Technical Specifications from Customer Goals — The Jobs-to-be-Done lens asks what job a person hired the product to do, and in AI deployments the answer is usually an outcome…
- Writing the train_model_simple Function — A PyTorch training run repeats a core update cycle: reset gradients, calculate loss, perform a backward pass, and update weights.
- Writing Try-Except Blocks for File Operations — An ungraceful exit occurs when an unhandled exception causes a program to crash and print a traceback instead of terminating in…
- Writing Wrappers Around Vendor Models — The FDE is the institutional memory of the engagement, responsible for continuity across change.
- Writing Your First Function — The def keyword marks the start of a function definition and is required for every function.
- Writing Your First Java Class in Eclipse — A Java project in Eclipse is created from File, then New, then Java Project, where you choose a Project Name that can be anything.
- Writing Your First Python Program — Python is case-sensitive: print and Print are different, and only print is the built-in output function.
- Writing Your First Subroutine — A parameter is a value passed to a subroutine so that one fixed procedure can handle different inputs.
- Writing Your Own Subroutines — A subroutine's contract describes what it does when the caller supplies acceptable parameter values, and it is violated when bad…