Previous question · 479
Island Perimeter
easyData Structures
Next question · 481
Email Counts by Label
hardDatabase
Random coding question

480. Low rank matrix approximation

easy
GeneralGeneral
senior
Function contract
Inputs
A
np.ndarray
k
int
Returns
value
np.ndarray

Examples

Input
{
  "A": [
    [
      3,
      2,
      2
    ],
    [
      2,
      3,
      -2
    ]
  ],
  "k": 1
}
Output
[
  [
    2.5000000000000004,
    2.5000000000000004,
    -3.925231146709438e-16
  ],
  [
    2.5,
    2.5,
    -3.9252311467094373e-16
  ]
]

Constraints

Hint 1
Hint 2
Roles
ML Engineer
AI Engineer
Data Scientist
Research Scientist
Companies
GeneralGeneral
Levels
senior
entry
Tags
svd
low-rank-approximation
numpy-linear-algebra
matrix-reconstruction

Similar Questions

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