<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Feature Engineering on 中文AI术语词典</title><link>https://terms-en.ai-term-hub.com/zh/tags/feature-engineering/</link><description>Recent content in Feature Engineering on 中文AI术语词典</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Sat, 18 Jul 2026 11:44:45 +0000</lastBuildDate><atom:link href="https://terms-en.ai-term-hub.com/zh/tags/feature-engineering/index.xml" rel="self" type="application/rss+xml"/><item><title>随机特征</title><link>https://terms-en.ai-term-hub.com/zh/terms/random_feature/</link><pubDate>Sat, 18 Jul 2026 11:31:50 +0000</pubDate><guid>https://terms-en.ai-term-hub.com/zh/terms/random_feature/</guid><description>&lt;h2 id="definition">Definition&lt;/h2>
&lt;p>随机特征映射将输入转换到新空间，使线性模型能够近似非线性核函数。这种方法通常与 Nyström 方法或傅里叶特征相关联，允许在保持计算效率的同时处理复杂的非线性关系。&lt;/p>
&lt;h3 id="summary">Summary&lt;/h3>
&lt;p>一种利用随机投影将输入数据映射到高维空间的技术，以高效近似核方法。&lt;/p>
&lt;h2 id="key-concepts">Key Concepts&lt;/h2>
&lt;ul>
&lt;li>核近似&lt;/li>
&lt;li>特征映射&lt;/li>
&lt;li>计算效率&lt;/li>
&lt;li>线性化&lt;/li>
&lt;/ul>
&lt;h2 id="use-cases">Use Cases&lt;/h2>
&lt;ul>
&lt;li>大规模核回归&lt;/li>
&lt;li>神经切线核 (NTK) 近似&lt;/li>
&lt;li>可扩展的高斯过程&lt;/li>
&lt;/ul>
&lt;h2 id="code-example">Code Example&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-python" data-lang="python">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">import&lt;/span> numpy &lt;span style="color:#66d9ef">as&lt;/span> np
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">from&lt;/span> sklearn.kernel_approximation &lt;span style="color:#f92672">import&lt;/span> RBFSampler
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>X &lt;span style="color:#f92672">=&lt;/span> np&lt;span style="color:#f92672">.&lt;/span>random&lt;span style="color:#f92672">.&lt;/span>rand(&lt;span style="color:#ae81ff">100&lt;/span>, &lt;span style="color:#ae81ff">5&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>transformer &lt;span style="color:#f92672">=&lt;/span> RBFSampler(gamma&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#ae81ff">1&lt;/span>, n_components&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#ae81ff">50&lt;/span>, random_state&lt;span style="color:#f92672">=&lt;/span>&lt;span style="color:#ae81ff">42&lt;/span>)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>X_transformed &lt;span style="color:#f92672">=&lt;/span> transformer&lt;span style="color:#f92672">.&lt;/span>fit_transform(X)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="related-terms">Related Terms&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/%E6%A0%B8%E6%8A%80%E5%B7%A7-kernel-trick/">核技巧 (Kernel trick)&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/%E5%82%85%E9%87%8C%E5%8F%B6%E7%89%B9%E5%BE%81-fourier-features/">傅里叶特征 (Fourier features)&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/nystr%C3%B6m-%E6%96%B9%E6%B3%95-nystrom-method/">Nyström 方法 (Nystrom method)&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/%E9%99%8D%E7%BB%B4-dimensionality-reduction/">降维 (Dimensionality reduction)&lt;/a>&lt;/li>
&lt;/ul></description></item><item><title>词袋模型</title><link>https://terms-en.ai-term-hub.com/zh/terms/bag_of_words_model/</link><pubDate>Sat, 18 Jul 2026 11:08:27 +0000</pubDate><guid>https://terms-en.ai-term-hub.com/zh/terms/bag_of_words_model/</guid><description>&lt;h2 id="definition">Definition&lt;/h2>
&lt;p>这种自然语言处理技术将文本表示为单词的多重集， disregarding 句法和序列。它根据词频或存在性将文档转换为数值向量。&lt;/p>
&lt;h3 id="summary">Summary&lt;/h3>
&lt;p>词袋模型是一种简化的文本表示方法，描述文档中单词的出现情况，忽略语法和词序。&lt;/p>
&lt;h2 id="key-concepts">Key Concepts&lt;/h2>
&lt;ul>
&lt;li>分词&lt;/li>
&lt;li>频率统计&lt;/li>
&lt;li>向量空间&lt;/li>
&lt;li>特征提取&lt;/li>
&lt;/ul>
&lt;h2 id="use-cases">Use Cases&lt;/h2>
&lt;ul>
&lt;li>文本分类&lt;/li>
&lt;li>垃圾邮件过滤&lt;/li>
&lt;li>信息检索&lt;/li>
&lt;/ul>
&lt;h2 id="code-example">Code Example&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-python" data-lang="python">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">from&lt;/span> sklearn.feature_extraction.text &lt;span style="color:#f92672">import&lt;/span> CountVectorizer
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>corpus &lt;span style="color:#f92672">=&lt;/span> [&lt;span style="color:#e6db74">&amp;#34;Hello world&amp;#34;&lt;/span>, &lt;span style="color:#e6db74">&amp;#34;World hello&amp;#34;&lt;/span>]
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>vectorizer &lt;span style="color:#f92672">=&lt;/span> CountVectorizer()
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>X &lt;span style="color:#f92672">=&lt;/span> vectorizer&lt;span style="color:#f92672">.&lt;/span>fit_transform(corpus)
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="related-terms">Related Terms&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/tf-idf-%E8%AF%8D%E9%A2%91-%E9%80%86%E6%96%87%E6%A1%A3%E9%A2%91%E7%8E%87/">TF-IDF (词频-逆文档频率)&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/n-grams-n%E5%85%83%E8%AF%AD%E6%B3%95/">N-grams (N元语法)&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/word-embeddings-%E8%AF%8D%E5%B5%8C%E5%85%A5/">Word Embeddings (词嵌入)&lt;/a>&lt;/li>
&lt;/ul></description></item><item><title>Encoder</title><link>https://terms-en.ai-term-hub.com/zh/terms/encoder/</link><pubDate>Sat, 18 Jul 2026 10:59:51 +0000</pubDate><guid>https://terms-en.ai-term-hub.com/zh/terms/encoder/</guid><description>&lt;h2 id="definition">Definition&lt;/h2>
&lt;p>编码器处理原始输入序列或数据结构，并将它们转换为潜在空间表示，通常称为嵌入或代码。它们是 Transformer 和自编码器等架构的核心部分。&lt;/p>
&lt;h3 id="summary">Summary&lt;/h3>
&lt;p>编码器是神经网络的组件，它将输入数据转换为压缩的、有意义的表示形式。&lt;/p>
&lt;h2 id="key-concepts">Key Concepts&lt;/h2>
&lt;ul>
&lt;li>特征提取&lt;/li>
&lt;li>潜在空间&lt;/li>
&lt;li>序列处理&lt;/li>
&lt;li>压缩&lt;/li>
&lt;/ul>
&lt;h2 id="use-cases">Use Cases&lt;/h2>
&lt;ul>
&lt;li>在 Transformer 模型中处理输入文本&lt;/li>
&lt;li>在去噪自编码器中压缩图像&lt;/li>
&lt;li>从评论中提取情感特征&lt;/li>
&lt;/ul>
&lt;h2 id="code-example">Code Example&lt;/h2>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-python" data-lang="python">&lt;span style="display:flex;">&lt;span>&lt;span style="color:#f92672">import&lt;/span> torch.nn &lt;span style="color:#66d9ef">as&lt;/span> nn
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span>&lt;span style="color:#66d9ef">class&lt;/span> &lt;span style="color:#a6e22e">SimpleEncoder&lt;/span>(nn&lt;span style="color:#f92672">.&lt;/span>Module):
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">def&lt;/span> __init__(self, input_dim, hidden_dim):
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> super()&lt;span style="color:#f92672">.&lt;/span>__init__()
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> self&lt;span style="color:#f92672">.&lt;/span>fc &lt;span style="color:#f92672">=&lt;/span> nn&lt;span style="color:#f92672">.&lt;/span>Linear(input_dim, hidden_dim)
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> 
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">def&lt;/span> &lt;span style="color:#a6e22e">forward&lt;/span>(self, x):
&lt;/span>&lt;/span>&lt;span style="display:flex;">&lt;span> &lt;span style="color:#66d9ef">return&lt;/span> torch&lt;span style="color:#f92672">.&lt;/span>relu(self&lt;span style="color:#f92672">.&lt;/span>fc(x))
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="related-terms">Related Terms&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/decoder-%E8%A7%A3%E7%A0%81%E5%99%A8/">Decoder (解码器)&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/transformer-%E8%BD%AC%E6%8D%A2%E5%99%A8%E6%9E%B6%E6%9E%84/">Transformer (转换器架构)&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/autoencoder-%E8%87%AA%E7%BC%96%E7%A0%81%E5%99%A8/">Autoencoder (自编码器)&lt;/a>&lt;/li>
&lt;li>&lt;a href="https://terms-en.ai-term-hub.com/en/terms/latent-variable-%E6%BD%9C%E5%8F%98%E9%87%8F/">Latent Variable (潜变量)&lt;/a>&lt;/li>
&lt;/ul></description></item></channel></rss>