Browse Source

remove get_feature_array

quarrying 4 năm trước cách đây
mục cha
commit
217a94cff3
1 tập tin đã thay đổi với 0 bổ sung8 xóa
  1. 0 8
      khandy/utils_feature.py

+ 0 - 8
khandy/utils_feature.py

@@ -22,14 +22,6 @@ def convert_feature_array_to_dict(key_list, feature_array):
         feature_dict[key] = feature_array[k]
     return feature_dict
     
-    
-def get_feature_array(feature_dict, keys):
-    one_feature = _get_dict_first_item(feature_dict)[1]
-    feature_array = np.empty((len(keys), len(one_feature)), one_feature.dtype)
-    for i, key in enumerate(keys):
-        feature_array[i, :] = feature_dict[key]
-    return feature_array
-
 
 def pairwise_distances(x, y, squared=True):
     """Compute pairwise (squared) Euclidean distances.