encyclopegia.org

Ho–Kashyap algorithm

The Ho–Kashyap algorithm is an iterative method in machine learning for finding a linear decision boundary that separates two linearly separable classes.[src] It was developed by Yu-Chi Ho and Rangasami L.[src] Kashyap in 1965, and usually presented as a problem in linear programming.[src]

The Ho–Kashyap algorithm is an iterative method in machine learning for finding a linear decision boundary that separates two linearly separable classes.[src] It was developed by Yu-Chi Ho and Rangasami L.[src] Kashyap in 1965, and usually presented as a problem in linear programming.[src] \mathbf{Yw} = \mathbf{b} where \mathbf{Y} is the augmented data matrix with samples from both classes (with appropriate sign conventions, e.g., samples from class 2 are negated), \mathbf{w} is the weight vector to be determined, and \mathbf{b} is a positive margin vector.[src] The algorithm minimizes the criterion function: J(\mathbf{w}, \mathbf{b}) = ||\mathbf{Yw} - \mathbf{b}||^2 subject to the constraint that \mathbf{b} > \mathbf{0} (element-wise).[src] Given a problem of linearly separating two classes, we consider a dataset of elements \{(\mathbf{x_i}, y_i)\}_{i \in 1:N} where y_i \in \{-1, +1\} .[src] Linearly separating them by a perceptron is equivalent to finding weight and bias \mathbf{w}, b for a perceptron, such that: \begin{bmatrix} y_1 \mathbf{x}_1 & 1 \\ \vdots & \vdots \\ y_N \mathbf{x}_N & 1 \\ \end{bmatrix} \begin{bmatrix} \mathbf{w} \\ b \end{bmatrix} > 0 Given any \mathbf{b} , the corresponding \mathbf{w} is known: It is simply \mathbf{w} = \mathbf{Y}^+ \mathbf{b} , where \mathbf{Y}^+ denotes the Moore–Penrose pseudoinverse of \mathbf{Y} .[src] Therefore, it only remains to find \mathbf{b} by gradient descent.[src] However, the gradient descent may sometimes decrease some of the coordinates of \mathbf{b} , which may cause some coordinates of \mathbf{b} to become negative, which is undesirable.[src] Therefore, whenever some coordinates of \mathbf{b} would have decreased, those coordinates are unchanged instead.[src] As for the coordinates of \mathbf{b} that would increase, those would increase without issue.[src] Formally, the algorithm is as follows: Initialization: Set \mathbf{b}(0) to an arbitrary positive vector, typically \mathbf{b}(0) = \mathbf{1} (a vector of ones).[src] Set the iteration counter k = 0 .[src] Set \mathbf{w}(0) = \mathbf{Y}^+ \mathbf{b}(0) Loop until convergence, or until iteration counter exceeds some k_{max} .[src] Error calculation: Compute the error vector: \mathbf{e}(k) = \mathbf{Yw}(k) - \mathbf{b}(k) .[src] Margin update: Update the margin vector: \mathbf{b}(k+1) = \mathbf{b}(k) + 2\eta_k (\mathbf{e}(k) + |\mathbf{e}(k)|) where \eta_k is a positive learning rate parameter, and |\mathbf{e}(k)| denotes the element-wise absolute value.[src] Weight calculation: Compute the weight vector using the pseudoinverse: \mathbf{w}(k+1) = \mathbf{Y}^+ \mathbf{b}(k+1) .[src] Convergence check: If ||\mathbf{e}(k)|| \le \theta for some predetermined threshold \theta (close to zero), then return \mathbf{b}(k+1), \mathbf{w}(k+1) .[src] if \mathbf{e}(k) \le \mathbf{0} (all components non-positive), return "Samples not separable.".[src] Return "Algorithm failed to converge in time.".[src] If the training data is linearly separable, the algorithm converges to a solution (where \mathbf{e}(k) = \mathbf{0} ) in a finite number of iterations.[src] If the data is not linearly separable, the algorithm may or may not ever reach the point where \mathbf{e}(k) = \mathbf{0} .[src] However, if it does happen that \mathbf{e}(k) \le \mathbf{0} at some iteration, this proves non-separability.[src] The convergence rate depends on the choice of the learning rate parameter \rho and the degree of linear separability of the data.[src] Modified Ho–Kashyap algorithm changes weight calculation step \mathbf{w}(k+1) = \mathbf{Y}^+ \mathbf{b}(k+1) to \mathbf{w}(k+1) = \mathbf{w}(k) + \eta_k \mathbf{Y}^+ |\mathbf{e}(k)| .[src] Kernel Ho–Kashyap algorithm: Applies kernel methods (the "kernel trick") to the Ho–Kashyap framework to enable non-linear classification by implicitly mapping data to a higher-dimensional feature space.[src]

29 sentences · 29 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Ho–Kashyap algorithm." encyclopegia.org, 2026, https://encyclopegia.org/wiki/ho-kashyap-algorithm. Accessed 02 December 2026.

Chicago

"Ho–Kashyap algorithm." encyclopegia.org. Accessed December 2, 2026. https://encyclopegia.org/wiki/ho-kashyap-algorithm.

APA

encyclopegia.org. (2026). Ho–Kashyap algorithm. Retrieved December 2, 2026, from https://encyclopegia.org/wiki/ho-kashyap-algorithm

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

CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1334026093 · 0.5 · snapshot enwiki-001334026093

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.