注册
名词表 › K-nearest Neighbors

K-nearest Neighbors是什么?

K-nearest Neighbors(K近邻,KNN)是简单的监督学习算法:预测样本时找特征空间中距离最近的K个邻居,投票或平均出结果。

K近邻(K-nearest Neighbors,KNN)是一种简单的监督学习算法:预测一个样本时,在特征空间里找距离它最近的K个邻居,按多数投票(分类)或平均(回归)出结果。

它无需训练过程、易于理解,适合低维小数据的基线对比;维度高、数据量大时计算与存储成本高,实战中多作为基线而非主力模型。

全部术语

一词一页详解,浏览更多 ComfyUI 概念
VAE KSampler Sampler Scheduler CFG Steps Seed Latent LoRA Checkpoint CLIP Diffusion Model Denoise Latent Space Reasoning Planning Training Inference Small Language Model Grounding RAG Orchestration Memory Transformer Frontier Model GPU Artificial Intelligence Machine Learning Deep Learning Neural Network Large Language Model Generative AI Foundation Model Agent Prompt Prompt Engineering Context Window Token Tokenization Embedding Vector Database Attention Self-Attention Fine-tuning Pre-training Transfer Learning Few-shot Learning Zero-shot Learning In-Context Learning Chain of Thought Reinforcement Learning RLHF Supervised Learning Unsupervised Learning Self-Supervised Learning Classification Regression Overfitting Loss Function Gradient Descent Backpropagation Epoch Learning Rate Optimizer Dataset Hyperparameter Activation Function Softmax Normalization Regularization Dropout Convolutional Neural Network Recurrent Neural Network LSTM GAN Autoencoder Natural Language Processing Computer Vision Speech Recognition Text-to-Speech Hallucination Temperature Quantization Mixture of Experts Knowledge Distillation Pruning Chatbot GPT BERT ChatGPT Claude Gemini Llama Stable Diffusion Function Calling Knowledge Graph Recommender System Multi-Agent System World Model Synthetic Data Image Generation Text-to-Image Machine Translation Semantic Search Instruction Tuning Alignment Agentic AI Explainable AI DeepSeek Qwen Mistral Whisper DALL-E Midjourney Sora YOLO ResNet ImageNet PyTorch TensorFlow Keras Hugging Face LangChain LlamaIndex ONNX OpenCV CUDA TPU NPU vLLM ComfyUI Grok Copilot OpenAI Anthropic DeepMind AlphaGo AlphaFold Turing Test Top-p Top-k Beam Search Greedy Decoding KV Cache FlashAttention Adapter PEFT Model Compression Sparse Attention SGD Momentum Early Stopping Batch Normalization Gradient Accumulation Gradient Clipping Vanishing Gradient Cross-validation Test Set Validation Set Confusion Matrix Precision Recall F1 Score AUC Accuracy Perplexity BLEU Benchmark Active Learning Semi-supervised Learning Meta Learning Contrastive Learning Representation Learning Multimodal Vision-Language Model Image Captioning Object Detection Image Segmentation Face Recognition OCR Voice Cloning Text-to-Video Video Generation Text Summarization Sentiment Analysis Named Entity Recognition Question Answering Code Generation Data Augmentation Feature Engineering Feature Label Weights Bias Decision Tree Random Forest Support Vector Machine K-means K-nearest Neighbors Gradient Boosting Principal Component Analysis Multi-head Attention Positional Encoding Encoder Decoder Tokenizer Graph Neural Network Ground Truth Fairness Prompt Injection Jailbreak Red Teaming AI Ethics Responsible AI AI Safety Differential Privacy Federated Learning Edge AI Autonomous Driving Humanoid Robot Data Science Big Data API Plugin MCP Tool Use Structured Output Sentence Embedding Anomaly Detection Collaborative Filtering Data Drift A/B Testing Image-to-Image Negative Prompt Style Transfer Super Resolution Inpainting Outpainting ControlNet DreamBooth Textual Inversion Natural Language Understanding Natural Language Generation
TOP