Previous question · 287
Hand of Straights
mediumAlgorithms
Next question · 289
Users by Platform
easyDatabase

288. Removing constant features

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

Examples

Input
{
  "X": [
    [
      1,
      5,
      9
    ],
    [
      2,
      5,
      8
    ],
    [
      3,
      5,
      7
    ]
  ]
}
Output
[
  [
    [
      1,
      9
    ],
    [
      2,
      8
    ],
    [
      3,
      7
    ]
  ],
  [
    0,
    2
  ]
]

Constraints

Hint 1
Hint 2
Hint 3
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Analytics Engineer
Companies
GeneralGeneral
Levels
senior
entry
Tags
numpy
feature-selection
data-preprocessing
zero-variance

Similar Questions

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