GO-V.ORG
As seen in

One-hot

In digital circuits and machine learning, a one-hot is a group of bits among which the legal combinations of values are only those with a single high (1) bit and all the others low (0).[src] A similar implementation in which all bits are '1' except one '0' is sometimes called one-cold.[src] In statistics, dummy variables represent a similar technique for representing categorical data.[src]

In digital circuits and machine learning, a one-hot is a group of bits among which the legal combinations of values are only those with a single high (1) bit and all the others low (0).[src] A similar implementation in which all bits are '1' except one '0' is sometimes called one-cold.[src] In statistics, dummy variables represent a similar technique for representing categorical data.[src] ==Applications== ===Digital circuitry=== One-hot encoding is often used for indicating the state of a state machine.[src] When using binary, a decoder is needed to determine the state.[src] A one-hot state machine, however, does not need a decoder as the state machine is in the nth state if, and only if, the nth bit is high.[src] A ring counter with 15 sequentially ordered states is an example of a state machine.[src] A 'one-hot' implementation would have 15 flip-flops chained in series with the Q output of each flip-flop connected to the D input of the next and the D input of the first flip-flop connected to the Q output of the 15th flip-flop.[src] The first flip-flop in the chain represents the first state, the second represents the second state, and so on to the 15th flip-flop, which represents the last state.[src] Upon reset of the state machine all of the flip-flops are reset to '0' except the first in the chain, which is set to '1'.[src] The next clock edge arriving at the flip-flops advances the one 'hot' bit to the second flip-flop.[src] The 'hot' bit advances in this way until the 15th state, after which the state machine returns to the first state.[src] An address decoder converts from binary to one-hot representation.[src] A priority encoder converts from one-hot representation to binary.[src] ====Comparison with other encoding methods==== =====Advantages===== Determining the state has a low and constant cost of accessing one flip-flop Changing the state has the constant cost of accessing two flip-flops Easy to design and modify Easy to detect illegal states Takes advantage of an FPGA's abundant flip-flops Using a one-hot implementation typically allows a state machine to run at a faster clock rate than any other encoding of that state machine =====Disadvantages===== Requires more flip-flops than other encodings, making it impractical for PAL devices Many of the states are illegal ===Natural language processing=== In natural language processing, a one-hot vector is a 1 × N matrix (vector) used to distinguish each word in a vocabulary from every other word in the vocabulary.[src] The vector consists of 0s in all cells with the exception of a single 1 in a cell used uniquely to identify the word.[src] One-hot encoding ensures that machine learning does not assume that higher numbers are more important.[src] For example, the value '8' is bigger than the value '1', but that does not make '8' more important than '1'.[src] The same is true for words: the value 'laughter' is not more important than 'laugh'.[src] ===Machine learning and statistics=== In machine learning, one-hot encoding is a frequently used method to deal with categorical data.[src] Because many machine learning models need their input variables to be numeric, categorical variables need to be transformed in the pre-processing part.[src] Categorical data can be either nominal or ordinal.[src] Ordinal data has a ranked order for its values and can therefore be converted to numerical data through ordinal encoding.[src] An example of ordinal data would be the ratings on a test ranging from A to F, which could be ranked using numbers from 6 to 1.[src] Since there is no quantitative relationship between nominal variables' individual values, using ordinal encoding can potentially create a fictional ordinal relationship in the data.[src] Therefore, one-hot encoding is often applied to nominal variables, in order to improve the performance of the algorithm.[src] For each unique value in the original categorical column, a new column is created in this method.[src] These dummy variables are then filled up with zeros and ones (1 meaning TRUE, 0 meaning FALSE).[src] Because this process creates multiple new variables, it is prone to creating a 'big p' problem (too many predictors) if there are many unique values in the original column.[src] Another downside of one-hot encoding is that it causes multicollinearity between the individual variables, which potentially reduces the model's accuracy.[src] Also, if the categorical variable is an output variable, you may want to convert the values back into a categorical form in order to present them in your application.[src] In practical usage, this transformation is often directly performed by a function that takes categorical data as an input and outputs the corresponding dummy variables.[src] An example would be the dummyVars function of the Caret library in R.[src]

36 sentences · 36 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"One-hot." encyclopegia.org, 2026, https://encyclopegia.org/wiki/one-hot. Accessed 06 December 2026.

Chicago

"One-hot." encyclopegia.org. Accessed December 6, 2026. https://encyclopegia.org/wiki/one-hot.

APA

encyclopegia.org. (2026). One-hot. Retrieved December 6, 2026, from https://encyclopegia.org/wiki/one-hot

Accessed December 6, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

BAC One-Eleven

stub · references available

hot chocolate

stub · references available

Half-Life 2: Episode One

stub · references available

Star One

stub · references available

One Touch

stub · references available

One Day in Your Life

stub · references available

Love One.

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1338330722 · 0.5 · snapshot enwiki-001338330722

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.