P928 小花狮的机器学习

小花狮的机器学习

题目描述

小花狮最近沉迷于机器学习,他刚学会了 softmaxsoftmax,迫切地想要找个地方试试怎么用 softmaxsoftmax,但是他只找到了一道叫 rigidmaxrigidmax 的题目:

  1. 一个 EmbeddingEmbedding 内有 nn 个特征 aia_i,其中 ai1a_i \ge 1
  2. $score = \max \{ a_i | (\sum_{j=1}^{n} a_j) \bmod a_i = 0 \}$,表示取出最大的一个 aia_i,满足 (j=1naj)modai=0(\sum_{j=1}^{n} a_j) \bmod a_i = 0。若没有一个 aia_i 能被 j=1naj\sum_{j=1}^{n} a_j 整除,则 scorescore00
  3. $Filter = CLIP(score, 1, 7) = \begin{cases} 1 & \text{if } score < 1 \\ score & \text{if } 1 \le score \le 7 \\ 7 & \text{if } score > 7 \end{cases}$
  4. 最后输出 rigidmax=det(FilterA)rigidmax = \det(Filter \cdot A),其中 det\det 表示矩阵的行列式,AA 为一个 m×mm \times m 的下三角矩阵。
🔒
登录后查看完整题面
登录后查看题目

统计