Previous question · 790
Data Contract Validator
mediumData Engineering
Next question · 792
Longest Winning Run
mediumDatabase
Random coding question

791. Color space conversion

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

Examples

Input
{
  "image": [
    [
      [
        255,
        0,
        0
      ],
      [
        0,
        255,
        0
      ]
    ],
    [
      [
        0,
        0,
        255
      ],
      [
        255,
        255,
        255
      ]
    ]
  ]
}
Output
[
  [
    76.24499999999999,
    149.685
  ],
  [
    29.07,
    255
  ]
]

Constraints

Hint 1
Hint 2
Hint 3
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Companies
GeneralGeneral
Levels
senior
entry
Tags
numpy
vectorization
color-conversion
luminance

Similar Questions

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