skqulacs.qkrr.qkrr module#

class skqulacs.qkrr.qkrr.QKRR(circuit: skqulacs.circuit.circuit.LearningCircuit, n_iteration=10)[source]#

Bases: object

class to solve regression problems with kernel ridge regressor with a quantum kernel

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

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

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

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