public static Maxent fit(int p, int[][] x, int[] y) {
        return fit(p, x, y, new Properties());
    }
@Test
    public void testProtein() throws Exception {
        System.out.println("protein");

        Maxent model = Maxent.fit(Protein.p, Protein.x, Protein.y);

        int[] prediction = model.predict(Protein.testx);
        int error = Error.of(prediction, Protein.testy);

        System.out.format("The error is %d of %d%n", error, Protein.testx.length);
        assertEquals(1339, error);

        java.nio.file.Path temp = Write.object(model);
        Read.object(temp);
    }