You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.3 KiB

4 months ago
import { PlainObject, DistanceType, GraphData, KeyValueMap } from '../types';
/**
*
* @param dataList
* @param involvedKeys key集合
* @param uninvolvedKeys key集合
*/
export declare const getAllKeyValueMap: (dataList: PlainObject[], involvedKeys?: string[], uninvolvedKeys?: string[]) => KeyValueMap;
/**
* one-hot编码
* @param dataList
* @param involvedKeys key集合
* @param uninvolvedKeys key集合
*/
export declare const oneHot: (dataList: PlainObject[], involvedKeys?: string[], uninvolvedKeys?: string[]) => any[];
/**
* getDistance
* @param item
* @param otherItem
* @param distanceType
* @param graphData
*/
export declare const getDistance: (item: any, otherItem: any, distanceType?: DistanceType, graphData?: GraphData) => number;
declare const _default: {
getAllKeyValueMap: (dataList: PlainObject[], involvedKeys?: string[], uninvolvedKeys?: string[]) => KeyValueMap;
oneHot: (dataList: PlainObject[], involvedKeys?: string[], uninvolvedKeys?: string[]) => any[];
getDistance: (item: any, otherItem: any, distanceType?: DistanceType, graphData?: GraphData) => number;
};
export default _default;