Previous question · 1425
Mean Session Length
mediumDatabase
Next question · 1427
Write Ahead Log
mediumData Engineering
Random coding question

1426. Mean pooling of embeddings

easy
GeneralGeneral
senior
Function contract
Inputs
embeddings
np.ndarray
Returns
value
np.ndarray

Examples

Input
{
  "embeddings": [
    [
      1,
      2,
      3
    ],
    [
      3,
      2,
      1
    ],
    [
      2,
      2,
      2
    ]
  ]
}
Output
[
  2,
  2,
  2
]

Constraints

Hint 1
Hint 2
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Companies
GeneralGeneral
Levels
senior
entry
Tags
mean-pooling
embeddings
array-aggregation
numpy

Similar Questions

Linear Regressionmedium
ML Coding
Activation function relueasy
ML Coding
Text normalizationmedium
ML Coding
28 people are solving this problem
Loading editor for the selected language
Ln 1, Col 1
Program Output
DATAINTERVIEW
Interactive coding terminal
Python / NumPy environment ready.
Type a command below or run code from the editor.
run scriptExecute the current editor contents
submitGrade the current editor contents against all solution test cases
python ("print hello world")Run an isolated Python command
helpShow all available commands