Find Jobs
Hire Freelancers

Write some Software

$10-30 USD

Tamamlandı
İlan edilme: 7 yıldan fazla önce

$10-30 USD

Teslimde ödenir
Given two data points x and y whose attributes are all numeric, the Euclidean distance kx − yk is a popular measurement. To be consistent with the textbook, we assume a vector x by default is a row vector. However, Euclidean distance is not effective if • the ranges (scales) of attributes are different, or • there exist correlations among attributes. Mahalanobis distance has been introduced to address the above problems. Given a dataset whose attributes are all numeric, we first construct the the covariance matrix Σ = (si,j )n×n, where an element si,j is the covariance of i-th and j-th attributes, and n is the number of attributes. The Mahalanobis distance of x and y is then defined as M ahalanobis(x, y) = (x − y)Σ−(x − y) T , where Σ − is the inverse of the matrix Σ, and (x − y) T is the transpose of the row vector x − y. In the part, you will first implement the above two distance measurements, and then give an experimental evaluation of these measurements. Usually, evaluation is performed in a specific data mining 2 tasks, such as classification, clustering. Since we currently have not yet got into these topics, we will simply check the consistency between two measurements based on random datasets. Specifically, you will need to 1. generate a random dataset of two-attribute instances in Gaussian distribution 2. build the covariance matrix Σ 3. set counter = 0 4. for each instance, (a) Compute the nearest neighbor using Euclidean distance (b) Compute the nearest neighbor using Mahalanobis distance (c) if the nearest neighbors are same, count++ 5. output the consistency ratio (count / number-of-instances) You will need to read the documentation of the packages [login to view URL] and [login to view URL], and typically the class Matrix to complete this part. To generate data in Gaussian distribution, you may refer to the standard Java class Random, and use the Java method nextGaussian().
Proje No: 11729403

Proje hakkında

2 teklif
Uzaktan proje
Son aktiviteden bu yana geçen zaman 8 yıl önce

Biraz para mı kazanmak istiyorsunuz?

Freelancer'da teklif vermenin faydaları

Bütçenizi ve zaman çerçevenizi belirleyin
Çalışmanız için ödeme alın
Teklifinizin ana hatlarını belirleyin
Kaydolmak ve işlere teklif vermek ücretsizdir
Seçilen:
Kullanıcı Avatarı
Simple project for me to complete. ................................................................ ......................................................................... ....................................
$40 USD 1 gün içinde
4,9 (229 değerlendirme)
6,7
6,7

Müşteri hakkında

   UNITED STATES bayrağı
Bowling green, United States
5,0
9
Ödeme yöntemi onaylandı
Eyl 14, 2016 tarihinden bu yana üye

Müşteri Doğrulaması

Teşekkürler! Ücretsiz kredinizi talep etmeniz için size bir bağlantı gönderdik.
E-postanız gönderilirken bir şeyler yanlış gitti. Lütfen tekrar deneyin.
Kayıtlı Kullanıcı İlan Edlien Toplam İş
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Ön izleme yükleniyor
Coğrafik konum için izin verildi.
Giriş oturumunuzun süresi doldu ve çıkış yaptınız. Lütfen tekrar giriş yapın.