Hindi
भाषाएँ
English
Bengali
French
Hindi
Italian
Japanese
Korean
Malayalam
Russian
Spanish
Tamil
Turkish
Vietnamese
Shortcuts



QSVR

class QSVR(*args, quantum_kernel=None, **kwargs)[स्रोत]

आधार: sklearn.svm._classes.SVR

Quantum Support Vector Regressor.

This class shows how to use a quantum kernel for regression. The class extends sklearn.svm.SVR, and thus inherits its methods like fit and predict used in the example below. Read more in the sklearn user guide.

Example

qsvr = QSVR(quantum_kernel=qkernel)
qsvr.fit(sample_train,label_train)
qsvr.predict(sample_test)
मापदण्ड
  • quantum_kernel (Optional[QuantumKernel]) -- QuantumKernel to be used for regression.

  • *args -- Variable length argument list to pass to SVR constructor.

  • **kwargs -- Arbitrary keyword arguments to pass to SVR constructor.

Attributes

quantum_kernel

Returns quantum kernel

Methods