API Overview#
Quick overview of the Methods and Datasets available in qbiocode.
Methods#
Depending on the underlying foundations in qbiocode can be….
Embeddings#
Collection of common embeddings (qbiocode.embeddings
) functionalities.
|
This function applies the specified embedding technique to the training and test datasets. |
Evaluation#
The qbiocode.evaluation
submodule of qbiocode computes the evaluation metrics for the input dataset and the models.
Data Evaluation#
Depending on the underlying mathematical foundations, they can be classified into the following categories: (i)..
|
This function evaluates a dataset and returns a transposed summary DataFrame with various statistical measures, derived from the dataset. |
Model Evaluation#
|
Evaluates the model performance using accuracy, F1 score, and AUC. |
Model Computation#
qbiocode brings together a number of established machine learning model both from classical and quantum (qbiocode.learning
).
Multiple models can be run via the following
|
This function runs the ML methods, with or without a grid search, as specified in the config.yaml file. |
Classical Models#
Classical model….
|
This function generates a model using a Decision Tree (dt) Classifier method as implemented in scikit-learn (https://scikit-learn.org/1.5/modules/generated/sklearn.tree.DecisionTreeClassifier.html). |
|
This function generates a model using a Logistic Regression (lr) method as implemented in scikit-learn (https://scikit-learn.org/1.5/modules/generated/sklearn.linear_model.LogisticRegression.html). |
|
This function generates a model using a Multi-layer Perceptron (mlp), a neural network, method as implemented in scikit-learn (https://scikit-learn.org/stable/modules/generated/sklearn.neural_network.MLPClassifier.html). |
|
This function generates a model using a Random Forest (rf) Classifier method as implemented in scikit-learn (https://scikit-learn.org/1.5/modules/generated/sklearn.naive_bayes.GaussianNB.html). |
|
This function generates a model using a Random Forest (rf) Classifier method as implemented in scikit-learn (https://scikit-learn.org/1.5/modules/generated/sklearn.ensemble.RandomForestClassifier.html). |
|
This function generates a model using a Support Vector Classifier (svc) method as implemented in scikit-learn (https://scikit-learn.org/1.5/modules/generated/sklearn.svm.SVC.html). |
Each of them has an alternative function where grid search parameter can be given as input. Details can be found in the specific qbiocode.learning
submodules.
Quantum Models#
Quantum model….
|
This function computes a Quantum Neural Network (QNN) model on the provided training data and evaluates it on the test data. |
|
This function computes a quantum support vector classifier (QSVC) using the Qiskit Machine Learning library. |
|
This function computes a Variational Quantum Classifier (VQC) using the Qiskit Machine Learning library. |
|
This function generates quantum circuits, computes projections of the data onto these circuits, and evaluates the performance of a Support Vector Classifier (SVC) on the projected data. |
Visualisation#
The plotting module (qbiocode.visualization
) enables the user to visualise the data and provides out-of-the-box plots for some
of the metrics.
|
This function takes in as input a Pandas Dataframe containing the results and data evaluations for a given dataset. |
|
This function plots the spearman correlation dot plots using the previously generated correlations_df dataframe. |
Datasets#
qbiocode provides…