Problems
Previous question · 1425
Mean Session Length
medium
Database
Next question · 1427
Write Ahead Log
medium
Data Engineering
Random coding question
NumPy
Language
NumPy
Practice
Interview
AI Tutor
Description
Solution
Discussion
1426. Mean pooling of embeddings
easy
General
senior
Function contract
Inputs
embeddings
np.ndarray
Returns
value
np.ndarray
Examples
Example 1
Input
{
"embeddings"
:
[
[
1
,
2
,
3
]
,
[
3
,
2
,
1
]
,
[
2
,
2
,
2
]
]
}
Output
[
2
,
2
,
2
]
Example 2
Input Signature
Argument
Type
embeddings
np.ndarray
Output Signature
Return Name
Type
value
np.ndarray
Constraints
Hint 1
Hint 2
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Companies
General
Levels
senior
entry
Tags
mean-pooling
embeddings
array-aggregation
numpy
Similar Questions
Linear Regression
medium
ML Coding
Activation function relu
easy
ML Coding
Text normalization
medium
ML Coding
28 people
are solving this problem
Run
Submit
00:00
Loading editor for the selected language
Ln 1, Col 1
Program Output
DATA
INTERVIEW
Interactive coding terminal
Python / NumPy environment ready.
Type a command below or run code from the editor.
run script
Execute the current editor contents
submit
Grade the current editor contents against all solution test cases
python ("print hello world")
Run an isolated Python command
help
Show all available commands
>>>