matchcake.ml package¶
Subpackages¶
- matchcake.ml.kernels package
- Submodules
- matchcake.ml.kernels.fermionic_pqc_kernel module
FermionicPQCKernelFermionicPQCKernel.DEFAULT_GRAM_BATCH_SIZEFermionicPQCKernel.DEFAULT_N_QUBITSFermionicPQCKernel.__init__()FermionicPQCKernel.ansatz()FermionicPQCKernel.available_entangling_mthFermionicPQCKernel.fit()FermionicPQCKernel.set_fit_request()FermionicPQCKernel.set_predict_request()FermionicPQCKernel.set_transform_request()
- matchcake.ml.kernels.gram_matrix module
- matchcake.ml.kernels.kernel module
- matchcake.ml.kernels.linear_nif_kernel module
LinearNIFKernelLinearNIFKernel.DEFAULT_GRAM_BATCH_SIZELinearNIFKernel.DEFAULT_N_QUBITSLinearNIFKernel.__init__()LinearNIFKernel.ansatz()LinearNIFKernel.biasLinearNIFKernel.encoder_activationLinearNIFKernel.encoder_out_indicesLinearNIFKernel.encoder_out_tril_indicesLinearNIFKernel.n_qubitsLinearNIFKernel.set_fit_request()LinearNIFKernel.set_predict_request()LinearNIFKernel.set_transform_request()
- matchcake.ml.kernels.nif_kernel module
NIFKernelNIFKernel.DEFAULT_GRAM_BATCH_SIZENIFKernel.DEFAULT_N_QUBITSNIFKernel.__init__()NIFKernel.ansatz()NIFKernel.circuit()NIFKernel.compute_similarities()NIFKernel.forward()NIFKernel.n_qubitsNIFKernel.q_deviceNIFKernel.set_fit_request()NIFKernel.set_predict_request()NIFKernel.set_transform_request()NIFKernel.wires
- matchcake.ml.kernels.nystroem module
- Module contents
Submodules¶
matchcake.ml.visualisation module¶
- class matchcake.ml.visualisation.ClassificationVisualizer(*, x: ndarray | None = None, x_reduced: ndarray | None = None, x_mesh: ndarray | None = None, reducer: Any | None = None, transform: Callable | None = None, inverse_transform: Callable | None = None, n_pts: int = 1000, seed: int | None = 0, **kwargs)¶
Bases:
Visualizer- __init__(*, x: ndarray | None = None, x_reduced: ndarray | None = None, x_mesh: ndarray | None = None, reducer: Any | None = None, transform: Callable | None = None, inverse_transform: Callable | None = None, n_pts: int = 1000, seed: int | None = 0, **kwargs)¶
- compute_x_mesh(**kwargs)¶
- compute_x_reduced(**kwargs)¶
- gather_transforms(**kwargs)¶
If a transform and an inverse_transform functions are given, they will be returned. Otherwise, the transform and inverse_transform will be inferred from the given reducer. If the reducer is None, then it will be initialized as a PCA with 2 components.
- plot_2d_decision_boundaries(*, y: ndarray | None = None, model: Any | None = None, y_pred: ndarray | None = None, **kwargs)¶
- class matchcake.ml.visualisation.Visualizer¶
Bases:
object