from smurff import smurff
import scipy.io

train_matrix_path = "chembl-IC50-346targets.mm"
test_matrix_path = "chembl-IC50-test.mm"

train = scipy.io.mmread(train_matrix_path)
test = scipy.io.mmread(test_matrix_path)
result_items = smurff(train, test, num_latent = 1, burnin=1, nsamples=5)
print(result_items[0])

from smurff import smurff
import scipy.io

train_matrix_path = "chembl-IC50-346targets.mm"
test_matrix_path = "chembl-IC50-test.mm"

train = scipy.io.mmread(train_matrix_path)
test = scipy.io.mmread(test_matrix_path)
result = smurff(train, test, num_latent = 1, burnin=1, nsamples=5)
print(result.predictions[0])

Update smurff-mm.py example