Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
\n# Manic: A Genetic Algorithm-based Metaheuristic Approach for Nature-Inspired Aggregation of Counterfactuals
Manic is a Python package that provides a genetic algorithm-based metaheuristic approach for aggregating counterfactual explanations. It implements a nature-inspired optimization technique to generate counterfactuals that explain the disagreement between different explainers. The goal is to find counterfactual instances that are both diverse and informative to enhance the interpretability of machine learning models.
To install Manic, use the following pip3 command:
pip3 install manic-xai
You can use Manic in your Python code as follows:
from manic import Manic
# Define your data_instance, base_counterfactuals, categorical_features, immutable_features, feature_ranges, data, and predict_fn
manic_instance = Manic(data_instance, base_counterfactuals, categorical_features, immutable_features, feature_ranges, data, predict_fn)
# Generate counterfactuals
counterfactuals = manic_instance.generate_counterfactuals()
To run Manic using Docker, follow these steps:
docker build -t manic .
docker run -v /path/to/your/data:/data -it manic python3 your_script.py
If you use the Manic package in your research or work and find it helpful, we kindly request that you cite it using the following BibTeX entry:
@software{manic,
author = {Craig Pirie},
title = {Manic: A Genetic Algorithm-based Metaheuristic Approach for Nature-Inspired Aggregation of Counterfactuals},
year = {2023},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/your-username/manic}},
}
We appreciate your support and acknowledgment of our work.
For any inquiries or collaborations, please contact Craig Pirie at c.pirie11@rgu.ac.uk.
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions to the Manic package are always welcome. If you find any issues or have ideas for improvements, please feel free to open an issue or submit a pull request on the GitHub repository. Together, we can make Manic better for everyone.
For updates and a history of changes to the Manic package, please refer to the Changelog.
FAQs
Genetic Algorithm for Generating Metacounterfactual Explanations
We found that manic-xai 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.