![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
CASIMAC: Calibrated Simplex-Mapping Classifier
.. image:: https://readthedocs.org/projects/casimac/badge/?version=latest :target: https://casimac.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status
.. image:: https://img.shields.io/pypi/v/casimac :target: https://pypi.org/project/casimac/ :alt: PyPI - Project
.. image:: https://img.shields.io/badge/license-MIT-lightgrey :target: https://github.com/RaoulHeese/casimac/blob/main/LICENSE :alt: MIT License
.. image:: https://raw.githubusercontent.com/RaoulHeese/casimac/master/docs/source/_static/simplex.png :align: center
This Python project provides a supervised multi-class classification algorithm with a focus on calibration, which allows the prediction of class labels and their probabilities including gradients with respect to features. The classifier is designed along the principles of an scikit-learn <https://scikit-learn.org>
_ estimator.
The details of the algorithm have been published in PLOS ONE <https://doi.org/10.1371/journal.pone.0279876>
_ (preprint: arXiv:2103.02926 <https://arxiv.org/abs/2103.02926>
_).
Complete documentation of the code is available via <https://casimac.readthedocs.io/en/latest/>
_. Example notebooks can be found in the examples
directory.
Installation
Install the package via pip or clone this repository. In order to use pip, type:
.. code-block:: sh
$ pip install casimac
Getting Started
Use the CASIMAClassifier
class to create a classifier object. This object provides a fit
method for training and a predict
method for the estimation of class labels. Furthermore, the predict_proba
method can be used to predict class label probabilities.
Below is a short example.
.. code-block:: python
from casimac import CASIMAClassifier
import numpy as np from sklearn.gaussian_process import GaussianProcessRegressor import matplotlib.pyplot as plt
N = 10 seed = 42 X = np.random.RandomState(seed).uniform(-10,10,N).reshape(-1,1) y = np.zeros(X.size) y[X[:,0]>0] = 1
clf = CASIMAClassifier(GaussianProcessRegressor) clf.fit(X, y)
X_sample = np.linspace(-10,10,100).reshape(-1,1) y_sample = clf.predict(X_sample) p_sample = clf.predict_proba(X_sample)
plt.figure(figsize=(8,3)) plt.plot(X_sample,y_sample,label="class prediction") plt.plot(X_sample,p_sample[:,1],label="class probability prediction") plt.scatter(X,y,c='r',label="train data") plt.xlabel("X") plt.ylabel("label / probability") plt.legend() plt.show()
.. image:: https://raw.githubusercontent.com/RaoulHeese/casimac/master/docs/source/_static/plot.png :align: center
📖 Citation
If you find this code useful, please consider citing:
.. code-block::
@article{10.1371/journal.pone.0279876, doi={10.1371/journal.pone.0279876}, author={Heese, Raoul and Schmid, Jochen and Walczak, Micha{\l} and Bortz, Michael}, journal={PLOS ONE}, publisher={Public Library of Science}, title={Calibrated simplex-mapping classification}, year={2023}, month={01}, volume={18}, url={https://doi.org/10.1371/journal.pone.0279876}, pages={1-26}, number={1} }
License
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
Supervised multi-class/single-label classification with gradients
We found that casimac demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.