cross-product transformation

交叉乘积变换来源于线性代数,不同于传统意义上的交叉乘积。该变换使用参数c决定输入向量x中哪些维度进行相乘。通过举例说明了如何对4维向量进行变换,并解释了如何利用不同参数实现不同变换。在二进制特征场景下,特定的参数组合可以检查所有相关特征是否都为真,返回1或0,从而定义了关注的特征并判断其状态。
摘要由CSDN通过智能技术生成

Let’s do this in the opposite order of how you asked. i.e. first:
How can I think of the cross-product transformation in general?

For me a cross-product comes from linear algebra, and it is a different transformation. Therefore let’s start by not confusing both. The cross-product in the equation above is a transformation alright but is not related to what most of us call a cross product.

With that out of the way let’s look at the formula. Since both the index on the product and components of x ⃗ \vec{x} x and c ⃗ \vec{c} c are the same (they’re all i i i), we can be rather confident that d d d is the number of dimensions/features we are working with. Therefore to make things a little easier to see let’s work with d = 4 d = 4 d=4:

ϕ k ( x ⃗ ) = ∏ i = 1 4 x i c k i c k i ∈ { 0 , 1 } \phi_{k}(\vec{x})=\prod_{i=1}^{4} x_{i}^{c_{k i}} \quad c_{k i} \in\{0,1\} ϕk(x )=i=14xickicki{ 0,1}

Now we can write an example vector to which we apply the transformation, say:

x ⃗ = [ 7 , 5 , − 0.5 , 0.2 ] \vec{x} = [7, 5, -0.5, 0.2] x =[7,5,0.5,0.2]

And an example vector which parametrizes the transformation:

c ⃗ = [ 0 , 1 , 1 , 0 ] \vec{c} = [0, 1, 1, 0] c =[0,1,1,0]

And for a start let’s evaluate the transformation:

ϕ k ( x ⃗ ) = 7 0 ⋅ 5 1 ⋅ − 0. 5 1 ⋅ 0. 2 0 = 5 ⋅ − 0.5 = − 2.5 \phi_k(\vec{x}) = 7^0 \cdot 5^1 \cdot -0.5^1 \cdot 0.2^0 = 5 \cdot -0.5 = -2.5

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值