Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from modshogun import *
- import numpy as np
- train = StringCharFeatures(['abc','def','one','two'],RAWBYTE)
- labels = RegressionLabels(np.array([-.2,-.1,.5,.2]))
- kernel = WeightedDegreeStringKernel()
- inf_exact = ExactInferenceMethod(kernel, train, ZeroMean(), labels, GaussianLikelihood(1))
- gp = GaussianProcessRegression(inf_exact)
- gp.train()
- test_labels=gp.apply(train)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement