Skip to content

Instantly share code, notes, and snippets.

View tanzilhassan's full-sized avatar
💭
I may be slow to respond.

Tanzil Bin Hassan tanzilhassan

💭
I may be slow to respond.
View GitHub Profile
@tanzilhassan
tanzilhassan / projection_simplex.py
Created September 12, 2024 21:44 — forked from mblondel/projection_simplex.py
Projection onto the simplex
"""
License: BSD
Author: Mathieu Blondel
Implements three algorithms for projecting a vector onto the simplex: sort, pivot and bisection.
For details and references, see the following paper:
Large-scale Multiclass Support Vector Machine Training via Euclidean Projection onto the Simplex
Mathieu Blondel, Akinori Fujino, and Naonori Ueda.