@Override
    public double get(int index) {
        int foundIndex = Arrays.binarySearch(indices, index);
        if (foundIndex < 0) {
            return 0;
        } else {
            return values[foundIndex];
        }
    }
@Test
    public void serialization431Test() throws URISyntaxException, IOException {
        Path vectorPath = Paths.get(SparseVectorTest.class.getResource("sparse-vector-431.tribuo").toURI());
        try (InputStream fis = Files.newInputStream(vectorPath)) {
            TensorProto proto = TensorProto.parseFrom(fis);
            Tensor vector = Tensor.deserialize(proto);
            assertEquals(generateVectorA(), vector);
        }
    }