Previous question · 1228
Can Place Flowers
easyData Structures
Next question · 1230
Flatten Nested List Iterator
mediumData Structures
Random coding question

1229. Ensemble averaging

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

Examples

Input
{
  "predictions": [
    [
      0.2,
      0.8,
      0.4
    ],
    [
      0.1,
      0.9,
      0.6
    ],
    [
      0.3,
      0.7,
      0.5
    ]
  ]
}
Output
[
  0.20000000000000004,
  0.8000000000000002,
  0.5
]

Constraints

Hint 1
Hint 2
Hint 3
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Companies
GeneralGeneral
Levels
senior
entry
Tags
numpy-mean
ensemble-averaging
vectorization
aggregation

Similar Questions

Linear Regressionmedium
ML Coding
Activation function relueasy
ML Coding
Text normalizationmedium
ML Coding
29 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