Previous question · 793
Debug Connection Pool Leak
mediumPair Programming
Next question · 795
Artist Ranking Appearances
easyDatabase

794. Feature clipping

easy
GeneralGeneral
senior
Function contract
Inputs
X
np.ndarray
lower
np.ndarray
upper
np.ndarray
Returns
value
np.ndarray

Examples

Input
{
  "X": [
    [
      1,
      100
    ],
    [
      -5,
      50
    ],
    [
      3,
      1000
    ]
  ],
  "lower": [
    0,
    60
  ],
  "upper": [
    2,
    200
  ]
}
Output
[
  [
    1,
    100
  ],
  [
    0,
    60
  ],
  [
    2,
    200
  ]
]

Constraints

Hint 1
Hint 2
Hint 3
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Analytics Engineer
Companies
GeneralGeneral
Levels
senior
entry
Tags
feature-engineering
clipping
2D-lists
array-iteration

Similar Questions

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