Files
lan-manager/web/node_modules/@antv/algorithm/es/utils/data-preprocessing.d.ts
openclaw 0a5f6a8047 Initial commit: Lan-manager project code
- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs

Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
2026-04-20 00:52:58 +08:00

30 lines
1.3 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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;