(matrix)
| 54 | return pred |
| 55 | |
| 56 | def nuclear_norm(matrix): |
| 57 | _, S, _ = torch.svd(matrix) |
| 58 | return torch.sum(S) |
| 59 | |
| 60 | def frobenius_norm(A, S): |
| 61 | return torch.norm(A - S, p='fro') |
nothing calls this directly
no outgoing calls
no test coverage detected