# قسم الرياضيات و الإعلام الإلي

www.univ-soukahras.dz/ar/dept/mi

المقياس: Apprentissage automatique II

1. معلومات
2. الأسئلة
3. التعليم عن بعد

## Objective Function for Feature Selection : Based on Intra and Inter Class distance

 1 votes Write an Objective Function for Feature Selection to compute the score based on Intra and Inter Class separation. (In matlab or java or any other programming languages...) نشر على 10:23, الخميس 19 ديس 2019 By Imed BOUCHRIKA In Apprentissage automatique II

أجوبة (1)

### جواب (1)

 1 votes function j = compute_score(data,ids)   clear compute_score;   inter = [];   intra = [];   for i=1:size(data,1)-1      for ii=i+1:size(data,1)         b1 = data(i,:);         b2 = data(ii,:);         d = sqrt(sum((b1-b2).^2));         if ids(i) == ids(ii)            intra = [intra;d];         else            inter = [inter;d];         end      end   end   j = mean(intra)/mean(inter); نشر على 01:04, الأحد 12 ينا 2020 by abdennour redjaibia (282 points) In Apprentissage automatique II

هل لديك جواب ?