Neighbourhood components analysis

Neighbourhood components analysis is a supervised learning method for classifying multivariate data into distinct classes according to a given distance metric over the data. Functionally, it serves the same purposes as the K-nearest neighbors algorithm and makes direct use of a related concept termed stochastic nearest neighbours.

Definition

Neighbourhood components analysis aims at "learning" a distance metric by finding a linear transformation of input data such that the average leave-one-out (LOO) classification performance is maximized in the transformed space. The key insight to the algorithm is that a matrix corresponding to the transformation can be found by defining a differentiable objective function for , followed by the use of an iterative solver such as conjugate gradient descent. One of the benefits of this algorithm is that the number of classes can be determined as a function of , up to a scalar constant. This use of the algorithm, therefore, addresses the issue of model selection.

Explanation

In order to define , we define an objective function describing classification accuracy in the transformed space and try to determine such that this objective function is maximized.

Leave-one-out (LOO) classification

Consider predicting the class label of a single data point by consensus of its -nearest neighbours with a given distance metric. This is known as leave-one-out classification. However, the set of nearest-neighbours can be quite different after passing all the points through a linear transformation. Specifically, the set of neighbours for a point can undergo discrete changes in response to smooth changes in the elements of , implying that any objective function based on the neighbours of a point will be piecewise-constant, and hence not differentiable.

Solution

We can resolve this difficulty by using an approach inspired by stochastic gradient descent. Rather than considering the -nearest neighbours at each transformed point in LOO-classification, we'll consider the entire transformed data set as stochastic nearest neighbours. We define these using a softmax function of the squared Euclidean distance between a given LOO-classification point and each other point in the transformed space:

The probability of correctly classifying data point is the probability of classifying the points of each of its neighbours with the same class :

where is the probability of classifying neighbour of point .

Define the objective function using LOO classification, this time using the entire data set as stochastic nearest neighbours:

Note that under stochastic nearest neighbours, the consensus class for a single point is the expected value of a point's class in the limit of an infinite number of samples drawn from the distribution over its neighbours i.e.: . Thus the predicted class is an affine combination of the classes of every other point, weighted by the softmax function for each where is now the entire transformed data set.

This choice of objective function is preferable as it is differentiable with respect to (denote ):

Obtaining a gradient for means that it can be found with an iterative solver such as conjugate gradient descent. Note that in practice, most of the innermost terms of the gradient evaluate to insignificant contributions due to the rapidly diminishing contribution of distant points from the point of interest. This means that the inner sum of the gradient can be truncated, resulting in reasonable computation times even for large data sets.

Alternative formulation

"Maximizing is equivalent to minimizing the -distance between the predicted class distribution and the true class distribution (ie: where the induced by are all equal to 1). A natural alternative is the KL-divergence, which induces the following objective function and gradient:" (Goldberger 2005)

In practice, optimization of using this function tends to give similar performance results as with the original.

History and background

Neighbourhood components analysis was developed by Jacob Goldberger, Sam Roweis, Ruslan Salakhudinov, and Geoff Hinton at the University of Toronto's department of computer science in 2004.

See also

References

  • J. Goldberger, G. Hinton, S. Roweis, R. Salakhutdinov. (2005) Neighbourhood Components Analysis. Advances in Neural Information Processing Systems. 17, 513–520, 2005.

Software

Read other articles:

  لمعانٍ أخرى، طالع بيت الشامي (توضيح). قرية بيت الشامي  - قرية -  تقسيم إداري البلد  اليمن المحافظة محافظة صنعاء المديرية مديرية بني مطر العزلة عزلة بقلان السكان التعداد السكاني 2004 السكان 679   • الذكور 344   • الإناث 335   • عدد الأسر 78   • عدد المساكن ...

 

1972 British film by Douglas Hickox Sitting TargetDirected byDouglas HickoxScreenplay byAlexander JacobsBased onSitting Target1970 novelby Laurence HendersonProduced byBarry KulickStarringOliver ReedJill St. JohnIan McShaneEdward WoodwardFreddie JonesFrank FinlayCinematographyEdward ScaifeEdited byJohn GlenMusic byStanley MyersDistributed byMetro-Goldwyn-MayerRelease dates May 1972 (1972-05) (UK) 12 June 1972 (1972-06-12) (NYC) Running time93 minutesCountryUni...

 

Синелобый амазон Научная классификация Домен:ЭукариотыЦарство:ЖивотныеПодцарство:ЭуметазоиБез ранга:Двусторонне-симметричныеБез ранга:ВторичноротыеТип:ХордовыеПодтип:ПозвоночныеИнфратип:ЧелюстноротыеНадкласс:ЧетвероногиеКлада:АмниотыКлада:ЗавропсидыКласс:Пт�...

イスラームにおける結婚(イスラームにおけるけっこん)とは、二者の間で行われる法的な契約である。新郎新婦は自身の自由な意思で結婚に同意する。口頭または紙面での規則に従った拘束的な契約は、イスラームの結婚で不可欠だと考えられており、新郎と新婦の権利と責任の概要を示している[1]。イスラームにおける離婚は様々な形をとることができ、個�...

 

Recipient of the Victoria Cross Edward BarberBorn10 June 1893Tring, HertfordshireDied12 March 1915 (aged 21)Neuve Chapelle, FranceBuriedRemembered on the Le Touret MemorialAllegiance United KingdomService/branch British ArmyYears of service-1915 †RankPrivateService number15518UnitGrenadier GuardsBattles/warsWorld War I Western Front Battle of Neuve Chapelle  † AwardsVictoria Cross Edward Barber VC (10 June 1893 – 12 March 1915) was an English recipient of...

 

American zoologist (1887–1959) E. Newton HarveyBornEdmund Newton Harvey(1887-11-25)November 25, 1887Germantown, PennsylvaniaDiedJuly 21, 1959(1959-07-21) (aged 71)Woods Hole, MassachusettsNationalityAmericanAlma materUniversity of PennsylvaniaColumbia UniversityKnown forBioluminescenceScientific careerFieldsZoologyThesisStudies on the Permeability of Cells (1911)Doctoral advisorThomas Hunt MorganDoctoral studentsWilliam D. McElroy Edmund Newton Harvey (November 25, 1887 ...

Jim Sheridan Född6 februari 1949 (75 år)Dublin, IrlandÅr som aktiv1989-Betydande verkMin vänstra fot (1989) I faderns namn (1993) Drömmarnas land (2002)IMDb SFDb Jim Sheridan, född 6 februari 1949 i Dublin, Irland, är en flerfaldigt Oscarsnominerad regissör, manusförfattare och producent. Sheridan långfilmsdebuterade 1989 med Min vänstra fot som nominerades till fem Oscars. Förutom nomineringar för bästa manliga huvudroll (Daniel Day-Lewis), bästa kvinnliga biroll (Brenda ...

 

1955 British film by Leslie Norman The Night My Number Came UpUK release posterDirected byLeslie NormanWritten byR. C. SherriffVictor Goddard (story)Produced byMichael BalconStarringMichael RedgraveSheila SimAlexander KnoxDenholm ElliottCinematographyLionel BanesEdited byPeter TannerMusic byMalcolm ArnoldProductioncompanyEaling StudiosDistributed byGeneral Film Distributors (UK)Continental Film Distributors (US)Release date 22 March 1955 (1955-03-22) (UK) Running time94 min...

 

土库曼斯坦总统土库曼斯坦国徽土库曼斯坦总统旗現任谢尔达尔·别尔德穆哈梅多夫自2022年3月19日官邸阿什哈巴德总统府(Oguzkhan Presidential Palace)機關所在地阿什哈巴德任命者直接选举任期7年,可连选连任首任萨帕尔穆拉特·尼亚佐夫设立1991年10月27日 土库曼斯坦土库曼斯坦政府与政治 国家政府 土库曼斯坦宪法 国旗 国徽 国歌 立法機關(英语:National Council of Turkmenistan) ...

Short takeoff and landing aircraft Not to be confused with V/STOL. This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources in this article. Unsourced material may be challenged and removed.Find sources: STOVL – news · newspapers · books · scholar · JSTOR (December 2007) (Learn how and when to remove this message) A Sea Harrier launches from the flight deck of HMS Illustrious...

 

Political party in Nepal Federal Socialist Forum, Nepal संघीय समाजवादी फोरम, नेपालAbbreviationFSFNChairpersonUpendra Yadav Rajendra Prasad ShresthaGeneral SecretaryRam Sahay YadavFounded15 June 2015 (8 years ago) (2015-06-15)Dissolved6 May 2019Merger ofMadheshi Jana Adhikar Forum, NepalFederal Socialist Party NepalKhas Samabeshi PartySucceeded bySamajbadi Party, NepalHeadquartersTinkune, Kathmandu, NepalYouth wingFederal ...

 

Ini adalah nama Korea; marganya adalah Min. Min Ji-hyunLahir6 November 1984 (umur 39)Korea SelatanPendidikanMyongji College - Theater StudiesPekerjaanAktrisTahun aktif2005-sekarang Nama KoreaHangul민지현 Alih AksaraMin Ji-hyeonMcCune–ReischauerMin Chihyŏn Min Ji-hyun (lahir 6 November 1984) adalah seorang aktris asal Korea Selatan.[1][2] Filmografi Serial televisi Tahun Judul Peran Jaringan 2005 The Youth in Bare Foot MBC 2007 Mackerel Run Ki Yeo-woon SBS 2008 ...

This article uses bare URLs, which are uninformative and vulnerable to link rot. Please consider converting them to full citations to ensure the article remains verifiable and maintains a consistent citation style. Several templates and tools are available to assist in formatting, such as reFill (documentation) and Citation bot (documentation). (August 2022) (Learn how and when to remove this message) This is a list of notable indoor arenas in the Netherlands. Indoor stadiums with a capacity...

 

American politician and educator T. K. Wetherell13th President of the Florida State UniversityIn officeJanuary 6, 2003 – January 31, 2010Preceded bySandy D'AlemberteSucceeded byEric J. Barron4th President of the Tallahassee Community CollegeIn office1995–2001Preceded byJames H. Hinson, Jr.Succeeded byWilliam D. Law86th Speaker of the Florida House of RepresentativesIn officeNovember 20, 1990 – November 17, 1992Preceded byTom GustafsonSucceeded byBolley JohnsonMember of...

 

Part of a series on theOlympic water polorecords and statistics Topics Overall statistics men women Champions men women Team appearances men women Player appearances men women Medalists men women Top goalscorers men women Goalkeepers men women Flag bearers and oath takers Venues Teams Men's teams Australia Belgium Brazil Canada Croatia Egypt France Germany Great Britain Greece Hungary Italy Japan Kazakhstan Montenegro Netherlands Romania Russia Serbia Serbia and Montenegro Soviet Union Spain...

Staten Island Railway station Old Town Staten Island Railway station (rapid transit)Northbound platformGeneral informationLocationOld Town Road and North Railroad AvenueOld Town, Staten IslandCoordinates40°35′47″N 74°05′15″W / 40.5964°N 74.0875°W / 40.5964; -74.0875Platforms2 side platformsTracks2ConstructionStructure typeEmbankmentOther informationStation code506HistoryOpened1937[a]Previous namesOld Town RoadServices Preceding station Staten Island...

 

Exponentielle Abnahme einer Größe vom anfänglichen Wert N {\displaystyle N} mit der Zeit t {\displaystyle t} . Die Kurve folgt der Gleichung N ( t ) = N ⋅ e − t ⋅ ln ⁡ ( 2 ) / T 1 / 2 {\displaystyle N(t)=N\cdot \mathrm {e} ^{-t\cdot \ln(2)/T_{1/2}}} . N {\displaystyle N} kann z. B. die anfängliche Zahl von radioaktiven Atomkernen in einer Probe sein. Die Halbwertszeit oder Halbwertzeit[1] (abgekürzt HWZ, Formelzeichen meist T 1 / 2 {\displaystyle ...

 

1504 painting by Albrecht Dürer Albrecht Dürer, Adoration of the Magi. 1504. 99 × 113.5 cm. Oil on wood. Uffizi, Florence. The Adoration of the Magi is a panel painting by Albrecht Dürer (1471-1528), produced under commission by Frederick the Wise for the altar of the Schlosskirche in Wittenberg. It is considered one of Dürer's best and most important works from the period between his first and second trips to Italy (1494-5 and 1505).[1][2] The work is modest in size, jus...

Not to be confused with Princess Vera Constantinovna of Russia.Duchess Eugen of Württemberg Grand Duchess Vera KonstantinovnaDuchess Eugen of WürttembergPhotograph, 1909Born(1854-02-16)16 February 1854Saint Petersburg, Russian EmpireDied11 April 1912(1912-04-11) (aged 58)Stuttgart, Kingdom of Württemberg, German EmpireSpouse Duke Eugen of Württemberg ​ ​(m. 1874; died 1877)​IssueDuke Charles Eugen Elsa, Princess Albert of Schaumburg-Lip...

 

British cartographer (d. 1803) Not to be confused with Richard Norwood. Horwood's map of London, 1792–1799 Richard Horwood (1757/8 – 3 October 1803)[1] was a surveyor and cartographer. He is mainly remembered for his large-scale plan of London and its suburbs published in 32 sheets between 1792 and 1799. He also published a plan of Liverpool in six sheets in 1803. Map of London Between 1792 and 1799 Horwood published a Plan of the Cities of London and Westminster the Borough of So...