skqulacs.qsvm.qsvr module

skqulacs.qsvm.qsvr module#

class skqulacs.qsvm.qsvr.QSVR(circuit: LearningCircuit)[source]#

Bases: object

class to solve regression problems with support vector regressor with a quantum kernel

fit(x: ndarray[Any, dtype[float64]], y: ndarray[Any, dtype[int64]]) None[source]#

train the machine. :param x: training inputs :param y: training teacher values

predict(xs: ndarray[Any, dtype[float64]]) ndarray[Any, dtype[float64]][source]#

predict y values for each of xs :param xs: inputs to make predictions :return: List[int], predicted values of y